Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 179.3 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.268/1.268, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0009432/0.0009434, allocations: 88.27 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002585, allocations: 15.92 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2292, allocations: 50.41 MB / 401.5 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.3458, allocations: 99.73 MB / 0.4895 GB, free: 12.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.3461, allocations: 91.95 kB / 0.4896 GB, free: 12.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5541/0.9002, allocations: 168 MB / 0.6536 GB, free: 4.875 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.9003, allocations: 0 / 0.6536 GB, free: 4.875 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007455/0.901, allocations: 167.9 kB / 0.6538 GB, free: 4.711 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.4022/1.303, allocations: 9.243 MB / 0.6628 GB, free: 46.46 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/1.303, allocations: 9.875 kB / 0.6628 GB, free: 46.46 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06131/1.365, allocations: 16.54 MB / 0.679 GB, free: 45.9 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03069/1.395, allocations: 12.88 MB / 0.6916 GB, free: 45.17 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005095/1.396, allocations: 0.5507 MB / 0.6921 GB, free: 45.16 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003264/1.399, allocations: 0.7572 MB / 0.6928 GB, free: 45.14 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03598/1.435, allocations: 16.96 MB / 0.7094 GB, free: 41.53 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005602/1.436, allocations: 115.5 kB / 0.7095 GB, free: 41.52 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002313/1.438, allocations: 353.6 kB / 0.7099 GB, free: 41.51 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00222/1.44, allocations: 1.54 MB / 0.7114 GB, free: 41.5 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02589/1.466, allocations: 13.35 MB / 0.7244 GB, free: 41.25 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08708/1.553, allocations: 75.21 MB / 0.7978 GB, free: 11.75 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01997/1.573, allocations: 7.858 MB / 0.8055 GB, free: 5.316 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0208/1.594, allocations: 11.97 MB / 0.8172 GB, free: 11.46 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.784e-05/1.594, allocations: 68.5 kB / 0.8173 GB, free: 11.39 MB / 474.8 MB Notification: Performance of pre-optimization done (n=294): time 5.24e-06/1.594, allocations: 0 / 0.8173 GB, free: 11.39 MB / 474.8 MB Notification: Performance of matching and sorting (n=361): time 0.3928/1.987, allocations: 48.61 MB / 0.8647 GB, free: 88.25 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/1.987, allocations: 404.9 kB / 0.8651 GB, free: 87.8 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/1.999, allocations: 6.307 MB / 0.8713 GB, free: 87.32 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009133/2, allocations: 81.64 kB / 0.8714 GB, free: 87.29 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00369/2.004, allocations: 5.411 MB / 0.8766 GB, free: 84.78 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001787/2.006, allocations: 1.326 MB / 0.8779 GB, free: 84 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007436/2.006, allocations: 175.5 kB / 0.8781 GB, free: 84 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0004024/2.007, allocations: 0.666 MB / 0.8788 GB, free: 83.67 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005188/2.012, allocations: 3.964 MB / 0.8826 GB, free: 83.65 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008248/2.02, allocations: 8.755 MB / 0.8912 GB, free: 77.54 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007509/2.028, allocations: 5.722 MB / 0.8968 GB, free: 77.48 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/2.028, allocations: 51.59 kB / 0.8968 GB, free: 77.48 MB / 474.8 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.03531/2.063, allocations: 17.41 MB / 0.9138 GB, free: 74.13 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/2.063, allocations: 81.23 kB / 0.9139 GB, free: 74.13 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000221/2.064, allocations: 165 kB / 0.9141 GB, free: 74.13 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01782/2.081, allocations: 5.755 MB / 0.9197 GB, free: 73.09 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007023/2.089, allocations: 1.846 MB / 0.9215 GB, free: 72.88 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03722/2.126, allocations: 30.18 MB / 0.9509 GB, free: 47.29 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008641/2.135, allocations: 0.5454 MB / 0.9515 GB, free: 46.84 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001602/2.136, allocations: 490.4 kB / 0.9519 GB, free: 46.37 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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],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 (982): * Single equations (assignments): 976 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007353/2.144, allocations: 3.596 MB / 0.9555 GB, free: 43.24 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/2.145, allocations: 0.6711 MB / 0.9561 GB, free: 42.56 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02324/2.168, allocations: 11.58 MB / 0.9674 GB, free: 33.66 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.367e-05/2.168, allocations: 36 kB / 0.9675 GB, free: 33.63 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.495e-05/2.168, allocations: 23.95 kB / 0.9675 GB, free: 33.61 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.561e-05/2.169, allocations: 14.81 kB / 0.9675 GB, free: 33.61 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04463/2.213, allocations: 25.16 MB / 0.9921 GB, free: 11.99 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.679e-05/2.213, allocations: 7.984 kB / 0.9921 GB, free: 11.98 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002237/2.216, allocations: 463.3 kB / 0.9925 GB, free: 11.53 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01567/2.231, allocations: 5.402 MB / 0.9978 GB, free: 6.117 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007557/2.232, allocations: 60 kB / 0.9979 GB, free: 6.059 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2987/2.531, allocations: 29.04 MB / 1.026 GB, free: 78.23 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/2.531, allocations: 12.14 kB / 1.026 GB, free: 78.23 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02937/2.56, allocations: 17.76 MB / 1.044 GB, free: 76.18 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004458/2.565, allocations: 1.307 MB / 1.045 GB, free: 76.09 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001647/2.566, allocations: 65.28 kB / 1.045 GB, free: 76.09 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003813/2.57, allocations: 270.2 kB / 1.045 GB, free: 76.09 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000804/2.571, allocations: 256.4 kB / 1.045 GB, free: 76.08 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000273/2.571, allocations: 95.73 kB / 1.046 GB, free: 76.08 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007922/2.579, allocations: 4.567 MB / 1.05 GB, free: 75.59 MB / 474.8 MB Notification: Performance of sort global known variables: time 3.81e-07/2.579, allocations: 0 / 1.05 GB, free: 75.59 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01019/2.589, allocations: 2.05 MB / 1.052 GB, free: 75.38 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000905/2.59, allocations: 232.5 kB / 1.052 GB, free: 75.25 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01592/2.606, allocations: 10.57 MB / 1.063 GB, free: 71.61 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/2.606, allocations: 0 / 1.063 GB, free: 71.61 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007607/2.614, allocations: 4.76 MB / 1.067 GB, free: 69.61 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005665/2.62, allocations: 1.004 MB / 1.068 GB, free: 69.24 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03595/2.656, allocations: 22.48 MB / 1.09 GB, free: 58.52 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009067/2.665, allocations: 5.901 MB / 1.096 GB, free: 56.06 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.008048/2.673, allocations: 2.741 MB / 1.099 GB, free: 54.47 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/2.674, allocations: 406.1 kB / 1.099 GB, free: 54.09 MB / 474.8 MB Notification: Performance of SimCode: time 1.162e-06/2.674, allocations: 0 / 1.099 GB, free: 54.09 MB / 474.8 MB Notification: Performance of Templates: time 0.3865/3.061, allocations: 88.1 MB / 1.185 GB, free: 87.56 MB / 490.8 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches