Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007867/0.0007867, allocations: 92.77 kB / 17.31 MB, free: 5.664 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.0008256/0.0008256, allocations: 176.6 kB / 18.21 MB, free: 5.242 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.108/1.108, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002033/0.0002032, allocations: 8.719 kB / 302.1 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06993/0.07014, allocations: 50.42 MB / 352.5 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.21/0.2801, allocations: 108.9 MB / 461.4 MB, free: 7.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03751/0.3177, allocations: 21.21 MB / 482.6 MB, free: 1.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01436/0.3321, allocations: 0.4987 MB / 483.1 MB, free: 1.383 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001933/0.334, allocations: 0.7305 MB / 483.8 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006402/0.3404, allocations: 3.27 MB / 487.1 MB, free: 13.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002663/0.3431, allocations: 1.534 MB / 488.6 MB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01615/0.3593, allocations: 17.77 MB / 0.4945 GB, free: 10.03 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01198/0.3713, allocations: 10.67 MB / 0.5049 GB, free: 15.24 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003945/0.3752, allocations: 2.841 MB / 0.5077 GB, free: 12.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005331/0.3806, allocations: 4.626 MB / 0.5122 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008479/0.3814, allocations: 288 kB / 0.5125 GB, free: 7.469 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.3838, allocations: 1.33 MB / 0.5138 GB, free: 6.137 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003017/0.3868, allocations: 3.845 MB / 0.5176 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003415/0.3902, allocations: 4.027 MB / 0.5215 GB, free: 14.22 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008571/0.3988, allocations: 10.97 MB / 0.5322 GB, free: 3.227 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3988, allocations: 0 / 0.5322 GB, free: 3.227 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3989, allocations: 0 / 0.5322 GB, free: 3.227 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002717/0.3991, allocations: 0 / 0.5322 GB, free: 3.227 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.191/0.5901, allocations: 8.307 MB / 0.5403 GB, free: 44.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.5901, allocations: 9.875 kB / 0.5403 GB, free: 44.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04289/0.633, allocations: 5.394 MB / 0.5456 GB, free: 43.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/0.6473, allocations: 8.05 MB / 0.5535 GB, free: 42.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002255/0.6476, allocations: 453.9 kB / 0.5539 GB, free: 42.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009111/0.6485, allocations: 0.6071 MB / 0.5545 GB, free: 42.37 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02069/0.6692, allocations: 17.21 MB / 0.5713 GB, free: 36.88 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001835/0.6694, allocations: 94.92 kB / 0.5714 GB, free: 36.86 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005754/0.67, allocations: 280.9 kB / 0.5716 GB, free: 36.86 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003333/0.6733, allocations: 2.857 MB / 0.5744 GB, free: 35.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01938/0.6927, allocations: 14.11 MB / 0.5882 GB, free: 23.55 MB / 446.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.0626/0.7553, allocations: 70.07 MB / 0.6566 GB, free: 336 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01811/0.7735, allocations: 8.286 MB / 0.6647 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00483/0.7783, allocations: 4.632 MB / 0.6693 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01532/0.7936, allocations: 12.76 MB / 0.6817 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.7937, allocations: 71.66 kB / 0.6818 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=294): time 4.799e-06/0.7937, allocations: 0 / 0.6818 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of matching and sorting (n=360): time 0.1707/0.9644, allocations: 53.42 MB / 0.734 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.9646, allocations: 401.3 kB / 0.7343 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2676/1.232, allocations: 7.271 MB / 0.7414 GB, free: 262 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0007253/1.233, allocations: 84.66 kB / 0.7415 GB, free: 261.9 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002613/1.236, allocations: 5.209 MB / 0.7466 GB, free: 259 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001258/1.237, allocations: 1.328 MB / 0.7479 GB, free: 258 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009636/1.238, allocations: 0.8302 MB / 0.7487 GB, free: 257.7 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.239e-05/1.238, allocations: 303.3 kB / 0.749 GB, free: 257.4 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005628/1.244, allocations: 4.713 MB / 0.7536 GB, free: 255.7 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006299/1.25, allocations: 9.543 MB / 0.7629 GB, free: 247.6 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/1.262, allocations: 15.01 MB / 0.7776 GB, free: 236.8 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.274e-05/1.262, allocations: 47.06 kB / 0.7776 GB, free: 236.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.03097/1.293, allocations: 20.46 MB / 0.7976 GB, free: 224.4 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 6.986e-05/1.293, allocations: 76.94 kB / 0.7977 GB, free: 224.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-05/1.293, allocations: 167.2 kB / 0.7978 GB, free: 224.2 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01775/1.311, allocations: 7.325 MB / 0.805 GB, free: 216.8 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004797/1.315, allocations: 2.004 MB / 0.807 GB, free: 214.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03442/1.35, allocations: 34.39 MB / 0.8405 GB, free: 180 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006543/1.356, allocations: 0.6085 MB / 0.8411 GB, free: 179.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005963/1.357, allocations: 0.5005 MB / 0.8416 GB, free: 178.9 MB / 0.5607 GB 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 (1082): * Single equations (assignments): 1076 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.003952/1.361, allocations: 3.592 MB / 0.8451 GB, free: 175.3 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008391/1.362, allocations: 0.6595 MB / 0.8458 GB, free: 174.6 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02409/1.386, allocations: 13.94 MB / 0.8594 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/1.386, allocations: 36 kB / 0.8594 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/1.386, allocations: 27.94 kB / 0.8595 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.301e-05/1.386, allocations: 15.94 kB / 0.8595 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03729/1.423, allocations: 27.87 MB / 0.8867 GB, free: 132.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/1.423, allocations: 10.39 kB / 0.8867 GB, free: 132.2 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001718/1.425, allocations: 464.9 kB / 0.8871 GB, free: 131.8 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0174/1.443, allocations: 7.001 MB / 0.894 GB, free: 124.7 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002736/1.443, allocations: 64 kB / 0.894 GB, free: 124.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03337/1.476, allocations: 33.27 MB / 0.9265 GB, free: 91.02 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/1.476, allocations: 8 kB / 0.9265 GB, free: 91.01 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0284/1.505, allocations: 19.71 MB / 0.9458 GB, free: 71.12 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002633/1.507, allocations: 1.437 MB / 0.9472 GB, free: 69.65 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007489/1.508, allocations: 67.98 kB / 0.9473 GB, free: 69.59 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003013/1.511, allocations: 331.4 kB / 0.9476 GB, free: 69.27 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007226/1.512, allocations: 254.7 kB / 0.9478 GB, free: 69.02 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000245/1.512, allocations: 92 kB / 0.9479 GB, free: 68.93 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004598/1.517, allocations: 4.656 MB / 0.9524 GB, free: 64.3 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.4e-07/1.517, allocations: 0 / 0.9524 GB, free: 64.3 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.005905/1.523, allocations: 2.224 MB / 0.9546 GB, free: 62.09 MB / 0.5607 GB 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 (232): * Single equations (assignments): 226 * 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.0004994/1.523, allocations: 221.1 kB / 0.9548 GB, free: 61.86 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01367/1.537, allocations: 11.99 MB / 0.9665 GB, free: 49.84 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/1.537, allocations: 8 kB / 0.9665 GB, free: 49.83 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006814/1.544, allocations: 5.266 MB / 0.9717 GB, free: 44.52 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009199/1.553, allocations: 0.9597 MB / 0.9726 GB, free: 43.57 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1727/1.726, allocations: 24.83 MB / 0.9969 GB, free: 240.1 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007556/1.733, allocations: 5.661 MB / 1.002 GB, free: 239.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00166/1.735, allocations: 458 kB / 1.003 GB, free: 239.2 MB / 0.5607 GB Notification: Performance of SimCode: time 8.11e-07/1.735, allocations: 2 kB / 1.003 GB, free: 239.2 MB / 0.5607 GB Notification: Performance of Templates: time 0.1614/1.896, allocations: 212.9 MB / 1.211 GB, free: 55.17 MB / 0.5607 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches