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.002193/0.002198, allocations: 180.6 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 78.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.886e-05/2.916e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09617, allocations: 47.58 MB / 369.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4298/0.526, allocations: 97.73 MB / 466.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.5264, allocations: 86.52 kB / 466.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9488/1.475, allocations: 166.6 MB / 0.6187 GB, free: 63.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.275e-06/1.475, allocations: 0 / 0.6187 GB, free: 63.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007814/1.476, allocations: 164 kB / 0.6189 GB, free: 63.48 MB / 410.7 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.03306/1.509, allocations: 8.193 MB / 0.6269 GB, free: 55.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/1.509, allocations: 12.03 kB / 0.6269 GB, free: 55.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1203/1.63, allocations: 16.57 MB / 0.643 GB, free: 38.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04597/1.676, allocations: 13.77 MB / 0.6565 GB, free: 24.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007374/1.676, allocations: 0.5497 MB / 0.657 GB, free: 24.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004084/1.68, allocations: 0.7573 MB / 0.6578 GB, free: 23.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05303/1.734, allocations: 16.83 MB / 0.6742 GB, free: 5.262 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000769/1.734, allocations: 107 kB / 0.6743 GB, free: 5.156 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003463/1.738, allocations: 351.9 kB / 0.6747 GB, free: 4.812 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003514/1.741, allocations: 1.535 MB / 0.6761 GB, free: 3.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04716/1.789, allocations: 13.13 MB / 0.689 GB, free: 6.121 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7343/2.523, allocations: 74.8 MB / 0.762 GB, free: 28.59 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03106/2.554, allocations: 7.03 MB / 0.7689 GB, free: 27.87 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007877/2.562, allocations: 3.92 MB / 0.7727 GB, free: 26.92 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0309/2.593, allocations: 11.92 MB / 0.7844 GB, free: 20.95 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.088e-05/2.593, allocations: 66.94 kB / 0.7844 GB, free: 20.89 MB / 426.8 MB Notification: Performance of pre-optimization done (n=293): time 7.354e-06/2.593, allocations: 3.469 kB / 0.7844 GB, free: 20.89 MB / 426.8 MB Notification: Performance of matching and sorting (n=366): time 0.2125/2.806, allocations: 35.32 MB / 0.8189 GB, free: 8.301 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/2.806, allocations: 401.5 kB / 0.8193 GB, free: 7.824 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01923/2.825, allocations: 6.371 MB / 0.8255 GB, free: 2.324 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001051/2.826, allocations: 81.7 kB / 0.8256 GB, free: 2.238 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00599/2.832, allocations: 5.08 MB / 0.8306 GB, free: 13.61 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002686/2.835, allocations: 1.344 MB / 0.8319 GB, free: 12.41 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001695/2.837, allocations: 176 kB / 0.832 GB, free: 12.24 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0008939/2.838, allocations: 0.6805 MB / 0.8327 GB, free: 11.66 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01047/2.848, allocations: 3.463 MB / 0.8361 GB, free: 8.527 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01561/2.864, allocations: 8.322 MB / 0.8442 GB, free: 14.43 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01407/2.878, allocations: 5.306 MB / 0.8494 GB, free: 9.992 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002088/2.878, allocations: 48 kB / 0.8494 GB, free: 9.945 MB / 458.8 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.3876/3.266, allocations: 14.46 MB / 0.8636 GB, free: 93.65 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001796/3.266, allocations: 81.69 kB / 0.8636 GB, free: 93.65 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004088/3.267, allocations: 169.2 kB / 0.8638 GB, free: 93.65 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02157/3.288, allocations: 3.723 MB / 0.8674 GB, free: 93.61 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0127/3.301, allocations: 1.862 MB / 0.8693 GB, free: 93.61 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05899/3.36, allocations: 23.8 MB / 0.8925 GB, free: 89.59 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01192/3.372, allocations: 0.4981 MB / 0.893 GB, free: 89.58 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002282/3.374, allocations: 0.4956 MB / 0.8935 GB, free: 89.58 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * 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 (1003): * Single equations (assignments): 997 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.003666/3.378, allocations: 0.7716 MB / 0.8942 GB, free: 89.47 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00196/3.38, allocations: 0.6817 MB / 0.8949 GB, free: 89.47 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03152/3.411, allocations: 8.843 MB / 0.9035 GB, free: 88.62 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.582e-05/3.412, allocations: 40.44 kB / 0.9036 GB, free: 88.62 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.639e-05/3.412, allocations: 19.44 kB / 0.9036 GB, free: 88.62 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000123/3.412, allocations: 16.25 kB / 0.9036 GB, free: 88.62 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06508/3.477, allocations: 19.43 MB / 0.9226 GB, free: 81.62 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.369e-05/3.477, allocations: 13.8 kB / 0.9226 GB, free: 81.62 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004163/3.481, allocations: 444.3 kB / 0.923 GB, free: 81.6 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01871/3.5, allocations: 3.48 MB / 0.9264 GB, free: 80.9 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009462/3.501, allocations: 74.23 kB / 0.9265 GB, free: 80.86 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05348/3.554, allocations: 23.07 MB / 0.949 GB, free: 69.73 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.326e-05/3.555, allocations: 12.94 kB / 0.949 GB, free: 69.73 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04003/3.595, allocations: 14.91 MB / 0.9636 GB, free: 58.36 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00519/3.6, allocations: 1.228 MB / 0.9648 GB, free: 57.22 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002616/3.603, allocations: 70.84 kB / 0.9648 GB, free: 57.15 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006935/3.609, allocations: 221 kB / 0.9651 GB, free: 57.01 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00174/3.611, allocations: 260.3 kB / 0.9653 GB, free: 56.85 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008814/3.612, allocations: 104.6 kB / 0.9654 GB, free: 56.75 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01287/3.625, allocations: 4.588 MB / 0.9699 GB, free: 52.75 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.222e-06/3.625, allocations: 7.406 kB / 0.9699 GB, free: 52.75 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.013/3.638, allocations: 2.007 MB / 0.9719 GB, free: 50.75 MB / 458.8 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 (243): * Single equations (assignments): 237 * 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.001452/3.64, allocations: 230.4 kB / 0.9721 GB, free: 50.57 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02304/3.663, allocations: 9.244 MB / 0.9811 GB, free: 42.46 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.929e-05/3.663, allocations: 4 kB / 0.9811 GB, free: 42.45 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01146/3.674, allocations: 4.051 MB / 0.9851 GB, free: 38.77 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009682/3.684, allocations: 1.027 MB / 0.9861 GB, free: 37.93 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05137/3.735, allocations: 16.26 MB / 1.002 GB, free: 23.54 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01597/3.751, allocations: 5.948 MB / 1.008 GB, free: 18.38 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002835/3.754, allocations: 475.4 kB / 1.008 GB, free: 17.91 MB / 458.8 MB Notification: Performance of SimCode: time 2.194e-06/3.754, allocations: 0 / 1.008 GB, free: 17.91 MB / 458.8 MB Notification: Performance of Templates: time 1.193/4.947, allocations: 202.3 MB / 1.206 GB, free: 110.8 MB / 490.8 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