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.001247/0.001247, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.001263/0.001263, allocations: 191 kB / 18.66 MB, free: 4.445 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.544/1.544, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001434/0.001434, allocations: 56.14 kB / 328.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1135, allocations: 46.62 MB / 375.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2615/0.3751, allocations: 20.6 MB / 395.8 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01938/0.3945, allocations: 6.217 MB / 402 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007163/0.4017, allocations: 165.6 kB / 402.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01437/0.4162, allocations: 6.358 MB / 408.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01255/0.4288, allocations: 3.458 MB / 412 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005977/0.4348, allocations: 1.661 MB / 413.6 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02586/0.4607, allocations: 11.65 MB / 425.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01319/0.4739, allocations: 8.081 MB / 433.4 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009069/0.483, allocations: 3.778 MB / 437.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008841/0.4919, allocations: 4.997 MB / 442.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002827/0.4948, allocations: 0.75 MB / 442.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00498/0.4998, allocations: 1.709 MB / 444.6 MB, free: 9.945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00621/0.506, allocations: 4.485 MB / 449.1 MB, free: 5.449 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0102/0.5163, allocations: 4.674 MB / 453.8 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02056/0.5369, allocations: 14.21 MB / 468 MB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.5369, allocations: 0 / 468 MB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5369, allocations: 0 / 468 MB, free: 2.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004869/0.5374, allocations: 0 / 468 MB, free: 2.496 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.02741/0.5648, allocations: 10.06 MB / 478 MB, free: 8.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.5649, allocations: 8.031 kB / 478 MB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04753/0.6125, allocations: 5.279 MB / 483.3 MB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02164/0.6341, allocations: 8.548 MB / 491.9 MB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004324/0.6346, allocations: 444.2 kB / 492.3 MB, free: 9.961 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002573/0.6372, allocations: 0.6165 MB / 492.9 MB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03382/0.671, allocations: 17.13 MB / 0.4981 GB, free: 7.152 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003357/0.6714, allocations: 99.05 kB / 0.4982 GB, free: 7.055 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001351/0.6728, allocations: 283.8 kB / 0.4985 GB, free: 6.777 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00473/0.6775, allocations: 2.851 MB / 0.5012 GB, free: 3.926 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03308/0.7106, allocations: 14.04 MB / 0.515 GB, free: 5.863 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.53/1.241, allocations: 69.09 MB / 0.5824 GB, free: 104.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01933/1.26, allocations: 7.472 MB / 0.5897 GB, free: 102.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00597/1.266, allocations: 4.458 MB / 0.5941 GB, free: 100.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02028/1.286, allocations: 12.76 MB / 0.6065 GB, free: 94.62 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/1.286, allocations: 70.41 kB / 0.6066 GB, free: 94.56 MB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 5.771e-06/1.286, allocations: 0 / 0.6066 GB, free: 94.56 MB / 478.1 MB Notification: Performance of matching and sorting (n=365): time 0.1394/1.426, allocations: 43.54 MB / 0.6491 GB, free: 60.73 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/1.426, allocations: 401.7 kB / 0.6495 GB, free: 60.25 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01035/1.436, allocations: 7.389 MB / 0.6567 GB, free: 52.89 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001267/1.438, allocations: 81.64 kB / 0.6568 GB, free: 52.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003054/1.441, allocations: 5.236 MB / 0.6619 GB, free: 47.57 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001864/1.443, allocations: 1.354 MB / 0.6632 GB, free: 46.23 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002691/1.445, allocations: 1.935 MB / 0.6651 GB, free: 44.28 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.316e-05/1.445, allocations: 301.1 kB / 0.6654 GB, free: 43.98 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005247/1.451, allocations: 4.278 MB / 0.6696 GB, free: 39.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007739/1.458, allocations: 9.195 MB / 0.6786 GB, free: 28.14 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01573/1.474, allocations: 14.25 MB / 0.6925 GB, free: 11.52 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002261/1.475, allocations: 48 kB / 0.6925 GB, free: 11.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.04097/1.515, allocations: 18.01 MB / 0.7101 GB, free: 9.418 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002659/1.516, allocations: 76 kB / 0.7102 GB, free: 9.344 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003088/1.516, allocations: 168 kB / 0.7104 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0165/1.533, allocations: 5.325 MB / 0.7156 GB, free: 3.844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007421/1.54, allocations: 2.017 MB / 0.7175 GB, free: 1.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04971/1.59, allocations: 31.1 MB / 0.7479 GB, free: 2.289 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01018/1.6, allocations: 0.5499 MB / 0.7484 GB, free: 1.738 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002585/1.603, allocations: 0.5195 MB / 0.7489 GB, free: 1.219 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.2473/1.85, allocations: 3.627 MB / 0.7525 GB, free: 172 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001921/1.852, allocations: 0.662 MB / 0.7531 GB, free: 172 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02526/1.877, allocations: 11.27 MB / 0.7641 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.094e-05/1.877, allocations: 41.03 kB / 0.7642 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.148e-05/1.877, allocations: 20.38 kB / 0.7642 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.475e-05/1.877, allocations: 20.5 kB / 0.7642 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04363/1.921, allocations: 22.01 MB / 0.7857 GB, free: 162.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-05/1.921, allocations: 8.562 kB / 0.7857 GB, free: 162.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002159/1.923, allocations: 450.5 kB / 0.7861 GB, free: 162.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01386/1.937, allocations: 5.019 MB / 0.791 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008887/1.938, allocations: 73.5 kB / 0.7911 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03393/1.972, allocations: 30.5 MB / 0.8209 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/1.972, allocations: 12.81 kB / 0.8209 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02467/1.997, allocations: 16.49 MB / 0.837 GB, free: 118.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004117/2.001, allocations: 1.344 MB / 0.8383 GB, free: 117.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002001/2.003, allocations: 71.98 kB / 0.8384 GB, free: 117.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004243/2.007, allocations: 267.6 kB / 0.8387 GB, free: 116.9 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00109/2.008, allocations: 265.8 kB / 0.8389 GB, free: 116.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002988/2.009, allocations: 99.66 kB / 0.839 GB, free: 116.6 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008105/2.017, allocations: 4.734 MB / 0.8436 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.1e-07/2.017, allocations: 0 / 0.8436 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01083/2.028, allocations: 2.178 MB / 0.8458 GB, free: 109.7 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.001239/2.029, allocations: 226.8 kB / 0.846 GB, free: 109.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01768/2.047, allocations: 10.88 MB / 0.8566 GB, free: 98.67 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/2.047, allocations: 4 kB / 0.8566 GB, free: 98.67 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006775/2.054, allocations: 4.475 MB / 0.861 GB, free: 94.16 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008711/2.062, allocations: 1.03 MB / 0.862 GB, free: 93.17 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03618/2.098, allocations: 19.36 MB / 0.8809 GB, free: 73.79 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007872/2.106, allocations: 5.766 MB / 0.8865 GB, free: 67.98 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.00608/2.112, allocations: 2.748 MB / 0.8892 GB, free: 65.23 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/2.114, allocations: 419.4 kB / 0.8896 GB, free: 64.82 MB / 0.5138 GB Notification: Performance of SimCode: time 1.974e-06/2.114, allocations: 0 / 0.8896 GB, free: 64.82 MB / 0.5138 GB Notification: Performance of Templates: time 0.3975/2.511, allocations: 94.5 MB / 0.9819 GB, free: 148.9 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