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.001333/0.001333, allocations: 113.9 kB / 17.73 MB, free: 5.234 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.001307/0.001307, allocations: 187.1 kB / 18.66 MB, free: 4.309 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.58/1.58, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001475/0.001475, allocations: 60.14 kB / 328.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1234, allocations: 46.61 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2771/0.4006, allocations: 20.6 MB / 395.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01811/0.4188, allocations: 6.216 MB / 402 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007403/0.4262, allocations: 168.7 kB / 402.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01453/0.4408, allocations: 6.356 MB / 408.5 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01326/0.4541, allocations: 3.456 MB / 412 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004845/0.459, allocations: 1.657 MB / 413.6 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01808/0.4771, allocations: 11.66 MB / 425.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01073/0.4878, allocations: 8.08 MB / 433.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007852/0.4957, allocations: 3.786 MB / 437.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009456/0.5052, allocations: 4.993 MB / 442.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003382/0.5086, allocations: 0.75 MB / 442.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005961/0.5146, allocations: 1.709 MB / 444.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007617/0.5223, allocations: 4.485 MB / 449.1 MB, free: 5.594 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01184/0.5342, allocations: 4.674 MB / 453.8 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02216/0.5563, allocations: 14.2 MB / 468 MB, free: 2.648 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.505e-06/0.5564, allocations: 0 / 468 MB, free: 2.648 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5564, allocations: 0 / 468 MB, free: 2.648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006017/0.557, allocations: 4 kB / 468 MB, free: 2.645 MB / 382.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.03029/0.5873, allocations: 10.07 MB / 478 MB, free: 8.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.5874, allocations: 12.03 kB / 478 MB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04818/0.6356, allocations: 5.275 MB / 483.3 MB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02483/0.6605, allocations: 8.548 MB / 491.9 MB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005643/0.6611, allocations: 452.2 kB / 492.3 MB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003573/0.6647, allocations: 0.6165 MB / 492.9 MB, free: 9.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0417/0.7064, allocations: 17.13 MB / 0.4981 GB, free: 7.297 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004859/0.7069, allocations: 99.17 kB / 0.4982 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002212/0.7092, allocations: 279.7 kB / 0.4985 GB, free: 6.926 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005081/0.7143, allocations: 2.862 MB / 0.5013 GB, free: 4.062 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03227/0.7466, allocations: 14.03 MB / 0.515 GB, free: 6.016 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.5761/1.323, allocations: 69.1 MB / 0.5824 GB, free: 104.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02149/1.344, allocations: 7.472 MB / 0.5897 GB, free: 102.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006776/1.351, allocations: 4.458 MB / 0.5941 GB, free: 101 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02149/1.373, allocations: 12.76 MB / 0.6065 GB, free: 94.82 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.733e-05/1.373, allocations: 71.08 kB / 0.6066 GB, free: 94.76 MB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 5.481e-06/1.373, allocations: 0 / 0.6066 GB, free: 94.76 MB / 478.1 MB Notification: Performance of matching and sorting (n=365): time 0.1533/1.526, allocations: 43.53 MB / 0.6491 GB, free: 60.95 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/1.526, allocations: 406.3 kB / 0.6495 GB, free: 60.47 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01679/1.543, allocations: 7.385 MB / 0.6567 GB, free: 53.11 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001146/1.544, allocations: 85.61 kB / 0.6568 GB, free: 53.03 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003332/1.548, allocations: 5.232 MB / 0.6619 GB, free: 47.79 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002294/1.55, allocations: 1.35 MB / 0.6632 GB, free: 46.45 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00318/1.553, allocations: 1.939 MB / 0.6651 GB, free: 44.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.849e-05/1.553, allocations: 308.8 kB / 0.6654 GB, free: 44.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00504/1.558, allocations: 4.282 MB / 0.6696 GB, free: 39.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007588/1.566, allocations: 9.192 MB / 0.6786 GB, free: 28.35 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01582/1.582, allocations: 14.25 MB / 0.6925 GB, free: 11.73 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002459/1.582, allocations: 48 kB / 0.6925 GB, free: 11.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.04448/1.627, allocations: 17.99 MB / 0.7101 GB, free: 9.641 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002483/1.627, allocations: 76 kB / 0.7102 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003746/1.627, allocations: 171.9 kB / 0.7103 GB, free: 9.398 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01713/1.644, allocations: 5.332 MB / 0.7156 GB, free: 4.055 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007618/1.652, allocations: 2.013 MB / 0.7175 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05181/1.704, allocations: 31.1 MB / 0.7479 GB, free: 2.508 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01017/1.714, allocations: 0.5578 MB / 0.7484 GB, free: 1.949 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002414/1.717, allocations: 0.5155 MB / 0.7489 GB, free: 1.434 MB / 0.5138 GB 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.3353/2.052, allocations: 3.627 MB / 0.7525 GB, free: 172.5 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002719/2.055, allocations: 0.6598 MB / 0.7531 GB, free: 172.5 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02735/2.082, allocations: 11.27 MB / 0.7641 GB, free: 170.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/2.082, allocations: 35.94 kB / 0.7642 GB, free: 170.7 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001018/2.082, allocations: 23.03 kB / 0.7642 GB, free: 170.7 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/2.082, allocations: 27.11 kB / 0.7642 GB, free: 170.7 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05308/2.136, allocations: 22.01 MB / 0.7857 GB, free: 163 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-05/2.136, allocations: 7.656 kB / 0.7857 GB, free: 163 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002544/2.138, allocations: 456.4 kB / 0.7861 GB, free: 163 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01469/2.153, allocations: 5.008 MB / 0.791 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/2.154, allocations: 69.53 kB / 0.7911 GB, free: 161.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03755/2.192, allocations: 30.51 MB / 0.8209 GB, free: 135.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/2.192, allocations: 11.94 kB / 0.8209 GB, free: 135.2 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0294/2.221, allocations: 16.49 MB / 0.837 GB, free: 118.9 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004243/2.225, allocations: 1.343 MB / 0.8383 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002738/2.228, allocations: 68 kB / 0.8384 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005444/2.234, allocations: 267.6 kB / 0.8386 GB, free: 117.4 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001574/2.235, allocations: 269.7 kB / 0.8389 GB, free: 117.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000704/2.236, allocations: 104 kB / 0.839 GB, free: 117 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00901/2.245, allocations: 4.726 MB / 0.8436 GB, free: 112.3 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.71e-07/2.245, allocations: 3.719 kB / 0.8436 GB, free: 112.3 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01405/2.259, allocations: 2.181 MB / 0.8458 GB, free: 110.1 MB / 0.5138 GB 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.001543/2.261, allocations: 226.6 kB / 0.846 GB, free: 109.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01785/2.278, allocations: 10.88 MB / 0.8566 GB, free: 99.07 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/2.279, allocations: 0 / 0.8566 GB, free: 99.07 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007656/2.286, allocations: 4.477 MB / 0.861 GB, free: 94.56 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0142/2.3, allocations: 1.031 MB / 0.862 GB, free: 93.57 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04322/2.344, allocations: 19.36 MB / 0.8809 GB, free: 74.18 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01147/2.355, allocations: 5.763 MB / 0.8865 GB, free: 68.39 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006268/2.362, allocations: 2.746 MB / 0.8892 GB, free: 65.65 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/2.363, allocations: 415.4 kB / 0.8896 GB, free: 65.25 MB / 0.5138 GB Notification: Performance of SimCode: time 2.124e-06/2.363, allocations: 0 / 0.8896 GB, free: 65.25 MB / 0.5138 GB Notification: Performance of Templates: time 0.3909/2.754, allocations: 93.41 MB / 0.9808 GB, free: 150.3 MB / 0.5138 GB 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