Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001312/0.001312, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001388/0.001388, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 51.92 kB / 280.7 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1058, allocations: 46.62 MB / 327.3 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02299/0.1288, allocations: 20.6 MB / 347.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.1425, allocations: 6.208 MB / 354.1 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004688/0.1473, allocations: 163.4 kB / 354.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01283/0.1602, allocations: 6.366 MB / 360.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009565/0.1698, allocations: 3.451 MB / 364.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004012/0.1739, allocations: 1.662 MB / 365.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01855/0.1924, allocations: 11.67 MB / 377.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2091/0.4016, allocations: 8.08 MB / 385.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009257/0.4109, allocations: 3.769 MB / 389.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009353/0.4203, allocations: 4.978 MB / 394.2 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003663/0.424, allocations: 0.7473 MB / 395 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006081/0.4301, allocations: 1.707 MB / 396.7 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007002/0.4371, allocations: 4.392 MB / 401.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009165/0.4463, allocations: 4.666 MB / 405.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0153/0.4617, allocations: 13.88 MB / 419.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.4617, allocations: 0 / 419.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4617, allocations: 0 / 419.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006168/0.4623, allocations: 3.375 kB / 419.6 MB, free: 3.543 MB / 318.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.03045/0.4928, allocations: 10.05 MB / 429.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.4929, allocations: 8.031 kB / 429.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04554/0.5384, allocations: 5.289 MB / 435 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0219/0.5604, allocations: 8.366 MB / 443.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003733/0.5608, allocations: 450.6 kB / 443.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002133/0.5629, allocations: 0.6116 MB / 444.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03047/0.5934, allocations: 17.14 MB / 461.5 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002802/0.5937, allocations: 100.4 kB / 461.6 MB, free: 9.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008265/0.5946, allocations: 280 kB / 461.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004346/0.5989, allocations: 2.853 MB / 464.8 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02779/0.6267, allocations: 14.04 MB / 478.8 MB, free: 8.719 MB / 382.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.095/0.7218, allocations: 69.44 MB / 0.5354 GB, free: 2.066 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.205/0.9268, allocations: 7.454 MB / 0.5427 GB, free: 153.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007674/0.9345, allocations: 4.456 MB / 0.547 GB, free: 152 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02331/0.9578, allocations: 12.76 MB / 0.5595 GB, free: 146 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.522e-05/0.9579, allocations: 72.41 kB / 0.5595 GB, free: 145.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.38e-06/0.958, allocations: 0 / 0.5595 GB, free: 145.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=365): time 0.1466/1.105, allocations: 43.54 MB / 0.6021 GB, free: 116.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002102/1.105, allocations: 406.2 kB / 0.6024 GB, free: 115.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01498/1.12, allocations: 7.381 MB / 0.6096 GB, free: 108.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001229/1.121, allocations: 81.7 kB / 0.6097 GB, free: 108.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004161/1.125, allocations: 5.234 MB / 0.6148 GB, free: 102.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002431/1.128, allocations: 1.355 MB / 0.6162 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00296/1.131, allocations: 1.935 MB / 0.6181 GB, free: 99.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.722e-05/1.131, allocations: 301.1 kB / 0.6183 GB, free: 99.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005045/1.136, allocations: 4.278 MB / 0.6225 GB, free: 95.07 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007475/1.143, allocations: 9.202 MB / 0.6315 GB, free: 83.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01416/1.158, allocations: 14.24 MB / 0.6454 GB, free: 66.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.933e-05/1.158, allocations: 48 kB / 0.6455 GB, free: 66.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.0347/1.192, allocations: 18.01 MB / 0.663 GB, free: 48.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002444/1.193, allocations: 76 kB / 0.6631 GB, free: 48.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003499/1.193, allocations: 168 kB / 0.6633 GB, free: 48.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01583/1.209, allocations: 5.337 MB / 0.6685 GB, free: 43.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006847/1.216, allocations: 2.016 MB / 0.6705 GB, free: 41.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2788/1.495, allocations: 31.11 MB / 0.7008 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009328/1.504, allocations: 0.5543 MB / 0.7014 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002141/1.506, allocations: 0.5105 MB / 0.7019 GB, free: 126.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1102): * Single equations (assignments): 1096 * 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 {(6,100,72.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.00849/1.515, allocations: 3.63 MB / 0.7054 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001879/1.517, allocations: 0.6599 MB / 0.7061 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02137/1.538, allocations: 11.27 MB / 0.7171 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.996e-05/1.538, allocations: 37 kB / 0.7171 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.195e-05/1.538, allocations: 20.97 kB / 0.7171 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.757e-05/1.538, allocations: 15.94 kB / 0.7172 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04516/1.583, allocations: 22.17 MB / 0.7388 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-05/1.583, allocations: 10.78 kB / 0.7388 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002153/1.586, allocations: 450 kB / 0.7392 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0139/1.6, allocations: 5.027 MB / 0.7441 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009334/1.601, allocations: 71.06 kB / 0.7442 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03709/1.638, allocations: 30.53 MB / 0.774 GB, free: 86.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/1.638, allocations: 11.94 kB / 0.774 GB, free: 86.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02658/1.664, allocations: 16.49 MB / 0.7901 GB, free: 69.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003993/1.668, allocations: 1.339 MB / 0.7915 GB, free: 68.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001582/1.67, allocations: 68 kB / 0.7915 GB, free: 68.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003787/1.674, allocations: 263.6 kB / 0.7918 GB, free: 68.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009104/1.675, allocations: 270.6 kB / 0.792 GB, free: 68.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002545/1.675, allocations: 97.56 kB / 0.7921 GB, free: 68.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006688/1.682, allocations: 4.734 MB / 0.7967 GB, free: 63.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.682, allocations: 0 / 0.7967 GB, free: 63.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01058/1.692, allocations: 2.178 MB / 0.7989 GB, free: 61.19 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(5,96,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009458/1.693, allocations: 227.4 kB / 0.7991 GB, free: 60.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0214/1.715, allocations: 14.32 MB / 0.8131 GB, free: 46.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/1.715, allocations: 0 / 0.8131 GB, free: 46.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005784/1.72, allocations: 4.482 MB / 0.8175 GB, free: 42.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006697/1.727, allocations: 1.036 MB / 0.8185 GB, free: 41.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03359/1.761, allocations: 19.57 MB / 0.8376 GB, free: 21.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00924/1.77, allocations: 5.772 MB / 0.8432 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007224/1.777, allocations: 2.748 MB / 0.8459 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/1.779, allocations: 419.4 kB / 0.8463 GB, free: 12.62 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/1.779, allocations: 0 / 0.8463 GB, free: 12.62 MB / 446.1 MB Notification: Performance of Templates: time 0.3797/2.158, allocations: 98.52 MB / 0.9425 GB, free: 70.18 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches