Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00175/0.00175, allocations: 198.7 kB / 18.07 MB, free: 3.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008273/0.0008273, allocations: 104.1 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002435/0.0002435, allocations: 11.98 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2332, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.3636, allocations: 100.4 MB / 0.4972 GB, free: 7.121 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000344/0.364, allocations: 96.62 kB / 0.4973 GB, free: 7.027 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5684/0.9325, allocations: 169.4 MB / 0.6626 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.558e-06/0.9325, allocations: 0 / 0.6626 GB, free: 10.29 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006501/0.9332, allocations: 167.9 kB / 0.6628 GB, free: 10.13 MB / 442.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.03008/0.9633, allocations: 9.034 MB / 0.6716 GB, free: 1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.9634, allocations: 8.031 kB / 0.6716 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2883/1.252, allocations: 11.61 MB / 0.683 GB, free: 58.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02551/1.277, allocations: 10.83 MB / 0.6935 GB, free: 58.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000566/1.278, allocations: 0.5486 MB / 0.6941 GB, free: 58.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003337/1.281, allocations: 0.7661 MB / 0.6948 GB, free: 58.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03762/1.319, allocations: 16.78 MB / 0.7112 GB, free: 54.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007949/1.32, allocations: 116.1 kB / 0.7113 GB, free: 54.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003186/1.323, allocations: 352.4 kB / 0.7117 GB, free: 54.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002281/1.325, allocations: 1.538 MB / 0.7132 GB, free: 54.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02783/1.353, allocations: 13.1 MB / 0.726 GB, free: 54.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08519/1.438, allocations: 75.03 MB / 0.7992 GB, free: 3.074 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.026/1.464, allocations: 8.297 MB / 0.8073 GB, free: 13.87 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005904/1.47, allocations: 4.142 MB / 0.8114 GB, free: 10.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02369/1.494, allocations: 11.8 MB / 0.8229 GB, free: 156 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.576e-05/1.494, allocations: 68.16 kB / 0.823 GB, free: 84 kB / 458.7 MB Notification: Performance of pre-optimization done (n=294): time 6.512e-06/1.494, allocations: 3.938 kB / 0.823 GB, free: 80 kB / 458.7 MB Notification: Performance of matching and sorting (n=361): time 0.3972/1.891, allocations: 49.52 MB / 0.8713 GB, free: 83.02 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/1.892, allocations: 406.6 kB / 0.8717 GB, free: 82.57 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01406/1.906, allocations: 7.137 MB / 0.8787 GB, free: 82.05 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008427/1.906, allocations: 81.67 kB / 0.8788 GB, free: 82.02 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004192/1.911, allocations: 5.409 MB / 0.884 GB, free: 79.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001691/1.912, allocations: 1.318 MB / 0.8853 GB, free: 78.99 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001227/1.914, allocations: 171.8 kB / 0.8855 GB, free: 78.99 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008589/1.915, allocations: 0.6733 MB / 0.8861 GB, free: 78.66 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005875/1.92, allocations: 3.968 MB / 0.89 GB, free: 78.64 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008133/1.929, allocations: 8.78 MB / 0.8986 GB, free: 72.54 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0141/1.943, allocations: 13.75 MB / 0.912 GB, free: 66.49 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002012/1.943, allocations: 47.53 kB / 0.9121 GB, free: 66.49 MB / 474.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.03597/1.979, allocations: 17.43 MB / 0.9291 GB, free: 61.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000242/1.979, allocations: 75.91 kB / 0.9292 GB, free: 61.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003106/1.98, allocations: 166 kB / 0.9293 GB, free: 61.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01619/1.996, allocations: 5.733 MB / 0.9349 GB, free: 60.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006082/2.002, allocations: 1.852 MB / 0.9367 GB, free: 60.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03573/2.038, allocations: 29.25 MB / 0.9653 GB, free: 37.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007738/2.045, allocations: 0.5373 MB / 0.9658 GB, free: 37.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002082/2.048, allocations: 498.2 kB / 0.9663 GB, free: 36.7 MB / 474.7 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.008517/2.056, allocations: 3.59 MB / 0.9698 GB, free: 33.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001663/2.058, allocations: 0.6749 MB / 0.9705 GB, free: 32.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02354/2.081, allocations: 11.59 MB / 0.9818 GB, free: 23.98 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.613e-05/2.081, allocations: 36 kB / 0.9818 GB, free: 23.95 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-05/2.082, allocations: 23.94 kB / 0.9818 GB, free: 23.93 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.981e-05/2.082, allocations: 18.05 kB / 0.9819 GB, free: 23.93 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04776/2.129, allocations: 25.16 MB / 1.006 GB, free: 3.242 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-05/2.129, allocations: 4 kB / 1.006 GB, free: 3.238 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/2.132, allocations: 466.3 kB / 1.007 GB, free: 2.863 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01642/2.148, allocations: 5.497 MB / 1.012 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007227/2.149, allocations: 63.94 kB / 1.012 GB, free: 15.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2688/2.418, allocations: 28.12 MB / 1.04 GB, free: 89.68 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.966e-06/2.418, allocations: 12 kB / 1.04 GB, free: 89.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03077/2.448, allocations: 16.68 MB / 1.056 GB, free: 88.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004491/2.453, allocations: 1.312 MB / 1.057 GB, free: 88.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002402/2.455, allocations: 67.28 kB / 1.057 GB, free: 88.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005156/2.461, allocations: 271.4 kB / 1.058 GB, free: 88.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001636/2.462, allocations: 256.4 kB / 1.058 GB, free: 88.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007106/2.463, allocations: 100.7 kB / 1.058 GB, free: 88.69 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01242/2.475, allocations: 4.555 MB / 1.062 GB, free: 88.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.476, allocations: 0 / 1.062 GB, free: 88.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01287/2.488, allocations: 2.06 MB / 1.064 GB, free: 88.48 MB / 490.7 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.00134/2.49, allocations: 227 kB / 1.065 GB, free: 88.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02081/2.511, allocations: 10.56 MB / 1.075 GB, free: 85.25 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/2.511, allocations: 3.406 kB / 1.075 GB, free: 85.25 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01011/2.521, allocations: 4.767 MB / 1.08 GB, free: 83.25 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01686/2.538, allocations: 1.039 MB / 1.081 GB, free: 82.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04536/2.583, allocations: 23.45 MB / 1.104 GB, free: 71.59 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01055/2.594, allocations: 5.733 MB / 1.109 GB, free: 69.45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001806/2.596, allocations: 463.3 kB / 1.11 GB, free: 69.01 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/2.596, allocations: 0 / 1.11 GB, free: 69.01 MB / 490.7 MB Notification: Performance of Templates: time 0.5243/3.12, allocations: 212.9 MB / 1.318 GB, free: 28.04 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches