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") [: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.00152/0.00152, allocations: 201.7 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008793/0.0008793, allocations: 93.17 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.664e-06/7.744e-06, allocations: 0 / 343.1 MB, free: 8.723 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09398, allocations: 51.47 MB / 394.6 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2556/0.3496, allocations: 97.98 MB / 492.6 MB, free: 11.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.3499, allocations: 91.25 kB / 492.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5607/0.9106, allocations: 166 MB / 0.6433 GB, free: 70.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006181/0.9113, allocations: 157.5 kB / 0.6434 GB, free: 70.35 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02537/0.9367, allocations: 7.754 MB / 0.651 GB, free: 66.69 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.9367, allocations: 8.719 kB / 0.651 GB, free: 66.69 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05929/0.996, allocations: 16.04 MB / 0.6667 GB, free: 63.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02734/1.023, allocations: 11.52 MB / 0.6779 GB, free: 56.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004301/1.024, allocations: 234.1 kB / 0.6781 GB, free: 56.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003296/1.027, allocations: 451.8 kB / 0.6786 GB, free: 56.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0183/1.045, allocations: 9.945 MB / 0.6883 GB, free: 50.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02924/1.075, allocations: 14.73 MB / 0.7027 GB, free: 34.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004172/1.075, allocations: 119 kB / 0.7028 GB, free: 34.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001446/1.077, allocations: 43.91 kB / 0.7028 GB, free: 34.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00187/1.079, allocations: 1.628 MB / 0.7044 GB, free: 33.11 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2308/1.309, allocations: 74.12 MB / 0.7768 GB, free: 67.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005939/1.315, allocations: 5.662 MB / 0.7823 GB, free: 66.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004314/1.32, allocations: 4.598 MB / 0.7868 GB, free: 66.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0184/1.338, allocations: 13.68 MB / 0.8002 GB, free: 62.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.905e-05/1.338, allocations: 71.84 kB / 0.8002 GB, free: 62.83 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 5.521e-06/1.338, allocations: 0 / 0.8002 GB, free: 62.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=340): time 0.08629/1.424, allocations: 35.15 MB / 0.8345 GB, free: 51.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.549e-05/1.425, allocations: 394.1 kB / 0.8349 GB, free: 50.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008861/1.433, allocations: 5.477 MB / 0.8403 GB, free: 48.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000765/1.434, allocations: 30.67 kB / 0.8403 GB, free: 48.66 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002766/1.437, allocations: 4.378 MB / 0.8446 GB, free: 45.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001657/1.439, allocations: 1.211 MB / 0.8458 GB, free: 44.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004863/1.439, allocations: 0 / 0.8458 GB, free: 44.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004273/1.44, allocations: 0.6619 MB / 0.8464 GB, free: 44.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004765/1.444, allocations: 3.722 MB / 0.85 GB, free: 42.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006228/1.451, allocations: 8.49 MB / 0.8583 GB, free: 34.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007042/1.458, allocations: 5.549 MB / 0.8638 GB, free: 32.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/1.458, allocations: 48.56 kB / 0.8638 GB, free: 32.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.03261/1.49, allocations: 15.33 MB / 0.8788 GB, free: 28.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/1.491, allocations: 4.75 kB / 0.8788 GB, free: 28.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003369/1.491, allocations: 170.8 kB / 0.8789 GB, free: 28.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01629/1.507, allocations: 5.005 MB / 0.8838 GB, free: 24.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00682/1.514, allocations: 1.81 MB / 0.8856 GB, free: 23.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03049/1.545, allocations: 24.8 MB / 0.9098 GB, free: 1.199 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008094/1.553, allocations: 299.4 kB / 0.9101 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001773/1.555, allocations: 499.1 kB / 0.9106 GB, free: 484 kB / 442.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: 764 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (972): * Single equations (assignments): 966 * 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%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.1821/1.737, allocations: 0.5507 MB / 0.9111 GB, free: 97.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001759/1.738, allocations: 0.6177 MB / 0.9117 GB, free: 97.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02256/1.761, allocations: 10.33 MB / 0.9218 GB, free: 96.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001005/1.761, allocations: 34.38 kB / 0.9218 GB, free: 96.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.173e-05/1.761, allocations: 19.44 kB / 0.9219 GB, free: 96.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.751e-05/1.761, allocations: 13.5 kB / 0.9219 GB, free: 96.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04374/1.805, allocations: 22.24 MB / 0.9436 GB, free: 94.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.222e-05/1.805, allocations: 7.281 kB / 0.9436 GB, free: 94.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002272/1.807, allocations: 417 kB / 0.944 GB, free: 94.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0155/1.823, allocations: 4.652 MB / 0.9485 GB, free: 94.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007643/1.824, allocations: 12.86 kB / 0.9485 GB, free: 94.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03047/1.854, allocations: 23.62 MB / 0.9716 GB, free: 84.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.117e-05/1.854, allocations: 11.34 kB / 0.9716 GB, free: 84.1 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02857/1.883, allocations: 16.35 MB / 0.9876 GB, free: 77.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002638/1.886, allocations: 0.615 MB / 0.9882 GB, free: 77.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00191/1.887, allocations: 14.89 kB / 0.9882 GB, free: 77.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003513/1.891, allocations: 129.8 kB / 0.9883 GB, free: 77.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005281/1.892, allocations: 168.4 kB / 0.9885 GB, free: 77.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003246/1.892, allocations: 92.25 kB / 0.9886 GB, free: 77.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00705/1.899, allocations: 3.839 MB / 0.9923 GB, free: 75.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01001/1.909, allocations: 1.678 MB / 0.994 GB, free: 75.68 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 209 * 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.0008233/1.91, allocations: 182.8 kB / 0.9941 GB, free: 75.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01428/1.924, allocations: 9.484 MB / 1.003 GB, free: 72.36 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/1.924, allocations: 6.438 kB / 1.003 GB, free: 72.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006473/1.931, allocations: 4.075 MB / 1.007 GB, free: 70.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005971/1.937, allocations: 0.8289 MB / 1.008 GB, free: 70.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03734/1.974, allocations: 15.82 MB / 1.024 GB, free: 59.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009504/1.984, allocations: 6.042 MB / 1.03 GB, free: 55.07 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/1.984, allocations: 0 / 1.03 GB, free: 55.07 MB / 442.7 MB Notification: Performance of Templates: time 0.286/2.27, allocations: 81.53 MB / 1.109 GB, free: 86.73 MB / 442.7 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/jenkins/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