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.00109/0.00109, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008091/0.0008092, allocations: 95.36 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.383e-05/1.387e-05, allocations: 0 / 343.7 MB, free: 8.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 51.48 MB / 395.2 MB, free: 4.793 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3565/0.4675, allocations: 99.66 MB / 494.8 MB, free: 9.797 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.4678, allocations: 86.83 kB / 494.9 MB, free: 9.754 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6883/1.156, allocations: 173.2 MB / 0.6525 GB, free: 69.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.156, allocations: 4 kB / 0.6525 GB, free: 69.51 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006164/1.157, allocations: 162.3 kB / 0.6526 GB, free: 69.51 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.02483/1.182, allocations: 8.204 MB / 0.6606 GB, free: 65.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/1.182, allocations: 7.406 kB / 0.6606 GB, free: 65.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05975/1.241, allocations: 16.56 MB / 0.6768 GB, free: 59.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02813/1.27, allocations: 11.66 MB / 0.6882 GB, free: 51.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003319/1.27, allocations: 240 kB / 0.6884 GB, free: 51.76 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002841/1.273, allocations: 475.6 kB / 0.6889 GB, free: 51.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01772/1.291, allocations: 9.874 MB / 0.6985 GB, free: 41.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02583/1.316, allocations: 14.8 MB / 0.713 GB, free: 25.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003436/1.317, allocations: 111 kB / 0.7131 GB, free: 25.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008262/1.318, allocations: 40 kB / 0.7131 GB, free: 25.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001693/1.319, allocations: 1.539 MB / 0.7146 GB, free: 23.63 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3822/1.702, allocations: 72.98 MB / 0.7859 GB, free: 54.87 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006233/1.708, allocations: 5.604 MB / 0.7914 GB, free: 54.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004002/1.712, allocations: 3.982 MB / 0.7952 GB, free: 54.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008349/1.713, allocations: 0.8422 MB / 0.7961 GB, free: 53.49 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/1.713, allocations: 66.25 kB / 0.7961 GB, free: 53.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=301): time 4.549e-06/1.713, allocations: 4.344 kB / 0.7961 GB, free: 53.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=367): time 0.09936/1.812, allocations: 40.41 MB / 0.8356 GB, free: 44.25 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/1.812, allocations: 402.8 kB / 0.836 GB, free: 43.81 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01084/1.823, allocations: 5.54 MB / 0.8414 GB, free: 41.88 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001028/1.824, allocations: 25.7 kB / 0.8414 GB, free: 41.85 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003873/1.828, allocations: 5.437 MB / 0.8467 GB, free: 37.79 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001915/1.83, allocations: 1.302 MB / 0.848 GB, free: 36.81 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006055/1.831, allocations: 0 / 0.848 GB, free: 36.81 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004494/1.831, allocations: 0.6771 MB / 0.8487 GB, free: 36.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004439/1.836, allocations: 3.775 MB / 0.8523 GB, free: 34.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006553/1.842, allocations: 8.649 MB / 0.8608 GB, free: 26.88 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007233/1.849, allocations: 5.597 MB / 0.8663 GB, free: 24.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001444/1.85, allocations: 48.34 kB / 0.8663 GB, free: 24.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.03502/1.885, allocations: 16.26 MB / 0.8822 GB, free: 16.42 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.637e-05/1.885, allocations: 81.67 kB / 0.8823 GB, free: 16.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001757/1.885, allocations: 174.9 kB / 0.8824 GB, free: 16.17 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01635/1.901, allocations: 5.664 MB / 0.888 GB, free: 12.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007162/1.909, allocations: 1.902 MB / 0.8898 GB, free: 10.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04197/1.951, allocations: 27.25 MB / 0.9164 GB, free: 3.746 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008676/1.959, allocations: 376 kB / 0.9168 GB, free: 3.473 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002201/1.962, allocations: 0.4949 MB / 0.9173 GB, free: 2.984 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 780 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1012): * Single equations (assignments): 1006 * 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,51.6%) 96,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002939/1.965, allocations: 0.5528 MB / 0.9178 GB, free: 2.434 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001952/1.966, allocations: 0.6402 MB / 0.9184 GB, free: 1.785 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3335/2.3, allocations: 11.65 MB / 0.9298 GB, free: 101.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.51e-05/2.3, allocations: 36.52 kB / 0.9298 GB, free: 101.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.551e-05/2.3, allocations: 20.16 kB / 0.9299 GB, free: 101.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.005e-05/2.3, allocations: 21.53 kB / 0.9299 GB, free: 101.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0456/2.346, allocations: 23.8 MB / 0.9531 GB, free: 98.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.724e-05/2.346, allocations: 5.672 kB / 0.9531 GB, free: 98.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002679/2.349, allocations: 476 kB / 0.9536 GB, free: 98.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01742/2.366, allocations: 5.315 MB / 0.9588 GB, free: 98.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007902/2.367, allocations: 13.06 kB / 0.9588 GB, free: 98.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03553/2.402, allocations: 25.85 MB / 0.984 GB, free: 89.12 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.719e-06/2.402, allocations: 5.438 kB / 0.984 GB, free: 89.12 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02922/2.432, allocations: 17.32 MB / 1.001 GB, free: 82.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003659/2.435, allocations: 1.268 MB / 1.002 GB, free: 81.84 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001238/2.437, allocations: 10.08 kB / 1.002 GB, free: 81.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003284/2.44, allocations: 219.4 kB / 1.002 GB, free: 81.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007461/2.441, allocations: 265.4 kB / 1.003 GB, free: 81.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002724/2.441, allocations: 93.31 kB / 1.003 GB, free: 81.77 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006051/2.447, allocations: 3.854 MB / 1.007 GB, free: 80.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.51e-07/2.447, allocations: 2.734 kB / 1.007 GB, free: 80.41 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009805/2.457, allocations: 1.816 MB / 1.008 GB, free: 80.41 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 233 * 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.0008216/2.458, allocations: 179.6 kB / 1.008 GB, free: 80.32 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0163/2.474, allocations: 10.02 MB / 1.018 GB, free: 76.76 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/2.474, allocations: 0 / 1.018 GB, free: 76.76 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007938/2.482, allocations: 4.583 MB / 1.023 GB, free: 74.74 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00632/2.488, allocations: 0.8587 MB / 1.024 GB, free: 74.44 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03597/2.524, allocations: 16.17 MB / 1.039 GB, free: 62.72 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/2.535, allocations: 5.897 MB / 1.045 GB, free: 58.45 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008098/2.543, allocations: 2.799 MB / 1.048 GB, free: 56.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/2.544, allocations: 388.4 kB / 1.048 GB, free: 56.38 MB / 490.7 MB Notification: Performance of SimCode: time 1.633e-06/2.544, allocations: 0 / 1.048 GB, free: 56.38 MB / 490.7 MB Notification: Performance of Templates: time 0.438/2.982, allocations: 80.48 MB / 1.127 GB, free: 83.35 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