Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009978/0.0009977, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 226.5 MB / 245.4 MB, free: 8.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000804/0.000804, allocations: 99.38 kB / 297.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002247, allocations: 4 kB / 358.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1991, allocations: 51.29 MB / 409.4 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.3071, allocations: 98.83 MB / 0.4963 GB, free: 8.699 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.3074, allocations: 92.45 kB / 0.4964 GB, free: 8.609 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5182/0.8256, allocations: 164.6 MB / 0.6571 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.8256, allocations: 4 kB / 0.6571 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006619/0.8263, allocations: 163.9 kB / 0.6572 GB, free: 0.5234 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.03324/0.8595, allocations: 8.692 MB / 0.6657 GB, free: 7.734 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.8596, allocations: 8.031 kB / 0.6657 GB, free: 7.727 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5166/1.376, allocations: 11.54 MB / 0.677 GB, free: 60.52 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02339/1.4, allocations: 10.55 MB / 0.6873 GB, free: 60.03 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004723/1.4, allocations: 0.5261 MB / 0.6878 GB, free: 60.02 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002789/1.403, allocations: 0.7243 MB / 0.6885 GB, free: 60 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03665/1.44, allocations: 16.23 MB / 0.7044 GB, free: 56.41 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006696/1.44, allocations: 113.6 kB / 0.7045 GB, free: 56.39 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00311/1.443, allocations: 336.3 kB / 0.7048 GB, free: 56.39 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002308/1.446, allocations: 1.485 MB / 0.7062 GB, free: 56.37 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02556/1.471, allocations: 12.69 MB / 0.7186 GB, free: 56.31 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07933/1.551, allocations: 73.16 MB / 0.7901 GB, free: 6.379 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01718/1.568, allocations: 7.412 MB / 0.7973 GB, free: 3.652 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004512/1.573, allocations: 4.002 MB / 0.8012 GB, free: 72 kB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02096/1.594, allocations: 11.42 MB / 0.8124 GB, free: 6.367 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.104e-05/1.594, allocations: 67.73 kB / 0.8124 GB, free: 6.297 MB / 458.8 MB Notification: Performance of pre-optimization done (n=280): time 7.384e-06/1.594, allocations: 0 / 0.8124 GB, free: 6.297 MB / 458.8 MB Notification: Performance of matching and sorting (n=339): time 0.3783/1.972, allocations: 45.75 MB / 0.8571 GB, free: 86.02 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/1.972, allocations: 399.3 kB / 0.8575 GB, free: 85.58 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01431/1.986, allocations: 6.98 MB / 0.8643 GB, free: 85.07 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008096/1.987, allocations: 79.05 kB / 0.8644 GB, free: 85.04 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004316/1.992, allocations: 5.227 MB / 0.8695 GB, free: 82.92 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001673/1.993, allocations: 1.249 MB / 0.8707 GB, free: 82.18 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007868/1.994, allocations: 165.2 kB / 0.8709 GB, free: 82.18 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0005446/1.995, allocations: 0.66 MB / 0.8715 GB, free: 81.86 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00839/2.003, allocations: 3.794 MB / 0.8752 GB, free: 81.84 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01199/2.015, allocations: 8.5 MB / 0.8835 GB, free: 75.86 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02043/2.036, allocations: 13.27 MB / 0.8965 GB, free: 69.94 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001836/2.036, allocations: 46.16 kB / 0.8965 GB, free: 69.94 MB / 474.8 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.05307/2.089, allocations: 16.72 MB / 0.9129 GB, free: 66.66 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003938/2.089, allocations: 77.5 kB / 0.9129 GB, free: 66.66 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004614/2.09, allocations: 167.1 kB / 0.9131 GB, free: 66.65 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02447/2.114, allocations: 5.471 MB / 0.9184 GB, free: 65.73 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00955/2.124, allocations: 1.801 MB / 0.9202 GB, free: 65.52 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05471/2.179, allocations: 28.13 MB / 0.9477 GB, free: 52.29 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0108/2.189, allocations: 0.5229 MB / 0.9482 GB, free: 52.04 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001462/2.191, allocations: 478.9 kB / 0.9486 GB, free: 51.57 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.007986/2.199, allocations: 3.471 MB / 0.952 GB, free: 48.55 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001747/2.201, allocations: 0.6479 MB / 0.9527 GB, free: 47.9 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02148/2.222, allocations: 10.95 MB / 0.9633 GB, free: 39.52 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.613e-05/2.222, allocations: 36 kB / 0.9634 GB, free: 39.48 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.889e-05/2.222, allocations: 19.19 kB / 0.9634 GB, free: 39.47 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.435e-05/2.222, allocations: 22.92 kB / 0.9634 GB, free: 39.46 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04618/2.269, allocations: 23.96 MB / 0.9868 GB, free: 19.75 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.986e-05/2.269, allocations: 4 kB / 0.9868 GB, free: 19.74 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/2.271, allocations: 444.4 kB / 0.9873 GB, free: 19.39 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0145/2.285, allocations: 5.093 MB / 0.9922 GB, free: 15.97 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007047/2.286, allocations: 60 kB / 0.9923 GB, free: 15.91 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.262/2.548, allocations: 26.84 MB / 1.018 GB, free: 90.56 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/2.548, allocations: 13.69 kB / 1.019 GB, free: 90.56 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02743/2.576, allocations: 15.71 MB / 1.034 GB, free: 89.71 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002029/2.578, allocations: 0.666 MB / 1.035 GB, free: 89.61 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001474/2.579, allocations: 70.7 kB / 1.035 GB, free: 89.61 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002967/2.582, allocations: 255.2 kB / 1.035 GB, free: 89.61 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007991/2.583, allocations: 237.4 kB / 1.035 GB, free: 89.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002671/2.583, allocations: 90.62 kB / 1.035 GB, free: 89.6 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007411/2.591, allocations: 4.472 MB / 1.039 GB, free: 89.39 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.51e-07/2.591, allocations: 3.406 kB / 1.039 GB, free: 89.39 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009603/2.6, allocations: 1.969 MB / 1.041 GB, free: 89.39 MB / 490.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.0008591/2.601, allocations: 224.8 kB / 1.042 GB, free: 89.3 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01522/2.616, allocations: 10.12 MB / 1.052 GB, free: 88.77 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/2.616, allocations: 3.781 kB / 1.052 GB, free: 88.77 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006977/2.623, allocations: 4.498 MB / 1.056 GB, free: 88.31 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01247/2.636, allocations: 1.015 MB / 1.057 GB, free: 88.28 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03243/2.668, allocations: 21.55 MB / 1.078 GB, free: 80.69 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006089/2.674, allocations: 5.523 MB / 1.083 GB, free: 79.79 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.006654/2.681, allocations: 2.638 MB / 1.086 GB, free: 79.73 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/2.682, allocations: 396.8 kB / 1.086 GB, free: 79.72 MB / 490.8 MB Notification: Performance of SimCode: time 7.41e-07/2.682, allocations: 3.172 kB / 1.086 GB, free: 79.72 MB / 490.8 MB Notification: Performance of Templates: time 0.1201/2.802, allocations: 84.21 MB / 1.169 GB, free: 23.13 MB / 490.8 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches