Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000984/0.0009841, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 223.2 MB / 240.3 MB, free: 11.86 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000876/0.0008759, allocations: 101.6 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002322/0.0002323, allocations: 12 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2235, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.3438, allocations: 98.14 MB / 499.6 MB, free: 14.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.3442, allocations: 89.58 kB / 499.7 MB, free: 14.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5557/0.8998, allocations: 163.2 MB / 0.6473 GB, free: 11.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.8999, allocations: 3.984 kB / 0.6473 GB, free: 11.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004429/0.9003, allocations: 156 kB / 0.6475 GB, free: 11.16 MB / 426.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.02417/0.9245, allocations: 8.903 MB / 0.6562 GB, free: 2.172 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.9246, allocations: 12.03 kB / 0.6562 GB, free: 2.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5417/1.466, allocations: 16.45 MB / 0.6723 GB, free: 50.84 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03288/1.499, allocations: 12.61 MB / 0.6846 GB, free: 50.36 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000841/1.5, allocations: 0.5223 MB / 0.6851 GB, free: 50.34 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003983/1.504, allocations: 0.73 MB / 0.6858 GB, free: 50.33 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03316/1.537, allocations: 16.4 MB / 0.7018 GB, free: 46.73 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004026/1.538, allocations: 115.7 kB / 0.7019 GB, free: 46.71 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001557/1.539, allocations: 330.8 kB / 0.7022 GB, free: 46.71 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001967/1.541, allocations: 1.483 MB / 0.7037 GB, free: 46.7 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02784/1.569, allocations: 12.93 MB / 0.7163 GB, free: 46.64 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07667/1.646, allocations: 73.26 MB / 0.7879 GB, free: 5.969 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01941/1.665, allocations: 7.504 MB / 0.7952 GB, free: 15.86 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02004/1.685, allocations: 11.5 MB / 0.8064 GB, free: 6.113 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/1.685, allocations: 64.5 kB / 0.8065 GB, free: 6.043 MB / 458.8 MB Notification: Performance of pre-optimization done (n=280): time 5.751e-06/1.685, allocations: 3.531 kB / 0.8065 GB, free: 6.043 MB / 458.8 MB Notification: Performance of matching and sorting (n=339): time 0.3645/2.05, allocations: 45.13 MB / 0.8506 GB, free: 88.84 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/2.05, allocations: 405.2 kB / 0.8509 GB, free: 88.4 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009284/2.059, allocations: 6.18 MB / 0.857 GB, free: 87.92 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007983/2.06, allocations: 78.77 kB / 0.8571 GB, free: 87.89 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003198/2.063, allocations: 5.222 MB / 0.8622 GB, free: 85.68 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/2.065, allocations: 1.249 MB / 0.8634 GB, free: 84.95 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004805/2.065, allocations: 165.9 kB / 0.8635 GB, free: 84.95 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0004652/2.066, allocations: 0.6518 MB / 0.8642 GB, free: 84.62 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00549/2.071, allocations: 3.797 MB / 0.8679 GB, free: 84.6 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007107/2.078, allocations: 8.466 MB / 0.8761 GB, free: 78.62 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007512/2.086, allocations: 5.508 MB / 0.8815 GB, free: 78.56 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000131/2.086, allocations: 49.19 kB / 0.8816 GB, free: 78.56 MB / 474.8 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.03373/2.12, allocations: 16.72 MB / 0.8979 GB, free: 76.42 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/2.12, allocations: 76.28 kB / 0.898 GB, free: 76.42 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001596/2.12, allocations: 161.3 kB / 0.8981 GB, free: 76.42 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01588/2.136, allocations: 5.498 MB / 0.9035 GB, free: 75.5 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006277/2.142, allocations: 1.8 MB / 0.9053 GB, free: 75.28 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03691/2.179, allocations: 29 MB / 0.9336 GB, free: 61.35 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008978/2.188, allocations: 0.5228 MB / 0.9341 GB, free: 60.92 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00188/2.19, allocations: 474.9 kB / 0.9345 GB, free: 60.46 MB / 474.8 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 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * 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 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.009417/2.2, allocations: 3.462 MB / 0.9379 GB, free: 57.45 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002257/2.202, allocations: 0.6596 MB / 0.9386 GB, free: 56.78 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02238/2.224, allocations: 10.95 MB / 0.9493 GB, free: 48.41 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.288e-05/2.225, allocations: 32 kB / 0.9493 GB, free: 48.38 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.492e-05/2.225, allocations: 23.19 kB / 0.9493 GB, free: 48.36 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.373e-05/2.225, allocations: 14.81 kB / 0.9493 GB, free: 48.36 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04425/2.269, allocations: 23.97 MB / 0.9727 GB, free: 28.66 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.116e-05/2.269, allocations: 11.84 kB / 0.9727 GB, free: 28.65 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00207/2.271, allocations: 441.7 kB / 0.9732 GB, free: 28.3 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01445/2.286, allocations: 5.091 MB / 0.9781 GB, free: 24.94 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006251/2.286, allocations: 64 kB / 0.9782 GB, free: 24.88 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2755/2.562, allocations: 27.71 MB / 1.005 GB, free: 77.41 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/2.562, allocations: 11.33 kB / 1.005 GB, free: 77.41 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02566/2.587, allocations: 16.86 MB / 1.022 GB, free: 75.27 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002199/2.59, allocations: 0.669 MB / 1.022 GB, free: 75.18 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008739/2.591, allocations: 57.45 kB / 1.022 GB, free: 75.18 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002639/2.593, allocations: 258.8 kB / 1.023 GB, free: 75.17 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007689/2.594, allocations: 242.1 kB / 1.023 GB, free: 75.16 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003247/2.594, allocations: 89.28 kB / 1.023 GB, free: 75.16 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.00667/2.601, allocations: 4.471 MB / 1.027 GB, free: 74.95 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.41e-07/2.601, allocations: 0 / 1.027 GB, free: 74.95 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.009763/2.611, allocations: 1.958 MB / 1.029 GB, free: 74.95 MB / 474.8 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.0006017/2.611, allocations: 223.1 kB / 1.029 GB, free: 74.86 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01388/2.625, allocations: 10.13 MB / 1.039 GB, free: 74.34 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.625, allocations: 0 / 1.039 GB, free: 74.34 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006442/2.632, allocations: 4.498 MB / 1.044 GB, free: 73.88 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005/2.637, allocations: 0.99 MB / 1.045 GB, free: 73.84 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03399/2.671, allocations: 21.49 MB / 1.066 GB, free: 66.25 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008258/2.679, allocations: 5.694 MB / 1.071 GB, free: 65.36 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.007447/2.687, allocations: 2.628 MB / 1.074 GB, free: 65.29 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/2.688, allocations: 400.4 kB / 1.074 GB, free: 65.29 MB / 474.8 MB Notification: Performance of SimCode: time 1.122e-06/2.688, allocations: 3.172 kB / 1.074 GB, free: 65.29 MB / 474.8 MB Notification: Performance of Templates: time 0.1334/2.821, allocations: 83.82 MB / 1.156 GB, free: 9.484 MB / 474.8 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches