Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 198.2 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 227.2 MB / 245 MB, free: 7.559 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008251/0.0008252, allocations: 104.7 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002831/0.0002831, allocations: 4 kB / 357.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.191, allocations: 51.48 MB / 409.4 MB, free: 26.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.116/0.3071, allocations: 100.4 MB / 0.4978 GB, free: 6.227 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.3074, allocations: 101 kB / 0.4979 GB, free: 6.129 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5442/0.8517, allocations: 176.3 MB / 0.6701 GB, free: 1.875 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.8517, allocations: 0 / 0.6701 GB, free: 1.875 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006166/0.8523, allocations: 168 kB / 0.6702 GB, free: 1.711 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.2121/1.064, allocations: 9.278 MB / 0.6793 GB, free: 57.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/1.064, allocations: 11.73 kB / 0.6793 GB, free: 57.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05601/1.121, allocations: 16.54 MB / 0.6955 GB, free: 56.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02665/1.147, allocations: 11.75 MB / 0.7069 GB, free: 55.81 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003937/1.148, allocations: 0.5522 MB / 0.7075 GB, free: 55.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/1.15, allocations: 0.7578 MB / 0.7082 GB, free: 55.78 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03038/1.181, allocations: 16.97 MB / 0.7248 GB, free: 52.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003703/1.181, allocations: 117.2 kB / 0.7249 GB, free: 52.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001232/1.182, allocations: 350 kB / 0.7252 GB, free: 52.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001647/1.184, allocations: 1.529 MB / 0.7267 GB, free: 52.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02381/1.208, allocations: 13.34 MB / 0.7397 GB, free: 52.08 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07434/1.282, allocations: 75.16 MB / 0.8131 GB, free: 6.812 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01849/1.301, allocations: 7.854 MB / 0.8208 GB, free: 388 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02006/1.321, allocations: 11.87 MB / 0.8324 GB, free: 6.27 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.727e-05/1.321, allocations: 66.92 kB / 0.8325 GB, free: 6.203 MB / 474.7 MB Notification: Performance of pre-optimization done (n=294): time 5.811e-06/1.321, allocations: 3.469 kB / 0.8325 GB, free: 6.203 MB / 474.7 MB Notification: Performance of matching and sorting (n=361): time 0.3593/1.68, allocations: 48.61 MB / 0.88 GB, free: 97.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/1.68, allocations: 399.7 kB / 0.8803 GB, free: 97.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009227/1.689, allocations: 6.308 MB / 0.8865 GB, free: 97.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007896/1.69, allocations: 82.38 kB / 0.8866 GB, free: 97 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003499/1.694, allocations: 5.41 MB / 0.8919 GB, free: 94.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001442/1.695, allocations: 1.32 MB / 0.8931 GB, free: 93.65 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006154/1.696, allocations: 171.8 kB / 0.8933 GB, free: 93.65 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004037/1.696, allocations: 0.6689 MB / 0.894 GB, free: 93.33 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005115/1.701, allocations: 3.973 MB / 0.8978 GB, free: 93.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00714/1.709, allocations: 8.752 MB / 0.9064 GB, free: 87.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008011/1.717, allocations: 5.723 MB / 0.912 GB, free: 87.14 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001192/1.717, allocations: 45.66 kB / 0.912 GB, free: 87.14 MB / 490.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.03419/1.751, allocations: 17.43 MB / 0.929 GB, free: 84.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000205/1.751, allocations: 74.41 kB / 0.9291 GB, free: 84.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003088/1.752, allocations: 170.7 kB / 0.9293 GB, free: 84.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01705/1.769, allocations: 5.754 MB / 0.9349 GB, free: 83.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006583/1.775, allocations: 1.848 MB / 0.9367 GB, free: 83.62 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03617/1.812, allocations: 30.17 MB / 0.9662 GB, free: 66.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008854/1.82, allocations: 0.5385 MB / 0.9667 GB, free: 65.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001864/1.822, allocations: 497.2 kB / 0.9672 GB, free: 65.5 MB / 490.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.007916/1.83, allocations: 3.593 MB / 0.9707 GB, free: 62.38 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001915/1.832, allocations: 0.671 MB / 0.9713 GB, free: 61.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02296/1.855, allocations: 11.59 MB / 0.9826 GB, free: 52.85 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.604e-05/1.855, allocations: 36.7 kB / 0.9827 GB, free: 52.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.628e-05/1.855, allocations: 20 kB / 0.9827 GB, free: 52.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.336e-05/1.855, allocations: 14.16 kB / 0.9827 GB, free: 52.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04726/1.903, allocations: 25.17 MB / 1.007 GB, free: 32.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/1.903, allocations: 8.688 kB / 1.007 GB, free: 32.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002111/1.905, allocations: 463.4 kB / 1.008 GB, free: 31.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01443/1.919, allocations: 5.405 MB / 1.013 GB, free: 28.14 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006331/1.92, allocations: 60.78 kB / 1.013 GB, free: 28.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2498/2.17, allocations: 29.05 MB / 1.041 GB, free: 88.86 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/2.17, allocations: 9.094 kB / 1.041 GB, free: 88.86 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02731/2.197, allocations: 17.76 MB / 1.059 GB, free: 86.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00418/2.201, allocations: 1.305 MB / 1.06 GB, free: 86.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001535/2.203, allocations: 68.27 kB / 1.06 GB, free: 86.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003691/2.207, allocations: 267.4 kB / 1.06 GB, free: 86.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008266/2.208, allocations: 254 kB / 1.061 GB, free: 86.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002719/2.208, allocations: 100.2 kB / 1.061 GB, free: 86.71 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007285/2.215, allocations: 4.557 MB / 1.065 GB, free: 86.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.215, allocations: 2.188 kB / 1.065 GB, free: 86.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00995/2.225, allocations: 2.052 MB / 1.067 GB, free: 86.5 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.000847/2.226, allocations: 226.9 kB / 1.067 GB, free: 86.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01579/2.242, allocations: 10.57 MB / 1.078 GB, free: 85.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/2.242, allocations: 0 / 1.078 GB, free: 85.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007345/2.249, allocations: 4.767 MB / 1.082 GB, free: 85.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005988/2.255, allocations: 1.007 MB / 1.083 GB, free: 84.84 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03404/2.289, allocations: 22.48 MB / 1.105 GB, free: 74.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009901/2.299, allocations: 5.906 MB / 1.111 GB, free: 72.29 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007534/2.307, allocations: 2.734 MB / 1.114 GB, free: 72.22 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/2.308, allocations: 406.3 kB / 1.114 GB, free: 72.21 MB / 490.7 MB Notification: Performance of SimCode: time 1.212e-06/2.308, allocations: 0 / 1.114 GB, free: 72.21 MB / 490.7 MB Notification: Performance of Templates: time 0.135/2.443, allocations: 88.12 MB / 1.2 GB, free: 5.082 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches