Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0015/0.0015, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001081, allocations: 91.25 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.88e-05/1.875e-05, allocations: 0 / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3447, allocations: 47.55 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1589/0.5036, allocations: 97.07 MB / 459.4 MB, free: 5.211 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.504, allocations: 91.89 kB / 459.5 MB, free: 5.125 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9545/1.459, allocations: 163.3 MB / 0.6082 GB, free: 33.72 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.645e-06/1.459, allocations: 4 kB / 0.6082 GB, free: 33.71 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0007653/1.459, allocations: 163.9 kB / 0.6084 GB, free: 33.55 MB / 395.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.03342/1.493, allocations: 8.198 MB / 0.6164 GB, free: 25.28 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/1.493, allocations: 8.031 kB / 0.6164 GB, free: 25.27 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1539/1.647, allocations: 16.57 MB / 0.6325 GB, free: 8.664 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04804/1.695, allocations: 13.75 MB / 0.646 GB, free: 10.82 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000565/1.696, allocations: 240 kB / 0.6462 GB, free: 10.59 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004017/1.7, allocations: 471.6 kB / 0.6467 GB, free: 10.12 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02861/1.728, allocations: 9.87 MB / 0.6563 GB, free: 256 kB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6366/2.365, allocations: 14.79 MB / 0.6707 GB, free: 55.97 MB / 411.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008721/2.366, allocations: 117.8 kB / 0.6708 GB, free: 55.97 MB / 411.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003803/2.37, allocations: 43.03 kB / 0.6709 GB, free: 55.97 MB / 411.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003676/2.373, allocations: 1.531 MB / 0.6724 GB, free: 55.96 MB / 411.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.13/2.503, allocations: 72.63 MB / 0.7433 GB, free: 12.89 MB / 411.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01047/2.514, allocations: 5.386 MB / 0.7486 GB, free: 10.27 MB / 411.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008714/2.523, allocations: 3.817 MB / 0.7523 GB, free: 8.605 MB / 411.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001772/2.525, allocations: 1.377 MB / 0.7536 GB, free: 7.336 MB / 411.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.576e-05/2.525, allocations: 68 kB / 0.7537 GB, free: 7.273 MB / 411.2 MB Notification: Performance of pre-optimization done (n=299): time 7.033e-06/2.525, allocations: 0 / 0.7537 GB, free: 7.273 MB / 411.2 MB Notification: Performance of matching and sorting (n=371): time 0.1583/2.683, allocations: 35.91 MB / 0.7888 GB, free: 6.566 MB / 427.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000282/2.683, allocations: 402 kB / 0.7892 GB, free: 6.09 MB / 427.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01618/2.7, allocations: 5.659 MB / 0.7947 GB, free: 1.223 MB / 427.2 MB Notification: Performance of collectPreVariables (initialization): time 0.001004/2.701, allocations: 31.39 kB / 0.7947 GB, free: 1.188 MB / 427.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.006349/2.707, allocations: 5.166 MB / 0.7998 GB, free: 12.42 MB / 443.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.002618/2.71, allocations: 1.316 MB / 0.801 GB, free: 11.23 MB / 443.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00109/2.711, allocations: 4.844 kB / 0.801 GB, free: 11.23 MB / 443.2 MB Notification: Performance of setup shared object (initialization): time 0.0007358/2.712, allocations: 0.6848 MB / 0.8017 GB, free: 10.64 MB / 443.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008835/2.72, allocations: 3.349 MB / 0.805 GB, free: 7.633 MB / 443.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01437/2.735, allocations: 8.303 MB / 0.8131 GB, free: 13.52 MB / 459.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/2.748, allocations: 5.187 MB / 0.8182 GB, free: 9.078 MB / 459.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001809/2.748, allocations: 48 kB / 0.8182 GB, free: 9.031 MB / 459.2 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.3757/3.124, allocations: 13.48 MB / 0.8314 GB, free: 92.67 MB / 459.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001449/3.124, allocations: 81.09 kB / 0.8314 GB, free: 92.67 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002947/3.124, allocations: 174 kB / 0.8316 GB, free: 92.67 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01894/3.143, allocations: 3.691 MB / 0.8352 GB, free: 92.62 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0118/3.155, allocations: 1.911 MB / 0.8371 GB, free: 92.62 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05528/3.21, allocations: 22.23 MB / 0.8588 GB, free: 88.75 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01146/3.222, allocations: 333.3 kB / 0.8591 GB, free: 88.75 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002751/3.225, allocations: 0.5103 MB / 0.8596 GB, free: 88.75 MB / 459.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 794 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1032): * Single equations (assignments): 1026 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,64.1%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.004251/3.229, allocations: 0.5642 MB / 0.8602 GB, free: 88.63 MB / 459.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002673/3.232, allocations: 0.6487 MB / 0.8608 GB, free: 88.63 MB / 459.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03146/3.263, allocations: 8.497 MB / 0.8691 GB, free: 88.34 MB / 459.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.894e-05/3.263, allocations: 40.25 kB / 0.8691 GB, free: 88.34 MB / 459.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.642e-05/3.263, allocations: 19.78 kB / 0.8691 GB, free: 88.34 MB / 459.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.083e-05/3.264, allocations: 19.48 kB / 0.8692 GB, free: 88.34 MB / 459.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06143/3.325, allocations: 18.12 MB / 0.8869 GB, free: 84.02 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.934e-05/3.325, allocations: 12.25 kB / 0.8869 GB, free: 84.02 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003937/3.329, allocations: 454.8 kB / 0.8873 GB, free: 84 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01751/3.347, allocations: 3.395 MB / 0.8906 GB, free: 83.31 MB / 459.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008113/3.347, allocations: 22.72 kB / 0.8906 GB, free: 83.31 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04547/3.393, allocations: 21.56 MB / 0.9117 GB, free: 72.8 MB / 459.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-05/3.393, allocations: 14.62 kB / 0.9117 GB, free: 72.8 MB / 459.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03648/3.429, allocations: 14.56 MB / 0.9259 GB, free: 65.93 MB / 459.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004895/3.434, allocations: 1.182 MB / 0.9271 GB, free: 64.82 MB / 459.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002273/3.437, allocations: 15.09 kB / 0.9271 GB, free: 64.81 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006586/3.443, allocations: 158.8 kB / 0.9273 GB, free: 64.72 MB / 459.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001592/3.445, allocations: 276.5 kB / 0.9275 GB, free: 64.55 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005338/3.446, allocations: 106.9 kB / 0.9276 GB, free: 64.46 MB / 459.2 MB Notification: Performance of sorting global known variables: time 0.01056/3.456, allocations: 3.947 MB / 0.9315 GB, free: 61.06 MB / 459.2 MB Notification: Performance of sort global known variables: time 9.51e-07/3.456, allocations: 0 / 0.9315 GB, free: 61.06 MB / 459.2 MB Notification: Performance of remove unused functions: time 0.01297/3.469, allocations: 1.753 MB / 0.9332 GB, free: 59.31 MB / 459.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 242 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001295/3.471, allocations: 178.1 kB / 0.9334 GB, free: 59.18 MB / 459.2 MB Notification: Performance of simCode: created initialization part: time 0.02125/3.492, allocations: 8.964 MB / 0.9421 GB, free: 51.48 MB / 459.2 MB Notification: Performance of simCode: created event and clocks part: time 1.596e-05/3.492, allocations: 4 kB / 0.9421 GB, free: 51.48 MB / 459.2 MB Notification: Performance of simCode: created simulation system equations: time 0.009521/3.501, allocations: 3.939 MB / 0.946 GB, free: 47.93 MB / 459.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007645/3.509, allocations: 0.8759 MB / 0.9468 GB, free: 47.23 MB / 459.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04264/3.552, allocations: 16.08 MB / 0.9625 GB, free: 33.03 MB / 459.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01323/3.565, allocations: 5.951 MB / 0.9683 GB, free: 28.73 MB / 459.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002422/3.568, allocations: 459.9 kB / 0.9688 GB, free: 28.29 MB / 459.2 MB Notification: Performance of SimCode: time 1.443e-06/3.568, allocations: 0 / 0.9688 GB, free: 28.29 MB / 459.2 MB Notification: Performance of Templates: time 1.04/4.608, allocations: 199 MB / 1.163 GB, free: 117.3 MB / 491.2 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches