Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009401/0.0009401, allocations: 183.8 kB / 18.04 MB, free: 3.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 1.286/1.286, allocations: 205.4 MB / 224.2 MB, free: 9.012 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.0008044/0.0008044, allocations: 93.48 kB / 272.5 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003183, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.201, allocations: 47.59 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1043/0.3053, allocations: 96.46 MB / 473.5 MB, free: 44 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.3057, allocations: 92.03 kB / 473.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5069/0.8126, allocations: 157.6 MB / 0.6164 GB, free: 15.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.767e-06/0.8127, allocations: 0 / 0.6164 GB, free: 15.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006653/0.8134, allocations: 156 kB / 0.6166 GB, free: 15.09 MB / 394.7 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.0279/0.8413, allocations: 8.72 MB / 0.6251 GB, free: 6.281 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.8413, allocations: 8.031 kB / 0.6251 GB, free: 6.273 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04797/0.8893, allocations: 11.54 MB / 0.6364 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2111/1.1, allocations: 12.06 MB / 0.6482 GB, free: 54.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004721/1.101, allocations: 0.5212 MB / 0.6487 GB, free: 54.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002759/1.104, allocations: 0.7253 MB / 0.6494 GB, free: 54.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03052/1.134, allocations: 16.23 MB / 0.6652 GB, free: 51.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004111/1.135, allocations: 114.5 kB / 0.6653 GB, free: 51.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001388/1.136, allocations: 339 kB / 0.6656 GB, free: 51.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001876/1.138, allocations: 1.482 MB / 0.6671 GB, free: 51.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02641/1.164, allocations: 12.69 MB / 0.6795 GB, free: 51.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07301/1.238, allocations: 73.3 MB / 0.7511 GB, free: 2.984 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01667/1.254, allocations: 7.421 MB / 0.7583 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007821/1.262, allocations: 4.252 MB / 0.7625 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0182/1.28, allocations: 11.5 MB / 0.7737 GB, free: 7.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.671e-05/1.28, allocations: 63.12 kB / 0.7738 GB, free: 7.504 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 5.85e-06/1.28, allocations: 3.844 kB / 0.7738 GB, free: 7.504 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1616/1.442, allocations: 45.69 MB / 0.8184 GB, free: 5.023 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001989/1.442, allocations: 402.1 kB / 0.8188 GB, free: 4.543 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2743/1.717, allocations: 7.086 MB / 0.8257 GB, free: 96.83 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008707/1.717, allocations: 76.81 kB / 0.8258 GB, free: 96.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004774/1.722, allocations: 5.228 MB / 0.8309 GB, free: 95.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002096/1.724, allocations: 1.248 MB / 0.8321 GB, free: 95.09 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/1.725, allocations: 163.5 kB / 0.8322 GB, free: 95.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005812/1.726, allocations: 0.655 MB / 0.8329 GB, free: 94.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008116/1.734, allocations: 3.797 MB / 0.8366 GB, free: 94.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01074/1.745, allocations: 8.508 MB / 0.8449 GB, free: 88.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02137/1.766, allocations: 13.26 MB / 0.8579 GB, free: 82.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002792/1.767, allocations: 44.22 kB / 0.8579 GB, free: 82.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.05735/1.824, allocations: 16.73 MB / 0.8742 GB, free: 81.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003439/1.824, allocations: 72.69 kB / 0.8743 GB, free: 81.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003727/1.825, allocations: 163.5 kB / 0.8745 GB, free: 81.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02735/1.852, allocations: 5.492 MB / 0.8798 GB, free: 80.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007775/1.86, allocations: 1.792 MB / 0.8816 GB, free: 80 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03374/1.894, allocations: 28.09 MB / 0.909 GB, free: 66.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00743/1.901, allocations: 0.5191 MB / 0.9095 GB, free: 66.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001822/1.903, allocations: 485 kB / 0.91 GB, free: 66.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (947): * Single equations (assignments): 941 * 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,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.008216/1.911, allocations: 3.479 MB / 0.9134 GB, free: 65.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/1.913, allocations: 0.6586 MB / 0.914 GB, free: 64.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02182/1.935, allocations: 10.97 MB / 0.9247 GB, free: 59.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-05/1.935, allocations: 32 kB / 0.9248 GB, free: 59.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.055e-05/1.935, allocations: 20 kB / 0.9248 GB, free: 59.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.581e-05/1.935, allocations: 12.61 kB / 0.9248 GB, free: 59.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04619/1.981, allocations: 24.01 MB / 0.9482 GB, free: 40 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.604e-05/1.981, allocations: 10.88 kB / 0.9483 GB, free: 39.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001994/1.983, allocations: 429.7 kB / 0.9487 GB, free: 39.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01386/1.997, allocations: 5.095 MB / 0.9536 GB, free: 36.27 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007577/1.998, allocations: 67.83 kB / 0.9537 GB, free: 36.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03241/2.03, allocations: 26.84 MB / 0.9799 GB, free: 12.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/2.031, allocations: 11.94 kB / 0.9799 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2372/2.268, allocations: 15.73 MB / 0.9953 GB, free: 85.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003787/2.272, allocations: 1.273 MB / 0.9965 GB, free: 85.34 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001519/2.273, allocations: 62.61 kB / 0.9966 GB, free: 85.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003556/2.277, allocations: 256.5 kB / 0.9968 GB, free: 85.33 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000824/2.278, allocations: 243.3 kB / 0.9971 GB, free: 85.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002613/2.278, allocations: 90.38 kB / 0.9971 GB, free: 85.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007593/2.285, allocations: 4.534 MB / 1.002 GB, free: 85.11 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.71e-07/2.285, allocations: 0 / 1.002 GB, free: 85.11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009852/2.295, allocations: 1.968 MB / 1.003 GB, free: 85.11 MB / 458.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * 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.001017/2.296, allocations: 222.2 kB / 1.004 GB, free: 85.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01907/2.315, allocations: 10.14 MB / 1.014 GB, free: 84.49 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/2.315, allocations: 0 / 1.014 GB, free: 84.49 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008824/2.324, allocations: 4.504 MB / 1.018 GB, free: 84.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01596/2.34, allocations: 1.024 MB / 1.019 GB, free: 84 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04249/2.383, allocations: 21.66 MB / 1.04 GB, free: 76.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01247/2.395, allocations: 5.556 MB / 1.046 GB, free: 75.48 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008719/2.404, allocations: 2.638 MB / 1.048 GB, free: 75.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001992/2.406, allocations: 396 kB / 1.049 GB, free: 75.41 MB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/2.406, allocations: 0 / 1.049 GB, free: 75.41 MB / 458.7 MB Notification: Performance of Templates: time 0.1398/2.546, allocations: 84.45 MB / 1.131 GB, free: 18.81 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches