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.0009201/0.0009198, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001021/0.001021, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.42/1.42, allocations: 205.1 MB / 225.2 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.001295/0.001295, allocations: 47.94 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08221/0.08352, allocations: 46.63 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01922/0.1028, allocations: 20.6 MB / 349.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.1151, allocations: 6.208 MB / 355.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004412/0.1196, allocations: 171.4 kB / 355.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01081/0.1305, allocations: 6.355 MB / 362.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008186/0.1387, allocations: 3.447 MB / 365.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003474/0.1422, allocations: 1.677 MB / 367.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01436/0.1565, allocations: 11.65 MB / 378.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2083/0.3649, allocations: 8.073 MB / 386.9 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009644/0.3746, allocations: 3.776 MB / 390.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009444/0.384, allocations: 4.977 MB / 395.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003512/0.3876, allocations: 0.7463 MB / 396.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005427/0.3931, allocations: 1.712 MB / 398.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006703/0.3998, allocations: 4.388 MB / 402.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009689/0.4095, allocations: 4.666 MB / 407.2 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01894/0.4285, allocations: 14.21 MB / 421.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4285, allocations: 4 kB / 421.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4286, allocations: 0 / 421.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000584/0.4292, allocations: 0 / 421.4 MB, free: 3.238 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.02725/0.4564, allocations: 10.05 MB / 431.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4565, allocations: 8.031 kB / 431.4 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04123/0.4977, allocations: 5.286 MB / 436.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02046/0.5182, allocations: 8.554 MB / 445.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004245/0.5187, allocations: 445.1 kB / 445.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00254/0.5212, allocations: 0.6072 MB / 446.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03321/0.5545, allocations: 17.14 MB / 463.5 MB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003075/0.5548, allocations: 100.3 kB / 463.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007812/0.5556, allocations: 272.8 kB / 463.8 MB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004519/0.5601, allocations: 2.864 MB / 466.7 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02859/0.5887, allocations: 14.04 MB / 480.7 MB, free: 8 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.08974/0.6785, allocations: 69.11 MB / 0.5369 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1951/0.8737, allocations: 7.458 MB / 0.5442 GB, free: 152.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005248/0.8789, allocations: 4.461 MB / 0.5486 GB, free: 150.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0162/0.8952, allocations: 12.75 MB / 0.561 GB, free: 144.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.8952, allocations: 72.05 kB / 0.5611 GB, free: 144.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.51e-06/0.8953, allocations: 1.5 kB / 0.5611 GB, free: 144.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=365): time 0.1296/1.025, allocations: 43.53 MB / 0.6036 GB, free: 114 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/1.025, allocations: 402.2 kB / 0.604 GB, free: 113.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009516/1.035, allocations: 7.385 MB / 0.6112 GB, free: 106.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008584/1.035, allocations: 81.7 kB / 0.6113 GB, free: 106.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002412/1.038, allocations: 5.242 MB / 0.6164 GB, free: 100.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001235/1.039, allocations: 1.344 MB / 0.6177 GB, free: 99.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002407/1.042, allocations: 1.931 MB / 0.6196 GB, free: 97.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.223e-05/1.042, allocations: 309.1 kB / 0.6199 GB, free: 97.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00482/1.046, allocations: 4.282 MB / 0.6241 GB, free: 92.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006815/1.053, allocations: 9.19 MB / 0.6331 GB, free: 81.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01363/1.067, allocations: 14.24 MB / 0.647 GB, free: 64.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001552/1.067, allocations: 48 kB / 0.647 GB, free: 64.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03432/1.101, allocations: 18.02 MB / 0.6646 GB, free: 46.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003087/1.102, allocations: 76 kB / 0.6647 GB, free: 46.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004751/1.102, allocations: 164 kB / 0.6648 GB, free: 46.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01458/1.117, allocations: 5.325 MB / 0.67 GB, free: 41.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006544/1.123, allocations: 2.012 MB / 0.672 GB, free: 39.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2098/1.333, allocations: 31.1 MB / 0.7024 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007826/1.341, allocations: 0.5459 MB / 0.7029 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001262/1.342, allocations: 0.5158 MB / 0.7034 GB, free: 125.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.005572/1.348, allocations: 3.627 MB / 0.707 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.349, allocations: 0.6658 MB / 0.7076 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01984/1.369, allocations: 11.27 MB / 0.7186 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.694e-05/1.369, allocations: 37.81 kB / 0.7186 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.62e-05/1.369, allocations: 25.14 kB / 0.7187 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.577e-05/1.369, allocations: 17.67 kB / 0.7187 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03723/1.407, allocations: 22.01 MB / 0.7402 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.33e-05/1.407, allocations: 12.67 kB / 0.7402 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/1.409, allocations: 454.7 kB / 0.7406 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0134/1.422, allocations: 5.011 MB / 0.7455 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006603/1.423, allocations: 64.53 kB / 0.7456 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03231/1.455, allocations: 30.52 MB / 0.7754 GB, free: 84.94 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/1.455, allocations: 11.94 kB / 0.7754 GB, free: 84.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02374/1.479, allocations: 16.5 MB / 0.7915 GB, free: 68.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004834/1.484, allocations: 1.34 MB / 0.7928 GB, free: 67.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001659/1.485, allocations: 68 kB / 0.7929 GB, free: 67.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00341/1.489, allocations: 267.5 kB / 0.7931 GB, free: 67.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008432/1.49, allocations: 270.7 kB / 0.7934 GB, free: 66.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000279/1.49, allocations: 99.98 kB / 0.7935 GB, free: 66.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0062/1.496, allocations: 4.73 MB / 0.7981 GB, free: 62.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.22e-07/1.496, allocations: 0 / 0.7981 GB, free: 62.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008663/1.505, allocations: 2.186 MB / 0.8003 GB, free: 59.9 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.0006806/1.506, allocations: 217.2 kB / 0.8005 GB, free: 59.69 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01475/1.52, allocations: 10.88 MB / 0.8111 GB, free: 48.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/1.52, allocations: 4 kB / 0.8111 GB, free: 48.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005347/1.526, allocations: 4.479 MB / 0.8155 GB, free: 44.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005265/1.531, allocations: 1.034 MB / 0.8165 GB, free: 43.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0293/1.56, allocations: 19.36 MB / 0.8354 GB, free: 23.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006313/1.567, allocations: 5.772 MB / 0.841 GB, free: 18.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006029/1.573, allocations: 2.746 MB / 0.8437 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/1.574, allocations: 415.4 kB / 0.8441 GB, free: 15.05 MB / 446.1 MB Notification: Performance of SimCode: time 1.874e-06/1.574, allocations: 0 / 0.8441 GB, free: 15.05 MB / 446.1 MB Notification: Performance of Templates: time 0.3179/1.892, allocations: 90.41 MB / 0.9324 GB, free: 81.47 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 cvode -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