Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 110.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 188.5 kB / 18.67 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009807/0.0009807, allocations: 51.92 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2598, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02293/0.2828, allocations: 23.4 MB / 424.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.2981, allocations: 7.073 MB / 431.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005489/0.3036, allocations: 175.4 kB / 432.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0142/0.3179, allocations: 7.937 MB / 440 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.3281, allocations: 3.583 MB / 443.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004844/0.333, allocations: 2.009 MB / 445.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01824/0.3512, allocations: 13.25 MB / 458.9 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01413/0.3654, allocations: 10.46 MB / 469.3 MB, free: 4.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008405/0.3739, allocations: 4.266 MB / 473.6 MB, free: 404 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009261/0.3832, allocations: 5.711 MB / 479.3 MB, free: 10.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003629/0.3868, allocations: 1 MB / 480.3 MB, free: 9.664 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007617/0.3945, allocations: 2.17 MB / 482.5 MB, free: 7.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007707/0.4022, allocations: 5.117 MB / 487.6 MB, free: 2.367 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01079/0.4131, allocations: 5.41 MB / 493 MB, free: 12.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02224/0.4353, allocations: 17.26 MB / 0.4983 GB, free: 11.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.4354, allocations: 0 / 0.4983 GB, free: 11.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4354, allocations: 0 / 0.4983 GB, free: 11.62 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000583/0.436, allocations: 0 / 0.4983 GB, free: 11.62 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03369/0.4697, allocations: 11.2 MB / 0.5092 GB, free: 328 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.4697, allocations: 11.89 kB / 0.5092 GB, free: 316 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04404/0.5138, allocations: 5.422 MB / 0.5145 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02191/0.5357, allocations: 9.043 MB / 0.5234 GB, free: 1.727 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005087/0.5363, allocations: 0.5218 MB / 0.5239 GB, free: 1.203 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00296/0.5393, allocations: 0.7337 MB / 0.5246 GB, free: 480 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.445/0.9843, allocations: 19.51 MB / 0.5436 GB, free: 116.4 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004861/0.9848, allocations: 94.94 kB / 0.5437 GB, free: 116.4 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002438/0.9873, allocations: 323.8 kB / 0.544 GB, free: 116.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004102/0.9914, allocations: 2.818 MB / 0.5468 GB, free: 115.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03061/1.022, allocations: 16.25 MB / 0.5627 GB, free: 108.6 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08457/1.107, allocations: 74.03 MB / 0.635 GB, free: 34.22 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02056/1.127, allocations: 8.51 MB / 0.6433 GB, free: 25.55 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005641/1.133, allocations: 4.773 MB / 0.6479 GB, free: 20.76 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02186/1.155, allocations: 15.4 MB / 0.663 GB, free: 4.836 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/1.155, allocations: 76.61 kB / 0.663 GB, free: 4.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=321): time 7.955e-06/1.155, allocations: 0 / 0.663 GB, free: 4.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=428): time 0.1942/1.349, allocations: 54.63 MB / 0.7164 GB, free: 14 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002124/1.349, allocations: 402.8 kB / 0.7168 GB, free: 13.52 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01262/1.362, allocations: 7.563 MB / 0.7242 GB, free: 5.988 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001289/1.363, allocations: 97.69 kB / 0.7243 GB, free: 5.887 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005128/1.368, allocations: 5.593 MB / 0.7297 GB, free: 228 kB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002477/1.371, allocations: 1.565 MB / 0.7312 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003948/1.375, allocations: 2.086 MB / 0.7333 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.961e-05/1.375, allocations: 301.1 kB / 0.7336 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008309/1.383, allocations: 5.221 MB / 0.7387 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2869/1.67, allocations: 10.27 MB / 0.7487 GB, free: 175 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02123/1.691, allocations: 16.31 MB / 0.7646 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004225/1.692, allocations: 53.31 kB / 0.7647 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04365/1.736, allocations: 21.26 MB / 0.7854 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001689/1.736, allocations: 79.19 kB / 0.7855 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002599/1.736, allocations: 171.1 kB / 0.7857 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01842/1.755, allocations: 6.652 MB / 0.7922 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007296/1.762, allocations: 2.16 MB / 0.7943 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.042/1.804, allocations: 35.02 MB / 0.8285 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008554/1.812, allocations: 0.6229 MB / 0.8291 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001868/1.814, allocations: 0.5351 MB / 0.8296 GB, free: 117 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[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 (1178): * Single equations (assignments): 1173 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006937/1.821, allocations: 4.098 MB / 0.8336 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001574/1.823, allocations: 0.6888 MB / 0.8343 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02517/1.848, allocations: 14.31 MB / 0.8483 GB, free: 98.27 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.528e-05/1.848, allocations: 40 kB / 0.8483 GB, free: 98.23 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.589e-05/1.848, allocations: 24 kB / 0.8483 GB, free: 98.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.48e-05/1.848, allocations: 29.19 kB / 0.8483 GB, free: 98.18 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0471/1.895, allocations: 27.91 MB / 0.8756 GB, free: 70.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.919e-05/1.896, allocations: 8 kB / 0.8756 GB, free: 70.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002834/1.898, allocations: 0.5811 MB / 0.8762 GB, free: 69.72 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01728/1.916, allocations: 6.348 MB / 0.8824 GB, free: 63.36 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009606/1.917, allocations: 80 kB / 0.8825 GB, free: 63.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03733/1.954, allocations: 31.89 MB / 0.9136 GB, free: 31.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/1.954, allocations: 11.94 kB / 0.9136 GB, free: 31.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03277/1.987, allocations: 20.97 MB / 0.9341 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004361/1.991, allocations: 1.566 MB / 0.9356 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00172/1.993, allocations: 79.94 kB / 0.9357 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003892/1.997, allocations: 331.5 kB / 0.936 GB, free: 8.348 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001055/1.998, allocations: 307.2 kB / 0.9363 GB, free: 8.047 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003589/1.998, allocations: 112 kB / 0.9364 GB, free: 7.938 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2654/2.264, allocations: 4.831 MB / 0.9411 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.61e-07/2.264, allocations: 4.25 kB / 0.9411 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01211/2.276, allocations: 2.43 MB / 0.9435 GB, free: 167.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 2 (inertia.phi,inertia.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 (296): * Single equations (assignments): 292 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001502/2.277, allocations: 297.9 kB / 0.9438 GB, free: 167 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01924/2.297, allocations: 12.75 MB / 0.9562 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/2.297, allocations: 0 / 0.9562 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007707/2.304, allocations: 5.318 MB / 0.9614 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007917/2.312, allocations: 1.076 MB / 0.9625 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04212/2.355, allocations: 23.26 MB / 0.9852 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01018/2.365, allocations: 6.312 MB / 0.9914 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002238/2.367, allocations: 489.3 kB / 0.9918 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.032e-06/2.367, allocations: 3.938 kB / 0.9918 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.4458/2.813, allocations: 166.6 MB / 1.155 GB, free: 174.2 MB / 0.545 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches