Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00126/0.001261, allocations: 110.8 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 212 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 59.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1992, allocations: 50.56 MB / 409.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01771/0.2169, allocations: 18.01 MB / 428 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.2277, allocations: 6.04 MB / 434 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001875/0.2296, allocations: 143.6 kB / 434.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01016/0.2397, allocations: 6.254 MB / 440.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005566/0.2453, allocations: 2.809 MB / 443.2 MB, free: 192 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003933/0.2493, allocations: 2.269 MB / 445.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0107/0.26, allocations: 9.689 MB / 455.2 MB, free: 4.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007792/0.2678, allocations: 8.408 MB / 463.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003402/0.2712, allocations: 3.218 MB / 466.8 MB, free: 8.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004286/0.2755, allocations: 4.16 MB / 470.9 MB, free: 4.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001024/0.2765, allocations: 0.7148 MB / 471.7 MB, free: 3.586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002869/0.2794, allocations: 1.892 MB / 473.6 MB, free: 1.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002997/0.2824, allocations: 3.839 MB / 477.4 MB, free: 13.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003515/0.286, allocations: 4.123 MB / 481.5 MB, free: 9.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01095/0.2969, allocations: 13.18 MB / 494.7 MB, free: 12.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2969, allocations: 0 / 494.7 MB, free: 12.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.297, allocations: 0 / 494.7 MB, free: 12.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001295/0.2971, allocations: 3.938 kB / 494.7 MB, free: 12.48 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01546/0.3126, allocations: 8.915 MB / 0.4918 GB, free: 3.477 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.3126, allocations: 8.031 kB / 0.4918 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04279/0.3554, allocations: 4.851 MB / 0.4966 GB, free: 14.6 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0129/0.3683, allocations: 6.388 MB / 0.5028 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000283/0.3686, allocations: 435.7 kB / 0.5032 GB, free: 7.711 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009523/0.3696, allocations: 0.5817 MB / 0.5038 GB, free: 7.129 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02722/0.3968, allocations: 17.04 MB / 0.5204 GB, free: 5.137 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/0.397, allocations: 79.27 kB / 0.5205 GB, free: 5.059 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007088/0.3978, allocations: 271.8 kB / 0.5208 GB, free: 4.793 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004256/0.402, allocations: 2.658 MB / 0.5234 GB, free: 2.133 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02602/0.4281, allocations: 14.77 MB / 0.5378 GB, free: 3.332 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3599/0.788, allocations: 64.25 MB / 0.6005 GB, free: 67 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01982/0.8078, allocations: 8.781 MB / 0.6091 GB, free: 58.08 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004405/0.8122, allocations: 5.065 MB / 0.614 GB, free: 53.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02062/0.8329, allocations: 18.63 MB / 0.6322 GB, free: 34.29 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.8329, allocations: 64.5 kB / 0.6323 GB, free: 34.21 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.211e-06/0.833, allocations: 3.984 kB / 0.6323 GB, free: 34.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2382/1.071, allocations: 73.98 MB / 0.7046 GB, free: 8.168 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001702/1.071, allocations: 384.6 kB / 0.7049 GB, free: 7.711 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007676/1.079, allocations: 6.355 MB / 0.7111 GB, free: 1.348 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0004111/1.079, allocations: 81.7 kB / 0.7112 GB, free: 1.262 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.00298/1.082, allocations: 4.757 MB / 0.7158 GB, free: 12.44 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001292/1.084, allocations: 1.369 MB / 0.7172 GB, free: 11.05 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002859/1.087, allocations: 1.982 MB / 0.7191 GB, free: 9.055 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.126e-05/1.087, allocations: 301.1 kB / 0.7194 GB, free: 8.758 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007745/1.095, allocations: 5.992 MB / 0.7253 GB, free: 2.758 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01082/1.105, allocations: 11.02 MB / 0.736 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1811/1.286, allocations: 17.95 MB / 0.7536 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.596e-05/1.287, allocations: 58.22 kB / 0.7536 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0368/1.323, allocations: 23.34 MB / 0.7764 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.33e-05/1.323, allocations: 78.38 kB / 0.7765 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/1.324, allocations: 171.4 kB / 0.7766 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01968/1.343, allocations: 7.447 MB / 0.7839 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006025/1.349, allocations: 2.183 MB / 0.786 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04072/1.39, allocations: 38.1 MB / 0.8232 GB, free: 114.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006979/1.397, allocations: 0.7519 MB / 0.824 GB, free: 113.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006729/1.398, allocations: 0.5234 MB / 0.8245 GB, free: 112.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.00373/1.401, allocations: 3.438 MB / 0.8278 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008539/1.402, allocations: 0.5737 MB / 0.8284 GB, free: 109.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0284/1.431, allocations: 16.95 MB / 0.845 GB, free: 92.27 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/1.431, allocations: 19.92 kB / 0.845 GB, free: 92.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/1.431, allocations: 4 kB / 0.845 GB, free: 92.25 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009128/1.432, allocations: 0.6253 MB / 0.8456 GB, free: 91.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008525/1.432, allocations: 60 kB / 0.8457 GB, free: 91.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003538/1.436, allocations: 459.2 kB / 0.8461 GB, free: 91.19 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007855/1.437, allocations: 317.9 kB / 0.8464 GB, free: 90.88 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02379/1.461, allocations: 15.42 MB / 0.8615 GB, free: 75.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01575/1.476, allocations: 15.91 MB / 0.877 GB, free: 59.51 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004622/1.481, allocations: 5.044 MB / 0.8819 GB, free: 54.45 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004326/1.485, allocations: 4.04 MB / 0.8859 GB, free: 50.42 MB / 0.5294 GB Notification: Performance of Backend: time 3.41e-07/1.485, allocations: 3.844 kB / 0.8859 GB, free: 50.42 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01505/1.5, allocations: 10.52 MB / 0.8961 GB, free: 39.94 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01779/1.518, allocations: 16.24 MB / 0.912 GB, free: 23.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.3112/1.829, allocations: 126.5 MB / 1.036 GB, free: 113.4 MB / 0.5451 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches