Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 185.9 kB / 8.137 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.164/1.164, allocations: 221.4 MB / 229.9 MB, free: 3.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009064/0.0009064, allocations: 89.09 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.105e-06/8.125e-06, allocations: 0 / 336.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2079, allocations: 50.4 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.3202, allocations: 97.32 MB / 484.2 MB, free: 5.426 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.3205, allocations: 102.6 kB / 484.3 MB, free: 5.328 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5292/0.8496, allocations: 157.7 MB / 0.627 GB, free: 11.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005134/0.8502, allocations: 152 kB / 0.6271 GB, free: 11.77 MB / 410.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.02337/0.8736, allocations: 7.698 MB / 0.6347 GB, free: 3.996 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.8736, allocations: 8.031 kB / 0.6347 GB, free: 3.988 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06117/0.9348, allocations: 16.04 MB / 0.6503 GB, free: 3.898 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1847/1.12, allocations: 12.67 MB / 0.6627 GB, free: 90.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00036/1.12, allocations: 229.5 kB / 0.6629 GB, free: 90.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003277/1.123, allocations: 448.3 kB / 0.6634 GB, free: 90.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01791/1.141, allocations: 9.955 MB / 0.6731 GB, free: 90.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03066/1.172, allocations: 14.73 MB / 0.6875 GB, free: 86.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000478/1.172, allocations: 111.7 kB / 0.6876 GB, free: 86.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001881/1.174, allocations: 40.28 kB / 0.6876 GB, free: 86.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002093/1.176, allocations: 1.633 MB / 0.6892 GB, free: 86.76 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08646/1.263, allocations: 74.12 MB / 0.7616 GB, free: 42.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007033/1.27, allocations: 5.664 MB / 0.7671 GB, free: 40.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004964/1.275, allocations: 4.606 MB / 0.7716 GB, free: 38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02457/1.3, allocations: 13.68 MB / 0.785 GB, free: 30.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.169e-05/1.3, allocations: 75.7 kB / 0.785 GB, free: 30.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 1.076e-05/1.3, allocations: 3.797 kB / 0.785 GB, free: 30.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.09206/1.392, allocations: 35.14 MB / 0.8194 GB, free: 3.352 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.298e-05/1.392, allocations: 399.2 kB / 0.8197 GB, free: 2.879 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1661/1.558, allocations: 5.592 MB / 0.8252 GB, free: 85.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007194/1.559, allocations: 25.7 kB / 0.8252 GB, free: 85.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002764/1.562, allocations: 4.384 MB / 0.8295 GB, free: 84.86 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001389/1.563, allocations: 1.212 MB / 0.8307 GB, free: 84.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005878/1.564, allocations: 0 / 0.8307 GB, free: 84.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003727/1.564, allocations: 0.6604 MB / 0.8313 GB, free: 83.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004416/1.568, allocations: 3.721 MB / 0.835 GB, free: 83.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006493/1.575, allocations: 8.485 MB / 0.8433 GB, free: 77.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006749/1.582, allocations: 5.543 MB / 0.8487 GB, free: 77.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/1.582, allocations: 45.84 kB / 0.8487 GB, free: 77.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.03235/1.614, allocations: 15.34 MB / 0.8637 GB, free: 77.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/1.614, allocations: 3.062 kB / 0.8637 GB, free: 77.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001919/1.614, allocations: 167.7 kB / 0.8639 GB, free: 77.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01584/1.63, allocations: 4.995 MB / 0.8687 GB, free: 76.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006478/1.637, allocations: 1.822 MB / 0.8705 GB, free: 76.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03237/1.669, allocations: 24.79 MB / 0.8947 GB, free: 72.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008439/1.678, allocations: 302.2 kB / 0.895 GB, free: 72.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001815/1.68, allocations: 492.6 kB / 0.8955 GB, free: 72.21 MB / 426.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.001766/1.681, allocations: 0.54 MB / 0.896 GB, free: 71.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001382/1.683, allocations: 0.6115 MB / 0.8966 GB, free: 71.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02356/1.706, allocations: 10.34 MB / 0.9067 GB, free: 68.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001178/1.706, allocations: 32.19 kB / 0.9067 GB, free: 68.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.211e-05/1.706, allocations: 21.81 kB / 0.9068 GB, free: 68.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.221e-05/1.707, allocations: 17.88 kB / 0.9068 GB, free: 68.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04039/1.747, allocations: 22.25 MB / 0.9285 GB, free: 58.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.44e-05/1.747, allocations: 5.312 kB / 0.9285 GB, free: 58.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002153/1.749, allocations: 412.6 kB / 0.9289 GB, free: 58.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01519/1.764, allocations: 4.651 MB / 0.9334 GB, free: 56.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006883/1.765, allocations: 18.12 kB / 0.9335 GB, free: 56.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03052/1.796, allocations: 23.62 MB / 0.9565 GB, free: 35.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/1.796, allocations: 11.94 kB / 0.9565 GB, free: 35.43 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1809/1.977, allocations: 17.01 MB / 0.9732 GB, free: 76.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002653/1.979, allocations: 0.6219 MB / 0.9738 GB, free: 76.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002497/1.982, allocations: 14.09 kB / 0.9738 GB, free: 76.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00386/1.986, allocations: 131.4 kB / 0.9739 GB, free: 76.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006097/1.986, allocations: 167 kB / 0.9741 GB, free: 76.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002967/1.987, allocations: 94.59 kB / 0.9741 GB, free: 76.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0072/1.994, allocations: 3.835 MB / 0.9779 GB, free: 76.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009488/2.003, allocations: 1.675 MB / 0.9795 GB, free: 76.18 MB / 426.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.0006982/2.004, allocations: 175.3 kB / 0.9797 GB, free: 76.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01592/2.02, allocations: 9.498 MB / 0.989 GB, free: 75.69 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/2.02, allocations: 3.594 kB / 0.989 GB, free: 75.69 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007727/2.028, allocations: 4.073 MB / 0.993 GB, free: 75.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006484/2.034, allocations: 0.8162 MB / 0.9937 GB, free: 75.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03907/2.073, allocations: 15.82 MB / 1.009 GB, free: 72.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009071/2.083, allocations: 6.054 MB / 1.015 GB, free: 71.62 MB / 426.7 MB Notification: Performance of SimCode: time 2.344e-06/2.083, allocations: 0 / 1.015 GB, free: 71.62 MB / 426.7 MB Notification: Performance of Templates: time 0.1389/2.222, allocations: 81.53 MB / 1.095 GB, free: 33.98 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches