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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008459/0.0008459, allocations: 89.25 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.212e-06/6.241e-06, allocations: 0 / 343.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 51.48 MB / 394.6 MB, free: 5.223 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.261/0.362, allocations: 99.58 MB / 494.2 MB, free: 9.809 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.3622, allocations: 82.33 kB / 494.3 MB, free: 9.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5887/0.9509, allocations: 170.6 MB / 0.6493 GB, free: 69.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008102/0.9518, allocations: 162.2 kB / 0.6495 GB, free: 69.16 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.0265/0.9783, allocations: 8.05 MB / 0.6573 GB, free: 65.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.9783, allocations: 9.531 kB / 0.6573 GB, free: 65.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05797/1.036, allocations: 16.13 MB / 0.6731 GB, free: 59.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03218/1.069, allocations: 11.8 MB / 0.6846 GB, free: 53.41 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003665/1.069, allocations: 239.6 kB / 0.6848 GB, free: 53.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003467/1.072, allocations: 468 kB / 0.6853 GB, free: 53.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01908/1.092, allocations: 10.36 MB / 0.6954 GB, free: 43.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03179/1.123, allocations: 15.27 MB / 0.7103 GB, free: 27.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005117/1.124, allocations: 107 kB / 0.7104 GB, free: 27.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002099/1.126, allocations: 36 kB / 0.7104 GB, free: 27.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002029/1.128, allocations: 1.683 MB / 0.7121 GB, free: 25.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2558/1.384, allocations: 75.96 MB / 0.7863 GB, free: 76.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006706/1.391, allocations: 5.806 MB / 0.7919 GB, free: 75.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004779/1.395, allocations: 4.743 MB / 0.7966 GB, free: 75.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02113/1.417, allocations: 14.05 MB / 0.8103 GB, free: 70.67 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.017e-05/1.417, allocations: 67.38 kB / 0.8103 GB, free: 70.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=294): time 1.022e-05/1.417, allocations: 3.281 kB / 0.8103 GB, free: 70.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=361): time 0.09505/1.512, allocations: 36.87 MB / 0.8464 GB, free: 58.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/1.512, allocations: 407.7 kB / 0.8467 GB, free: 57.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009325/1.521, allocations: 5.62 MB / 0.8522 GB, free: 55.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007905/1.522, allocations: 26.89 kB / 0.8523 GB, free: 55.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00294/1.525, allocations: 4.519 MB / 0.8567 GB, free: 52.33 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.527, allocations: 1.281 MB / 0.8579 GB, free: 51.37 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006171/1.527, allocations: 0 / 0.8579 GB, free: 51.37 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004901/1.528, allocations: 0.6713 MB / 0.8586 GB, free: 50.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005092/1.533, allocations: 3.883 MB / 0.8624 GB, free: 49.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006899/1.54, allocations: 8.748 MB / 0.8709 GB, free: 41.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008504/1.549, allocations: 5.752 MB / 0.8765 GB, free: 39.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001832/1.549, allocations: 49.5 kB / 0.8766 GB, free: 39.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.03567/1.584, allocations: 15.98 MB / 0.8922 GB, free: 33.38 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/1.584, allocations: 8 kB / 0.8922 GB, free: 33.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001644/1.585, allocations: 170.3 kB / 0.8924 GB, free: 33.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01724/1.602, allocations: 5.273 MB / 0.8975 GB, free: 29.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006794/1.609, allocations: 1.862 MB / 0.8993 GB, free: 27.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03456/1.643, allocations: 25.82 MB / 0.9245 GB, free: 5.047 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008436/1.652, allocations: 310.2 kB / 0.9248 GB, free: 4.797 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002105/1.654, allocations: 0.4948 MB / 0.9253 GB, free: 4.309 MB / 458.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 (1006): * Single equations (assignments): 1000 * 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.002202/1.656, allocations: 0.5466 MB / 0.9258 GB, free: 3.758 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001755/1.658, allocations: 0.6364 MB / 0.9265 GB, free: 3.109 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1911/1.849, allocations: 10.93 MB / 0.9371 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001083/1.849, allocations: 36.28 kB / 0.9372 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.356e-05/1.849, allocations: 18.62 kB / 0.9372 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.896e-05/1.849, allocations: 22.19 kB / 0.9372 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04612/1.895, allocations: 23.29 MB / 0.96 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.38e-05/1.896, allocations: 7.25 kB / 0.96 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/1.898, allocations: 442.2 kB / 0.9604 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01659/1.915, allocations: 4.938 MB / 0.9652 GB, free: 104.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008528/1.915, allocations: 15.45 kB / 0.9652 GB, free: 104.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03283/1.948, allocations: 24.74 MB / 0.9894 GB, free: 96.28 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.481e-05/1.948, allocations: 8.469 kB / 0.9894 GB, free: 96.28 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02956/1.978, allocations: 17.2 MB / 1.006 GB, free: 89.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003749/1.982, allocations: 1.268 MB / 1.007 GB, free: 89.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001956/1.984, allocations: 5.781 kB / 1.007 GB, free: 89.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004154/1.988, allocations: 143 kB / 1.008 GB, free: 89.04 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006068/1.989, allocations: 180 kB / 1.008 GB, free: 89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003547/1.989, allocations: 98.44 kB / 1.008 GB, free: 88.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.008283/1.997, allocations: 3.944 MB / 1.012 GB, free: 87.62 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01266/2.01, allocations: 1.749 MB / 1.013 GB, free: 87.62 MB / 458.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 (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.001164/2.011, allocations: 178.1 kB / 1.014 GB, free: 87.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01729/2.028, allocations: 9.875 MB / 1.023 GB, free: 84.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/2.028, allocations: 4.75 kB / 1.023 GB, free: 84.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007568/2.036, allocations: 4.328 MB / 1.027 GB, free: 82.37 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005806/2.042, allocations: 0.828 MB / 1.028 GB, free: 82.07 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03975/2.082, allocations: 16.52 MB / 1.044 GB, free: 73.73 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01011/2.092, allocations: 6.263 MB / 1.05 GB, free: 69.08 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/2.092, allocations: 0 / 1.05 GB, free: 69.08 MB / 458.7 MB Notification: Performance of Templates: time 0.309/2.401, allocations: 86.06 MB / 1.135 GB, free: 99.48 MB / 458.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