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.001088/0.001088, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.000974/0.000974, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.325/1.325, allocations: 205.1 MB / 225.2 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.001195/0.001195, allocations: 47.94 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0845/0.08571, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01963/0.1054, allocations: 20.61 MB / 349.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.1188, allocations: 6.204 MB / 355.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004254/0.1231, allocations: 167.4 kB / 355.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01064/0.1338, allocations: 6.359 MB / 362.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007568/0.1414, allocations: 3.447 MB / 365.5 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003234/0.1447, allocations: 1.673 MB / 367.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01449/0.1592, allocations: 11.66 MB / 378.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1643/0.3235, allocations: 8.071 MB / 386.9 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007509/0.3311, allocations: 3.779 MB / 390.7 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006858/0.3379, allocations: 4.977 MB / 395.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002217/0.3402, allocations: 0.7487 MB / 396.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003677/0.3439, allocations: 1.702 MB / 398.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00362/0.3475, allocations: 4.393 MB / 402.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004355/0.3519, allocations: 4.672 MB / 407.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009718/0.3616, allocations: 14.21 MB / 421.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3616, allocations: 0 / 421.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3617, allocations: 0 / 421.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002911/0.362, allocations: 0 / 421.4 MB, free: 3.281 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.01947/0.3814, allocations: 10.05 MB / 431.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.3815, allocations: 12.03 kB / 431.4 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04004/0.4215, allocations: 5.279 MB / 436.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02013/0.4417, allocations: 8.557 MB / 445.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003601/0.4421, allocations: 446.2 kB / 445.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001976/0.4441, allocations: 0.6135 MB / 446.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02936/0.4735, allocations: 17.14 MB / 463.5 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002668/0.4738, allocations: 99.77 kB / 463.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007384/0.4745, allocations: 283.1 kB / 463.8 MB, free: 8.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004175/0.4787, allocations: 2.853 MB / 466.7 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02827/0.507, allocations: 14.04 MB / 480.7 MB, free: 8.004 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.09061/0.5977, allocations: 69.11 MB / 0.537 GB, free: 1.672 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.174/0.7717, allocations: 7.457 MB / 0.5442 GB, free: 153.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006004/0.7777, allocations: 4.453 MB / 0.5486 GB, free: 151.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01754/0.7953, allocations: 12.76 MB / 0.561 GB, free: 145.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.7954, allocations: 70.38 kB / 0.5611 GB, free: 145.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.24e-06/0.7954, allocations: 0 / 0.5611 GB, free: 145.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=365): time 0.1369/0.9323, allocations: 43.52 MB / 0.6036 GB, free: 115.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.9324, allocations: 402.3 kB / 0.604 GB, free: 115.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/0.9427, allocations: 7.385 MB / 0.6112 GB, free: 107.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001123/0.9439, allocations: 81.7 kB / 0.6113 GB, free: 107.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003734/0.9476, allocations: 5.238 MB / 0.6164 GB, free: 102.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001755/0.9494, allocations: 1.349 MB / 0.6177 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002893/0.9523, allocations: 1.931 MB / 0.6196 GB, free: 99.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.122e-05/0.9523, allocations: 315.6 kB / 0.6199 GB, free: 98.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005224/0.9576, allocations: 4.278 MB / 0.6241 GB, free: 94.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007175/0.9648, allocations: 9.194 MB / 0.6331 GB, free: 83.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01372/0.9785, allocations: 14.25 MB / 0.647 GB, free: 66.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001086/0.9787, allocations: 48 kB / 0.647 GB, free: 66.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03155/1.01, allocations: 18.01 MB / 0.6646 GB, free: 48.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.546e-05/1.01, allocations: 80.06 kB / 0.6647 GB, free: 48.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/1.011, allocations: 168 kB / 0.6648 GB, free: 48.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01406/1.025, allocations: 5.325 MB / 0.67 GB, free: 42.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006417/1.031, allocations: 2.004 MB / 0.672 GB, free: 40.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2326/1.264, allocations: 31.1 MB / 0.7024 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01238/1.276, allocations: 0.5551 MB / 0.7029 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002159/1.278, allocations: 0.5099 MB / 0.7034 GB, free: 126.3 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.008592/1.287, allocations: 3.631 MB / 0.707 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001682/1.289, allocations: 0.6642 MB / 0.7076 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02001/1.309, allocations: 11.27 MB / 0.7186 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.337e-05/1.309, allocations: 37.41 kB / 0.7187 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.657e-05/1.309, allocations: 19.66 kB / 0.7187 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.177e-05/1.309, allocations: 19.5 kB / 0.7187 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04064/1.349, allocations: 22.01 MB / 0.7402 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.069e-05/1.349, allocations: 7.5 kB / 0.7402 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/1.351, allocations: 453.6 kB / 0.7406 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01317/1.365, allocations: 5.015 MB / 0.7455 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000566/1.365, allocations: 78 kB / 0.7456 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03375/1.399, allocations: 30.51 MB / 0.7754 GB, free: 86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/1.399, allocations: 11.94 kB / 0.7754 GB, free: 85.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02487/1.424, allocations: 16.49 MB / 0.7915 GB, free: 69.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00441/1.428, allocations: 1.347 MB / 0.7928 GB, free: 68.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00112/1.429, allocations: 68 kB / 0.7929 GB, free: 68.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003102/1.433, allocations: 260.8 kB / 0.7931 GB, free: 68.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008822/1.433, allocations: 273 kB / 0.7934 GB, free: 67.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002852/1.434, allocations: 95.47 kB / 0.7935 GB, free: 67.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005997/1.44, allocations: 4.734 MB / 0.7981 GB, free: 63.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.44, allocations: 0 / 0.7981 GB, free: 63.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008284/1.448, allocations: 2.177 MB / 0.8002 GB, free: 60.97 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.0006635/1.449, allocations: 230.5 kB / 0.8005 GB, free: 60.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01431/1.463, allocations: 10.88 MB / 0.8111 GB, free: 49.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/1.463, allocations: 4 kB / 0.8111 GB, free: 49.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005869/1.469, allocations: 4.473 MB / 0.8155 GB, free: 45.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005821/1.475, allocations: 1.035 MB / 0.8165 GB, free: 44.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02469/1.5, allocations: 19.36 MB / 0.8354 GB, free: 25.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004845/1.504, allocations: 5.772 MB / 0.841 GB, free: 19.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005271/1.51, allocations: 2.75 MB / 0.8437 GB, free: 16.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/1.511, allocations: 415.4 kB / 0.8441 GB, free: 16.11 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/1.511, allocations: 4 kB / 0.8441 GB, free: 16.11 MB / 446.1 MB Notification: Performance of Templates: time 0.3024/1.813, allocations: 90.41 MB / 0.9324 GB, free: 81.87 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/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