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.00108/0.00108, allocations: 100.2 kB / 17.3 MB, free: 6.395 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.001306/0.001306, allocations: 178.5 kB / 18.2 MB, free: 5.555 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.581/1.581, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0006545/0.0006546, allocations: 12 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.119, allocations: 47.58 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2821/0.4011, allocations: 109 MB / 437.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.06035/0.4615, allocations: 21.23 MB / 459.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02956/0.4911, allocations: 0.4909 MB / 459.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003835/0.495, allocations: 0.7461 MB / 460.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/0.5061, allocations: 3.282 MB / 463.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003954/0.51, allocations: 1.543 MB / 465.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02275/0.5328, allocations: 16.34 MB / 481.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01858/0.5514, allocations: 10.69 MB / 492.2 MB, free: 2.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00782/0.5593, allocations: 2.86 MB / 495.1 MB, free: 116 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008392/0.5678, allocations: 4.653 MB / 499.8 MB, free: 11.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001703/0.5695, allocations: 292 kB / 0.4883 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004066/0.5736, allocations: 1.318 MB / 0.4896 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004621/0.5782, allocations: 3.864 MB / 0.4934 GB, free: 5.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006521/0.5848, allocations: 4.047 MB / 0.4973 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01681/0.6016, allocations: 13.23 MB / 0.5103 GB, free: 4.609 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.6017, allocations: 0 / 0.5103 GB, free: 4.609 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.41e-06/0.6017, allocations: 0 / 0.5103 GB, free: 4.609 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005488/0.6022, allocations: 3.938 kB / 0.5103 GB, free: 4.605 MB / 414.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.02187/0.6241, allocations: 8.322 MB / 0.5184 GB, free: 12.2 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.6242, allocations: 11.97 kB / 0.5184 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04798/0.6722, allocations: 5.396 MB / 0.5237 GB, free: 6.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3475/1.02, allocations: 8.369 MB / 0.5318 GB, free: 148.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004603/1.02, allocations: 449.9 kB / 0.5323 GB, free: 148.7 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00201/1.022, allocations: 0.6109 MB / 0.5329 GB, free: 148.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03025/1.052, allocations: 17.2 MB / 0.5497 GB, free: 141.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002154/1.053, allocations: 102.5 kB / 0.5498 GB, free: 141.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006655/1.053, allocations: 280.5 kB / 0.55 GB, free: 141.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003853/1.057, allocations: 2.859 MB / 0.5528 GB, free: 140.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02371/1.081, allocations: 14.1 MB / 0.5666 GB, free: 126.5 MB / 430.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.08055/1.162, allocations: 69.48 MB / 0.6344 GB, free: 55.66 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01797/1.18, allocations: 7.521 MB / 0.6418 GB, free: 48.01 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005651/1.185, allocations: 4.452 MB / 0.6461 GB, free: 43.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02184/1.207, allocations: 12.76 MB / 0.6586 GB, free: 30.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.499e-05/1.207, allocations: 68.5 kB / 0.6587 GB, free: 30.47 MB / 430.1 MB Notification: Performance of pre-optimization done (n=293): time 7.143e-06/1.207, allocations: 0 / 0.6587 GB, free: 30.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=365): time 0.3621/1.57, allocations: 43.91 MB / 0.7015 GB, free: 132.4 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/1.57, allocations: 401 kB / 0.7019 GB, free: 132 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01368/1.583, allocations: 7.38 MB / 0.7091 GB, free: 129.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001044/1.584, allocations: 81.58 kB / 0.7092 GB, free: 129.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003822/1.588, allocations: 5.237 MB / 0.7143 GB, free: 125.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001907/1.59, allocations: 1.347 MB / 0.7156 GB, free: 124.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00169/1.592, allocations: 0.8397 MB / 0.7165 GB, free: 124 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.634e-05/1.592, allocations: 312.2 kB / 0.7168 GB, free: 123.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005965/1.598, allocations: 4.282 MB / 0.7209 GB, free: 122.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008063/1.606, allocations: 9.196 MB / 0.7299 GB, free: 114.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01833/1.624, allocations: 14.24 MB / 0.7438 GB, free: 102.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001752/1.625, allocations: 48 kB / 0.7439 GB, free: 102.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03817/1.663, allocations: 18.01 MB / 0.7615 GB, free: 84.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002398/1.663, allocations: 76.22 kB / 0.7615 GB, free: 84.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003076/1.663, allocations: 172 kB / 0.7617 GB, free: 84.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01495/1.678, allocations: 5.332 MB / 0.7669 GB, free: 78.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006624/1.685, allocations: 2.004 MB / 0.7689 GB, free: 76.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03913/1.724, allocations: 29.03 MB / 0.7972 GB, free: 47.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009272/1.734, allocations: 0.5625 MB / 0.7978 GB, free: 46.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00183/1.735, allocations: 0.5155 MB / 0.7983 GB, free: 46.23 MB / 430.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.007562/1.743, allocations: 3.62 MB / 0.8018 GB, free: 42.61 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001982/1.745, allocations: 0.66 MB / 0.8024 GB, free: 41.94 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02326/1.768, allocations: 11.27 MB / 0.8134 GB, free: 30.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.631e-05/1.768, allocations: 40 kB / 0.8135 GB, free: 30.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-05/1.768, allocations: 20 kB / 0.8135 GB, free: 30.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.024e-05/1.769, allocations: 15.94 kB / 0.8135 GB, free: 30.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04714/1.816, allocations: 22.16 MB / 0.8352 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.531e-05/1.816, allocations: 11.94 kB / 0.8352 GB, free: 8.129 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002292/1.818, allocations: 452.2 kB / 0.8356 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01474/1.833, allocations: 5.046 MB / 0.8405 GB, free: 2.629 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009295/1.834, allocations: 66.58 kB / 0.8406 GB, free: 2.566 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2682/2.102, allocations: 28.42 MB / 0.8683 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/2.102, allocations: 13.09 kB / 0.8684 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02717/2.129, allocations: 16.49 MB / 0.8845 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003654/2.133, allocations: 1.349 MB / 0.8858 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002367/2.135, allocations: 70.44 kB / 0.8858 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004592/2.14, allocations: 268.5 kB / 0.8861 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/2.141, allocations: 267.1 kB / 0.8864 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002717/2.141, allocations: 98.77 kB / 0.8864 GB, free: 123.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0072/2.149, allocations: 4.732 MB / 0.8911 GB, free: 120.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/2.149, allocations: 2.5 kB / 0.8911 GB, free: 120.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01163/2.16, allocations: 2.18 MB / 0.8932 GB, free: 118.2 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.001037/2.161, allocations: 227.9 kB / 0.8934 GB, free: 118 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01559/2.177, allocations: 10.83 MB / 0.904 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/2.177, allocations: 0 / 0.904 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005992/2.183, allocations: 4.476 MB / 0.9084 GB, free: 103.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01912/2.202, allocations: 0.973 MB / 0.9093 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04095/2.243, allocations: 23.38 MB / 0.9321 GB, free: 78.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006349/2.25, allocations: 5.772 MB / 0.9378 GB, free: 73.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006783/2.256, allocations: 2.744 MB / 0.9405 GB, free: 70.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/2.258, allocations: 415.4 kB / 0.9409 GB, free: 69.98 MB / 446.1 MB Notification: Performance of SimCode: time 1.001e-06/2.258, allocations: 0 / 0.9409 GB, free: 69.98 MB / 446.1 MB Notification: Performance of Templates: time 0.4061/2.664, allocations: 92.78 MB / 1.031 GB, free: 114.2 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches