Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001435/0.001435, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001861/0.001861, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001309, allocations: 71.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2694, allocations: 50.55 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01494/0.2844, allocations: 14.95 MB / 423.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01042/0.2949, allocations: 4.834 MB / 428.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002154/0.2971, allocations: 91.75 kB / 428.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00552/0.3026, allocations: 3.153 MB / 431.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00595/0.3086, allocations: 2.521 MB / 434.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00203/0.3106, allocations: 0.9827 MB / 435.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008835/0.3195, allocations: 7.031 MB / 442.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004962/0.3245, allocations: 4.338 MB / 446.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003291/0.3278, allocations: 2.211 MB / 448.9 MB, free: 9.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004266/0.3321, allocations: 3.24 MB / 452.1 MB, free: 5.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001025/0.3331, allocations: 484 kB / 452.6 MB, free: 5.504 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002634/0.3358, allocations: 1.482 MB / 454.1 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002496/0.3383, allocations: 2.86 MB / 456.9 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003219/0.3415, allocations: 3.285 MB / 460.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.3521, allocations: 10.5 MB / 470.7 MB, free: 3.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3521, allocations: 3.938 kB / 470.7 MB, free: 3.312 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.3521, allocations: 0 / 470.7 MB, free: 3.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001899/0.3523, allocations: 3.938 kB / 470.7 MB, free: 3.309 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01517/0.3675, allocations: 7.428 MB / 478.1 MB, free: 11.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.3676, allocations: 11.97 kB / 478.2 MB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001576/0.3691, allocations: 1.137 MB / 479.3 MB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04558/0.4147, allocations: 7.508 MB / 486.8 MB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01263/0.4274, allocations: 4.653 MB / 491.5 MB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002731/0.4277, allocations: 320.2 kB / 491.8 MB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001554/0.4293, allocations: 439.6 kB / 492.2 MB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0279/0.4572, allocations: 15.6 MB / 0.4959 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001745/0.4574, allocations: 63.5 kB / 0.496 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007212/0.4581, allocations: 203.8 kB / 0.4962 GB, free: 12.85 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00524/0.4634, allocations: 3.22 MB / 0.4993 GB, free: 9.629 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02741/0.4908, allocations: 13.91 MB / 0.5129 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2911/0.7819, allocations: 57.08 MB / 0.5686 GB, free: 84.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/0.7935, allocations: 6.491 MB / 0.575 GB, free: 81.64 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003325/0.7969, allocations: 3.559 MB / 0.5784 GB, free: 80.21 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01812/0.815, allocations: 14.3 MB / 0.5924 GB, free: 70.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.815, allocations: 60.97 kB / 0.5925 GB, free: 70.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 4.228e-06/0.815, allocations: 0 / 0.5925 GB, free: 70.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1318/0.9468, allocations: 41.63 MB / 0.6331 GB, free: 29.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.9469, allocations: 213.9 kB / 0.6333 GB, free: 28.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006447/0.9534, allocations: 5.483 MB / 0.6387 GB, free: 23.38 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009335/0.9543, allocations: 69.7 kB / 0.6387 GB, free: 23.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002363/0.9567, allocations: 4.421 MB / 0.6431 GB, free: 18.88 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/0.9581, allocations: 1.245 MB / 0.6443 GB, free: 17.65 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002208/0.9603, allocations: 1.777 MB / 0.646 GB, free: 15.86 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.34e-05/0.9603, allocations: 301.1 kB / 0.6463 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004918/0.9653, allocations: 4.62 MB / 0.6508 GB, free: 10.94 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00745/0.9727, allocations: 9.588 MB / 0.6602 GB, free: 14.92 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01888/0.9916, allocations: 15.26 MB / 0.6751 GB, free: 13.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001456/0.9918, allocations: 48 kB / 0.6751 GB, free: 13.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04392/1.036, allocations: 18.97 MB / 0.6936 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002299/1.036, allocations: 80 kB / 0.6937 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003277/1.036, allocations: 176 kB / 0.6939 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02376/1.06, allocations: 5.782 MB / 0.6995 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007674/1.068, allocations: 2.051 MB / 0.7015 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03723/1.105, allocations: 25.62 MB / 0.7265 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00769/1.113, allocations: 0.5461 MB / 0.7271 GB, free: 7.562 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001818/1.115, allocations: 0.5038 MB / 0.7276 GB, free: 7.059 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00652/1.121, allocations: 3.088 MB / 0.7306 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001465/1.123, allocations: 0.4975 MB / 0.7311 GB, free: 3.453 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03373/1.156, allocations: 12.6 MB / 0.7434 GB, free: 6.777 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/1.157, allocations: 52 kB / 0.7434 GB, free: 6.727 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.95e-05/1.157, allocations: 15.94 kB / 0.7434 GB, free: 6.711 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.26e-05/1.157, allocations: 15.94 kB / 0.7435 GB, free: 6.695 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.291/1.448, allocations: 24.18 MB / 0.7671 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-05/1.448, allocations: 3.969 kB / 0.7671 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002958/1.451, allocations: 0.5795 MB / 0.7677 GB, free: 193.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01836/1.469, allocations: 4.809 MB / 0.7723 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006111/1.47, allocations: 59.45 kB / 0.7724 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02212/1.492, allocations: 20.91 MB / 0.7928 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.492, allocations: 7.938 kB / 0.7928 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03064/1.523, allocations: 16.99 MB / 0.8094 GB, free: 158.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/1.524, allocations: 0.5283 MB / 0.8099 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007286/1.525, allocations: 55.98 kB / 0.81 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002686/1.527, allocations: 251.6 kB / 0.8102 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006491/1.528, allocations: 193.4 kB / 0.8104 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002541/1.528, allocations: 80 kB / 0.8105 GB, free: 157.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003804/1.532, allocations: 3.423 MB / 0.8138 GB, free: 154.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.532, allocations: 0 / 0.8138 GB, free: 154.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006025/1.538, allocations: 1.682 MB / 0.8155 GB, free: 152.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0299/1.568, allocations: 17.66 MB / 0.8327 GB, free: 135 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0127/1.581, allocations: 10.63 MB / 0.8431 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/1.581, allocations: 0 / 0.8431 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004602/1.585, allocations: 4.011 MB / 0.847 GB, free: 120.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003574/1.589, allocations: 0.658 MB / 0.8477 GB, free: 119.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1272/1.716, allocations: 85.85 MB / 0.9315 GB, free: 26.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004269/1.721, allocations: 4.623 MB / 0.936 GB, free: 21.61 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005751/1.726, allocations: 2.982 MB / 0.9389 GB, free: 18.62 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003101/1.729, allocations: 2.913 MB / 0.9418 GB, free: 15.71 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/1.729, allocations: 4 kB / 0.9418 GB, free: 15.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.395/2.124, allocations: 127.5 MB / 1.066 GB, free: 91.58 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.79/40.92, allocations: 14.94 kB / 1.066 GB, free: 91.57 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches