Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001821/0.001821, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.67/1.67, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009198/0.00092, allocations: 86.72 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.902e-05/1.905e-05, allocations: 7.984 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 47.58 MB / 363.1 MB, free: 7.051 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3671/0.4788, allocations: 97.3 MB / 460.4 MB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.4791, allocations: 91.62 kB / 460.5 MB, free: 14.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6928/1.172, allocations: 163.3 MB / 0.6091 GB, free: 75.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.172, allocations: 0 / 0.6091 GB, free: 75.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008766/1.173, allocations: 167.7 kB / 0.6093 GB, free: 75.28 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.03104/1.204, allocations: 8.186 MB / 0.6173 GB, free: 67.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.3e-05/1.204, allocations: 11.97 kB / 0.6173 GB, free: 67.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06295/1.267, allocations: 16.56 MB / 0.6335 GB, free: 50.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03794/1.305, allocations: 13.77 MB / 0.6469 GB, free: 36.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004944/1.306, allocations: 244 kB / 0.6471 GB, free: 36.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004012/1.31, allocations: 463.6 kB / 0.6476 GB, free: 36.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02021/1.33, allocations: 9.873 MB / 0.6572 GB, free: 26.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03738/1.367, allocations: 14.79 MB / 0.6717 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001195/1.369, allocations: 111 kB / 0.6718 GB, free: 9.938 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004692/1.373, allocations: 44 kB / 0.6718 GB, free: 9.895 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002411/1.376, allocations: 1.531 MB / 0.6733 GB, free: 8.371 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4323/1.808, allocations: 72.63 MB / 0.7442 GB, free: 41.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007665/1.816, allocations: 5.391 MB / 0.7495 GB, free: 41.19 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004527/1.82, allocations: 3.821 MB / 0.7532 GB, free: 41.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/1.821, allocations: 1.378 MB / 0.7546 GB, free: 39.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.912e-05/1.822, allocations: 64.22 kB / 0.7546 GB, free: 39.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=299): time 7.093e-06/1.822, allocations: 0 / 0.7546 GB, free: 39.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=371): time 0.09788/1.919, allocations: 35.76 MB / 0.7896 GB, free: 31.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/1.92, allocations: 396 kB / 0.7899 GB, free: 31 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01352/1.933, allocations: 5.664 MB / 0.7955 GB, free: 29.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009318/1.934, allocations: 33.08 kB / 0.7955 GB, free: 29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004729/1.939, allocations: 5.481 MB / 0.8008 GB, free: 24.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00282/1.942, allocations: 1.309 MB / 0.8021 GB, free: 23.94 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001052/1.943, allocations: 0 / 0.8021 GB, free: 23.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005108/1.943, allocations: 0.6866 MB / 0.8028 GB, free: 23.46 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004162/1.948, allocations: 3.346 MB / 0.8061 GB, free: 22.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006307/1.954, allocations: 8.3 MB / 0.8142 GB, free: 13.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007099/1.961, allocations: 5.194 MB / 0.8192 GB, free: 9.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001502/1.961, allocations: 48 kB / 0.8193 GB, free: 9.293 MB / 426.7 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.03326/1.994, allocations: 13.78 MB / 0.8328 GB, free: 13.81 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00031/1.995, allocations: 80 kB / 0.8328 GB, free: 13.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004485/1.995, allocations: 179.4 kB / 0.833 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01181/2.007, allocations: 3.69 MB / 0.8366 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007566/2.015, allocations: 1.912 MB / 0.8385 GB, free: 9.145 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03758/2.052, allocations: 22.53 MB / 0.8605 GB, free: 6.387 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009675/2.062, allocations: 333.1 kB / 0.8608 GB, free: 6.125 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002506/2.065, allocations: 0.5101 MB / 0.8613 GB, free: 5.629 MB / 458.7 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.001619/2.066, allocations: 0.5648 MB / 0.8618 GB, free: 5.062 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002493/2.069, allocations: 0.6487 MB / 0.8625 GB, free: 4.406 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3469/2.416, allocations: 8.593 MB / 0.8709 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001014/2.416, allocations: 38.67 kB / 0.8709 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.875e-05/2.416, allocations: 20.66 kB / 0.8709 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001056/2.416, allocations: 17.22 kB / 0.8709 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04802/2.464, allocations: 18.12 MB / 0.8886 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.174e-05/2.464, allocations: 9.875 kB / 0.8886 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002314/2.466, allocations: 456.2 kB / 0.8891 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01004/2.476, allocations: 3.405 MB / 0.8924 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009048/2.477, allocations: 16.94 kB / 0.8924 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03027/2.508, allocations: 21.57 MB / 0.9135 GB, free: 97.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.769e-05/2.508, allocations: 12.16 kB / 0.9135 GB, free: 97.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02689/2.535, allocations: 14.57 MB / 0.9277 GB, free: 90.75 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004459/2.539, allocations: 1.186 MB / 0.9289 GB, free: 90.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002192/2.541, allocations: 14.73 kB / 0.9289 GB, free: 90.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004539/2.546, allocations: 160.7 kB / 0.929 GB, free: 90.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001169/2.547, allocations: 261.7 kB / 0.9293 GB, free: 90.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003618/2.548, allocations: 102.7 kB / 0.9294 GB, free: 90.37 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009263/2.557, allocations: 3.949 MB / 0.9332 GB, free: 88.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.002e-06/2.557, allocations: 0 / 0.9332 GB, free: 88.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01381/2.571, allocations: 1.757 MB / 0.935 GB, free: 88.98 MB / 458.7 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.001497/2.572, allocations: 175.9 kB / 0.9351 GB, free: 88.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01752/2.59, allocations: 8.965 MB / 0.9439 GB, free: 85.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.569e-05/2.59, allocations: 3.531 kB / 0.9439 GB, free: 85.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006955/2.597, allocations: 3.941 MB / 0.9477 GB, free: 83.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00743/2.604, allocations: 0.8741 MB / 0.9486 GB, free: 83.59 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03574/2.64, allocations: 15.19 MB / 0.9634 GB, free: 70.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01435/2.654, allocations: 5.938 MB / 0.9692 GB, free: 65.82 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01342/2.668, allocations: 2.854 MB / 0.972 GB, free: 64.12 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/2.67, allocations: 398.5 kB / 0.9724 GB, free: 63.75 MB / 458.7 MB Notification: Performance of SimCode: time 1.884e-06/2.671, allocations: 0 / 0.9724 GB, free: 63.75 MB / 458.7 MB Notification: Performance of Templates: time 0.4611/3.132, allocations: 75.52 MB / 1.046 GB, free: 96.14 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches