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.000999/0.0009991, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00109/0.00109, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 64.17 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1188, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1722/0.2911, allocations: 20.44 MB / 379.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01399/0.3051, allocations: 6.193 MB / 385.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004054/0.3092, allocations: 166.3 kB / 385.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01061/0.3199, allocations: 6.321 MB / 392 MB, free: 3.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008133/0.328, allocations: 3.401 MB / 395.4 MB, free: 1.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003571/0.3316, allocations: 1.665 MB / 397.1 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01715/0.3488, allocations: 12.96 MB / 410 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01051/0.3593, allocations: 8.051 MB / 418.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006805/0.3661, allocations: 3.743 MB / 421.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007137/0.3733, allocations: 4.947 MB / 426.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002333/0.3757, allocations: 0.7461 MB / 427.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004347/0.38, allocations: 1.686 MB / 429.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005235/0.3853, allocations: 4.345 MB / 433.5 MB, free: 156 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00761/0.3929, allocations: 4.627 MB / 438.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01543/0.4084, allocations: 14.1 MB / 452.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.4084, allocations: 0 / 452.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4084, allocations: 4 kB / 452.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000422/0.4088, allocations: 4 kB / 452.3 MB, free: 13.34 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.02655/0.4354, allocations: 10.02 MB / 462.3 MB, free: 3.238 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.4355, allocations: 8.031 kB / 462.3 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04181/0.4773, allocations: 5.275 MB / 467.6 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01982/0.4971, allocations: 8.079 MB / 475.7 MB, free: 5.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/0.4975, allocations: 448.2 kB / 476.1 MB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002236/0.4998, allocations: 0.6126 MB / 476.7 MB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03125/0.531, allocations: 17.13 MB / 493.8 MB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002937/0.5314, allocations: 99.11 kB / 493.9 MB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001048/0.5324, allocations: 283.8 kB / 494.2 MB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00416/0.5366, allocations: 2.854 MB / 497.1 MB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02721/0.5638, allocations: 14.04 MB / 0.4991 GB, free: 1.266 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.43/0.9939, allocations: 69.64 MB / 0.5671 GB, free: 96.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03182/1.026, allocations: 8.196 MB / 0.5751 GB, free: 94.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008232/1.034, allocations: 4.637 MB / 0.5797 GB, free: 92.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02756/1.062, allocations: 12.77 MB / 0.5921 GB, free: 85.87 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/1.062, allocations: 68.34 kB / 0.5922 GB, free: 85.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.059e-06/1.062, allocations: 0 / 0.5922 GB, free: 85.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=359): time 0.1688/1.231, allocations: 52.41 MB / 0.6434 GB, free: 39.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.062e-05/1.231, allocations: 402.2 kB / 0.6438 GB, free: 38.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007774/1.238, allocations: 7.264 MB / 0.6509 GB, free: 31.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007985/1.239, allocations: 81.7 kB / 0.6509 GB, free: 31.58 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002329/1.242, allocations: 5.2 MB / 0.656 GB, free: 26.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001297/1.243, allocations: 1.332 MB / 0.6573 GB, free: 25.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002299/1.245, allocations: 1.911 MB / 0.6592 GB, free: 23.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.493e-05/1.245, allocations: 309.1 kB / 0.6595 GB, free: 22.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005339/1.251, allocations: 4.711 MB / 0.6641 GB, free: 18.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007355/1.258, allocations: 9.534 MB / 0.6734 GB, free: 6.238 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01564/1.274, allocations: 15 MB / 0.688 GB, free: 4.902 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-05/1.274, allocations: 48 kB / 0.6881 GB, free: 4.855 MB / 462.1 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.04339/1.317, allocations: 20.45 MB / 0.7081 GB, free: 360 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.833e-05/1.317, allocations: 76 kB / 0.7081 GB, free: 284 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000172/1.318, allocations: 164 kB / 0.7083 GB, free: 120 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.21/1.528, allocations: 7.327 MB / 0.7154 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007189/1.535, allocations: 2.005 MB / 0.7174 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04563/1.58, allocations: 36.58 MB / 0.7531 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007477/1.588, allocations: 0.5992 MB / 0.7537 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/1.589, allocations: 0.5025 MB / 0.7542 GB, free: 134.3 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.004754/1.594, allocations: 3.598 MB / 0.7577 GB, free: 131.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/1.595, allocations: 0.6488 MB / 0.7583 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02578/1.621, allocations: 13.92 MB / 0.7719 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.66e-05/1.621, allocations: 47.02 kB / 0.772 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-05/1.621, allocations: 20 kB / 0.772 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.586e-05/1.621, allocations: 15.94 kB / 0.772 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04941/1.671, allocations: 27.69 MB / 0.7991 GB, free: 89.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.422e-05/1.671, allocations: 4 kB / 0.7991 GB, free: 89.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002163/1.673, allocations: 467.2 kB / 0.7995 GB, free: 89.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01859/1.691, allocations: 6.969 MB / 0.8063 GB, free: 82.14 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001006/1.692, allocations: 63.28 kB / 0.8064 GB, free: 82.08 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03921/1.732, allocations: 35.34 MB / 0.8409 GB, free: 46.61 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/1.732, allocations: 11.94 kB / 0.8409 GB, free: 46.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03149/1.763, allocations: 19.7 MB / 0.8601 GB, free: 26.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/1.765, allocations: 0.7057 MB / 0.8608 GB, free: 26.21 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001993/1.767, allocations: 67.98 kB / 0.8609 GB, free: 26.14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004283/1.772, allocations: 319.6 kB / 0.8612 GB, free: 25.83 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001294/1.773, allocations: 250.7 kB / 0.8614 GB, free: 25.58 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003388/1.773, allocations: 103.9 kB / 0.8615 GB, free: 25.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007076/1.78, allocations: 4.646 MB / 0.8661 GB, free: 20.87 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.78, allocations: 0 / 0.8661 GB, free: 20.87 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01039/1.791, allocations: 2.202 MB / 0.8682 GB, free: 18.67 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.001263/1.792, allocations: 219.4 kB / 0.8684 GB, free: 18.46 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2065/1.999, allocations: 12.05 MB / 0.8802 GB, free: 147.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/1.999, allocations: 5.312 kB / 0.8802 GB, free: 147.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01014/2.009, allocations: 5.264 MB / 0.8853 GB, free: 147 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007064/2.016, allocations: 1.007 MB / 0.8863 GB, free: 146.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03601/2.052, allocations: 20.31 MB / 0.9062 GB, free: 140.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007663/2.06, allocations: 5.724 MB / 0.9118 GB, free: 138.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006223/2.066, allocations: 2.694 MB / 0.9144 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/2.067, allocations: 402.9 kB / 0.9148 GB, free: 138.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.744e-06/2.067, allocations: 0 / 0.9148 GB, free: 138.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1374/2.205, allocations: 95.34 MB / 1.008 GB, free: 50.88 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 gbode -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