Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") [: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.001659/0.001659, 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.291/1.291, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009883/0.0009883, allocations: 98.14 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.596e-06/8.626e-06, allocations: 4 kB / 343.1 MB, free: 8.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 51.48 MB / 394.6 MB, free: 5.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2886/0.4008, allocations: 111.6 MB / 0.4944 GB, free: 13.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4011, allocations: 86.27 kB / 0.4945 GB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.6323/1.033, allocations: 187.2 MB / 0.6773 GB, free: 47.74 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007506/1.034, allocations: 191.8 kB / 0.6775 GB, free: 47.73 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03158/1.066, allocations: 8.982 MB / 0.6863 GB, free: 42.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/1.066, allocations: 8.75 kB / 0.6863 GB, free: 42.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05899/1.125, allocations: 16.2 MB / 0.7021 GB, free: 26.92 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03022/1.155, allocations: 12.64 MB / 0.7144 GB, free: 14.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004236/1.156, allocations: 276 kB / 0.7147 GB, free: 14.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003833/1.159, allocations: 0.5152 MB / 0.7152 GB, free: 13.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02196/1.181, allocations: 12.23 MB / 0.7271 GB, free: 1.289 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2413/1.423, allocations: 17.03 MB / 0.7438 GB, free: 98.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009154/1.424, allocations: 109.5 kB / 0.7439 GB, free: 98.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004598/1.428, allocations: 41.12 kB / 0.7439 GB, free: 98.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003788/1.432, allocations: 1.74 MB / 0.7456 GB, free: 98.58 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1158/1.548, allocations: 80.96 MB / 0.8247 GB, free: 74.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00634/1.554, allocations: 5.599 MB / 0.8301 GB, free: 71.46 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004943/1.559, allocations: 4.651 MB / 0.8347 GB, free: 69.36 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0222/1.582, allocations: 16.21 MB / 0.8505 GB, free: 59.85 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/1.582, allocations: 76.36 kB / 0.8506 GB, free: 59.79 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 5.881e-06/1.582, allocations: 0 / 0.8506 GB, free: 59.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=420): time 0.09487/1.677, allocations: 37.38 MB / 0.8871 GB, free: 46.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/1.677, allocations: 412.5 kB / 0.8875 GB, free: 45.91 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008731/1.685, allocations: 5.928 MB / 0.8933 GB, free: 43.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007748/1.686, allocations: 25.7 kB / 0.8933 GB, free: 43.72 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002427/1.689, allocations: 4.907 MB / 0.8981 GB, free: 40.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001495/1.69, allocations: 1.47 MB / 0.8995 GB, free: 38.95 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000465/1.691, allocations: 0 / 0.8995 GB, free: 38.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004221/1.691, allocations: 0.7062 MB / 0.9002 GB, free: 38.48 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005141/1.696, allocations: 4.22 MB / 0.9043 GB, free: 36.83 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00758/1.704, allocations: 9.311 MB / 0.9134 GB, free: 28.19 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007872/1.712, allocations: 6.261 MB / 0.9195 GB, free: 25.04 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.898e-05/1.712, allocations: 52 kB / 0.9196 GB, free: 24.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=1245) (initialization): time 0.03286/1.745, allocations: 16.45 MB / 0.9356 GB, free: 11.08 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/1.745, allocations: 7.938 kB / 0.9357 GB, free: 11.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001721/1.745, allocations: 180 kB / 0.9358 GB, free: 10.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01459/1.76, allocations: 4.655 MB / 0.9404 GB, free: 7.426 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007303/1.767, allocations: 1.993 MB / 0.9423 GB, free: 5.668 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2237/1.991, allocations: 24.01 MB / 0.9658 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008561/1.999, allocations: 309.6 kB / 0.9661 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002017/2.001, allocations: 0.5292 MB / 0.9666 GB, free: 110.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 811 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1088): * Single equations (assignments): 1083 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002164/2.003, allocations: 0.5612 MB / 0.9671 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001703/2.005, allocations: 0.6764 MB / 0.9678 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02294/2.028, allocations: 11.03 MB / 0.9786 GB, free: 110.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.472e-05/2.028, allocations: 40.44 kB / 0.9786 GB, free: 110.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.583e-05/2.028, allocations: 23.75 kB / 0.9786 GB, free: 110.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.899e-05/2.028, allocations: 20.44 kB / 0.9786 GB, free: 110.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04871/2.077, allocations: 23.25 MB / 1.001 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.26e-05/2.077, allocations: 7.688 kB / 1.001 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003039/2.08, allocations: 0.5387 MB / 1.002 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01476/2.095, allocations: 4.266 MB / 1.006 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008472/2.096, allocations: 19.88 kB / 1.006 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02869/2.125, allocations: 20.65 MB / 1.026 GB, free: 98.44 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.371e-05/2.125, allocations: 10.12 kB / 1.026 GB, free: 98.44 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03336/2.158, allocations: 18.32 MB / 1.044 GB, free: 90.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004682/2.163, allocations: 1.374 MB / 1.045 GB, free: 89.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002387/2.165, allocations: 19.44 kB / 1.045 GB, free: 89.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004461/2.17, allocations: 134.5 kB / 1.046 GB, free: 89.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006757/2.17, allocations: 212.3 kB / 1.046 GB, free: 89.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003761/2.171, allocations: 113.8 kB / 1.046 GB, free: 89.63 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008789/2.179, allocations: 4.153 MB / 1.05 GB, free: 88.19 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01376/2.193, allocations: 1.905 MB / 1.052 GB, free: 88.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (291): * Single equations (assignments): 287 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001475/2.195, allocations: 216.6 kB / 1.052 GB, free: 88.09 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01648/2.211, allocations: 10.38 MB / 1.062 GB, free: 84.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.527e-05/2.211, allocations: 3.188 kB / 1.062 GB, free: 84.48 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006867/2.218, allocations: 4.362 MB / 1.066 GB, free: 81.31 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005966/2.224, allocations: 0.8744 MB / 1.067 GB, free: 80.59 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04066/2.265, allocations: 18.21 MB / 1.085 GB, free: 64.36 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01397/2.279, allocations: 6.975 MB / 1.092 GB, free: 59.17 MB / 474.7 MB Notification: Performance of SimCode: time 1.463e-06/2.279, allocations: 0 / 1.092 GB, free: 59.17 MB / 474.7 MB Notification: Performance of Templates: time 0.3395/2.618, allocations: 95.36 MB / 1.185 GB, free: 98.72 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches