Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001423/0.001423, allocations: 179.4 kB / 8.364 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 2.011/2.011, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001098/0.001098, allocations: 97.09 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.422e-05/2.439e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3484, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1671/0.5156, allocations: 95.55 MB / 457.9 MB, free: 6.723 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003394/0.516, allocations: 91.94 kB / 458 MB, free: 6.633 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9007/1.417, allocations: 158.3 MB / 0.6018 GB, free: 39.95 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.505e-06/1.417, allocations: 0 / 0.6018 GB, free: 39.95 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0007669/1.418, allocations: 156 kB / 0.602 GB, free: 39.8 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03192/1.45, allocations: 7.891 MB / 0.6097 GB, free: 31.83 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/1.45, allocations: 11.97 kB / 0.6097 GB, free: 31.82 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1143/1.564, allocations: 16.49 MB / 0.6258 GB, free: 15.29 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04641/1.61, allocations: 13.47 MB / 0.639 GB, free: 1.723 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004603/1.611, allocations: 235.9 kB / 0.6392 GB, free: 1.492 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003987/1.615, allocations: 443.7 kB / 0.6396 GB, free: 1.059 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02802/1.643, allocations: 9.478 MB / 0.6489 GB, free: 7.574 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.64/2.283, allocations: 14.26 MB / 0.6628 GB, free: 58.97 MB / 411.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005711/2.284, allocations: 118.2 kB / 0.6629 GB, free: 58.97 MB / 411.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002972/2.287, allocations: 40.05 kB / 0.6629 GB, free: 58.97 MB / 411.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003469/2.29, allocations: 1.481 MB / 0.6644 GB, free: 58.96 MB / 411.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1167/2.407, allocations: 71.33 MB / 0.734 GB, free: 18.28 MB / 411.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009829/2.417, allocations: 5.322 MB / 0.7392 GB, free: 15.63 MB / 411.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007049/2.424, allocations: 3.86 MB / 0.743 GB, free: 13.94 MB / 411.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001395/2.425, allocations: 0.8347 MB / 0.7438 GB, free: 13.24 MB / 411.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.542e-05/2.426, allocations: 66.89 kB / 0.7439 GB, free: 13.18 MB / 411.2 MB Notification: Performance of pre-optimization done (n=287): time 7.414e-06/2.426, allocations: 3.094 kB / 0.7439 GB, free: 13.18 MB / 411.2 MB Notification: Performance of matching and sorting (n=347): time 0.1655/2.591, allocations: 40.35 MB / 0.7833 GB, free: 13.66 MB / 427.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002754/2.591, allocations: 401.3 kB / 0.7837 GB, free: 13.18 MB / 427.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0157/2.607, allocations: 5.479 MB / 0.789 GB, free: 8.461 MB / 427.2 MB Notification: Performance of collectPreVariables (initialization): time 0.0009489/2.608, allocations: 29.7 kB / 0.7891 GB, free: 8.426 MB / 427.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.005993/2.614, allocations: 4.962 MB / 0.7939 GB, free: 3.852 MB / 427.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.002435/2.617, allocations: 1.233 MB / 0.7951 GB, free: 2.734 MB / 427.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008792/2.617, allocations: 2.25 kB / 0.7951 GB, free: 2.734 MB / 427.2 MB Notification: Performance of setup shared object (initialization): time 0.0006765/2.618, allocations: 0.6668 MB / 0.7958 GB, free: 2.156 MB / 427.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.016/2.634, allocations: 4.076 MB / 0.7997 GB, free: 0 / 427.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0143/2.649, allocations: 8.406 MB / 0.808 GB, free: 5.812 MB / 443.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/2.662, allocations: 5.409 MB / 0.8132 GB, free: 1.156 MB / 443.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001419/2.662, allocations: 48 kB / 0.8133 GB, free: 1.109 MB / 443.2 MB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.4217/3.084, allocations: 15.74 MB / 0.8287 GB, free: 87.14 MB / 443.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002084/3.084, allocations: 79.78 kB / 0.8287 GB, free: 87.14 MB / 443.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000394/3.084, allocations: 165 kB / 0.8289 GB, free: 87.14 MB / 443.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04149/3.126, allocations: 5.365 MB / 0.8341 GB, free: 87.09 MB / 443.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01626/3.142, allocations: 1.859 MB / 0.8359 GB, free: 87 MB / 443.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1118/3.254, allocations: 25.97 MB / 0.8613 GB, free: 83 MB / 443.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03446/3.288, allocations: 376.1 kB / 0.8617 GB, free: 82.99 MB / 443.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003295/3.292, allocations: 493 kB / 0.8621 GB, free: 82.93 MB / 443.2 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (979): * Single equations (assignments): 973 * 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 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0051/3.297, allocations: 0.5412 MB / 0.8627 GB, free: 82.6 MB / 443.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003256/3.3, allocations: 0.6222 MB / 0.8633 GB, free: 82.6 MB / 443.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04725/3.348, allocations: 10.59 MB / 0.8736 GB, free: 79.23 MB / 443.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.372e-05/3.348, allocations: 40.36 kB / 0.8736 GB, free: 79.23 MB / 443.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.301e-05/3.348, allocations: 21.64 kB / 0.8737 GB, free: 79.23 MB / 443.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.968e-05/3.348, allocations: 13.88 kB / 0.8737 GB, free: 79.23 MB / 443.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06943/3.417, allocations: 22.82 MB / 0.896 GB, free: 69.77 MB / 443.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.363e-05/3.417, allocations: 15.56 kB / 0.896 GB, free: 69.77 MB / 443.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003915/3.421, allocations: 435.9 kB / 0.8964 GB, free: 69.73 MB / 443.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02753/3.449, allocations: 5.018 MB / 0.9013 GB, free: 67.26 MB / 443.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009405/3.45, allocations: 15.38 kB / 0.9013 GB, free: 67.25 MB / 443.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05329/3.503, allocations: 24.69 MB / 0.9254 GB, free: 46.09 MB / 443.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-05/3.503, allocations: 14.56 kB / 0.9254 GB, free: 46.08 MB / 443.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04662/3.55, allocations: 16.52 MB / 0.9416 GB, free: 30.6 MB / 443.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005243/3.555, allocations: 1.229 MB / 0.9428 GB, free: 29.35 MB / 443.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002387/3.558, allocations: 8 kB / 0.9428 GB, free: 29.34 MB / 443.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006615/3.564, allocations: 203.6 kB / 0.943 GB, free: 29.14 MB / 443.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00154/3.566, allocations: 245.3 kB / 0.9432 GB, free: 28.91 MB / 443.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006124/3.567, allocations: 96.14 kB / 0.9433 GB, free: 28.82 MB / 443.2 MB Notification: Performance of sorting global known variables: time 0.01038/3.577, allocations: 3.829 MB / 0.947 GB, free: 25.01 MB / 443.2 MB Notification: Performance of sort global known variables: time 9.01e-07/3.577, allocations: 0 / 0.947 GB, free: 25.01 MB / 443.2 MB Notification: Performance of remove unused functions: time 0.01398/3.591, allocations: 1.737 MB / 0.9487 GB, free: 23.29 MB / 443.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (222): * Single equations (assignments): 216 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001457/3.593, allocations: 162.2 kB / 0.9489 GB, free: 23.13 MB / 443.2 MB Notification: Performance of simCode: created initialization part: time 0.02512/3.618, allocations: 9.633 MB / 0.9583 GB, free: 13.51 MB / 443.2 MB Notification: Performance of simCode: created event and clocks part: time 1.762e-05/3.618, allocations: 4 kB / 0.9583 GB, free: 13.51 MB / 443.2 MB Notification: Performance of simCode: created simulation system equations: time 0.01295/3.631, allocations: 4.329 MB / 0.9625 GB, free: 9.152 MB / 443.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008251/3.639, allocations: 0.8421 MB / 0.9634 GB, free: 8.352 MB / 443.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05471/3.694, allocations: 16.49 MB / 0.9795 GB, free: 7.727 MB / 459.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3435/4.037, allocations: 5.727 MB / 0.9851 GB, free: 94.52 MB / 459.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002435/4.04, allocations: 443.2 kB / 0.9855 GB, free: 94.52 MB / 459.2 MB Notification: Performance of SimCode: time 1.623e-06/4.04, allocations: 0 / 0.9855 GB, free: 94.52 MB / 459.2 MB Notification: Performance of Templates: time 0.7188/4.759, allocations: 193 MB / 1.174 GB, free: 111.1 MB / 475.2 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches