Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001407/0.001407, allocations: 111.9 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001731/0.001731, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001224, allocations: 55.88 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1156, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2246/0.3403, allocations: 20.44 MB / 379.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.3539, allocations: 6.188 MB / 385.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005387/0.3593, allocations: 165.7 kB / 385.7 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01166/0.3711, allocations: 6.327 MB / 392 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.3817, allocations: 3.392 MB / 395.4 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00464/0.3863, allocations: 1.666 MB / 397.1 MB, free: 472 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01886/0.4052, allocations: 12.96 MB / 410 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01003/0.4153, allocations: 8.05 MB / 418.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007628/0.423, allocations: 3.747 MB / 421.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008663/0.4317, allocations: 4.939 MB / 426.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003434/0.4351, allocations: 0.7461 MB / 427.5 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005946/0.4411, allocations: 1.698 MB / 429.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007916/0.4491, allocations: 4.337 MB / 433.6 MB, free: 140 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009885/0.459, allocations: 4.639 MB / 438.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0168/0.4758, allocations: 14.1 MB / 452.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.4759, allocations: 0 / 452.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.4759, allocations: 0 / 452.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003696/0.4762, allocations: 0 / 452.3 MB, free: 13.33 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02444/0.5007, allocations: 10.01 MB / 462.3 MB, free: 3.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.5007, allocations: 8.031 kB / 462.3 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03984/0.5406, allocations: 5.283 MB / 467.6 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01864/0.5593, allocations: 8.087 MB / 475.7 MB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003598/0.5597, allocations: 444.2 kB / 476.1 MB, free: 5.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00269/0.5624, allocations: 0.6126 MB / 476.7 MB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03419/0.5966, allocations: 17.13 MB / 493.9 MB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003269/0.597, allocations: 99.11 kB / 494 MB, free: 2.438 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.598, allocations: 279.8 kB / 494.2 MB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004116/0.6021, allocations: 2.854 MB / 497.1 MB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02732/0.6295, allocations: 14.03 MB / 0.4991 GB, free: 1.254 MB / 414.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.4554/1.085, allocations: 69.64 MB / 0.5671 GB, free: 96.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02045/1.105, allocations: 8.203 MB / 0.5752 GB, free: 94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00536/1.111, allocations: 4.632 MB / 0.5797 GB, free: 92.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01837/1.129, allocations: 12.77 MB / 0.5922 GB, free: 85.78 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/1.129, allocations: 63.34 kB / 0.5922 GB, free: 85.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.38e-06/1.129, allocations: 0 / 0.5922 GB, free: 85.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=359): time 0.1631/1.292, allocations: 52.41 MB / 0.6434 GB, free: 39.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/1.293, allocations: 406.2 kB / 0.6438 GB, free: 38.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01081/1.303, allocations: 7.264 MB / 0.6509 GB, free: 31.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001101/1.304, allocations: 81.7 kB / 0.651 GB, free: 31.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003466/1.308, allocations: 5.203 MB / 0.656 GB, free: 26.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002241/1.31, allocations: 1.328 MB / 0.6573 GB, free: 25.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003275/1.314, allocations: 1.911 MB / 0.6592 GB, free: 23.13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.784e-05/1.314, allocations: 305.1 kB / 0.6595 GB, free: 22.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006209/1.32, allocations: 4.715 MB / 0.6641 GB, free: 18.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008167/1.328, allocations: 9.53 MB / 0.6734 GB, free: 6.238 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01897/1.347, allocations: 15 MB / 0.6881 GB, free: 4.898 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002543/1.347, allocations: 48 kB / 0.6881 GB, free: 4.852 MB / 462.1 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.05003/1.397, allocations: 20.46 MB / 0.7081 GB, free: 348 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000241/1.398, allocations: 78.34 kB / 0.7082 GB, free: 272 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003179/1.398, allocations: 164 kB / 0.7083 GB, free: 108 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2657/1.664, allocations: 7.324 MB / 0.7155 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007707/1.671, allocations: 2.004 MB / 0.7174 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05152/1.723, allocations: 36.57 MB / 0.7531 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009716/1.733, allocations: 0.5999 MB / 0.7537 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002072/1.735, allocations: 0.5034 MB / 0.7542 GB, free: 134.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (1081): * Single equations (assignments): 1075 * Array equations: 3 * 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 {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007537/1.742, allocations: 3.592 MB / 0.7577 GB, free: 131.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001744/1.744, allocations: 0.6533 MB / 0.7584 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02623/1.77, allocations: 13.93 MB / 0.772 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-05/1.771, allocations: 39.94 kB / 0.772 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.993e-05/1.771, allocations: 20 kB / 0.772 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.051e-05/1.771, allocations: 19.94 kB / 0.772 GB, free: 117.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05075/1.822, allocations: 27.69 MB / 0.7991 GB, free: 89.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.863e-05/1.822, allocations: 4 kB / 0.7991 GB, free: 89.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002273/1.824, allocations: 470.2 kB / 0.7995 GB, free: 89.06 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01847/1.842, allocations: 6.972 MB / 0.8063 GB, free: 82.14 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001021/1.843, allocations: 63.75 kB / 0.8064 GB, free: 82.08 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0396/1.883, allocations: 35.34 MB / 0.8409 GB, free: 46.61 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/1.883, allocations: 11.94 kB / 0.8409 GB, free: 46.59 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03192/1.915, allocations: 19.69 MB / 0.8602 GB, free: 26.91 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002367/1.917, allocations: 0.7026 MB / 0.8608 GB, free: 26.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002317/1.92, allocations: 64 kB / 0.8609 GB, free: 26.13 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004698/1.924, allocations: 323.6 kB / 0.8612 GB, free: 25.82 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001354/1.926, allocations: 258.7 kB / 0.8615 GB, free: 25.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003408/1.926, allocations: 88 kB / 0.8615 GB, free: 25.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007077/1.933, allocations: 4.649 MB / 0.8661 GB, free: 20.86 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.933, allocations: 0 / 0.8661 GB, free: 20.86 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01027/1.944, allocations: 2.202 MB / 0.8682 GB, free: 18.66 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * Array equations: 3 * 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 {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009946/1.945, allocations: 222.2 kB / 0.8684 GB, free: 18.45 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2299/2.174, allocations: 12.05 MB / 0.8802 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.607e-05/2.175, allocations: 3.031 kB / 0.8802 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01057/2.185, allocations: 5.264 MB / 0.8854 GB, free: 147.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006951/2.192, allocations: 1.014 MB / 0.8863 GB, free: 147 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04402/2.236, allocations: 20.31 MB / 0.9062 GB, free: 140.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008072/2.244, allocations: 5.725 MB / 0.9118 GB, free: 138.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006478/2.251, allocations: 2.689 MB / 0.9144 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001433/2.252, allocations: 412.6 kB / 0.9148 GB, free: 138.3 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/2.252, allocations: 0 / 0.9148 GB, free: 138.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1405/2.393, allocations: 95.32 MB / 1.008 GB, free: 50.99 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches