Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.00119/0.00119, allocations: 174.4 kB / 8.471 MB, free: 1.863 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.2 MB / 214.1 MB, free: 5.172 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009402/0.0009401, allocations: 95.64 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.352e-06/6.382e-06, allocations: 0 / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08384/0.08387, allocations: 47.57 MB / 362.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2514/0.3353, allocations: 95.48 MB / 458 MB, free: 7.457 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001825/0.3356, allocations: 89.14 kB / 458.1 MB, free: 7.445 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.5547/0.8903, allocations: 155.8 MB / 0.5995 GB, free: 70.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007108/0.891, allocations: 156.1 kB / 0.5997 GB, free: 70.81 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.0228/0.9138, allocations: 7.732 MB / 0.6072 GB, free: 67.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.9139, allocations: 11.09 kB / 0.6072 GB, free: 67.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05825/0.9721, allocations: 16.04 MB / 0.6229 GB, free: 67.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03398/1.006, allocations: 13.66 MB / 0.6362 GB, free: 65.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00054/1.007, allocations: 232.8 kB / 0.6365 GB, free: 65.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003608/1.01, allocations: 447.8 kB / 0.6369 GB, free: 65.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.019/1.029, allocations: 9.947 MB / 0.6466 GB, free: 58.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03384/1.063, allocations: 14.74 MB / 0.661 GB, free: 44.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007578/1.064, allocations: 109.1 kB / 0.6611 GB, free: 44.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003175/1.067, allocations: 40 kB / 0.6611 GB, free: 44.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002423/1.07, allocations: 1.628 MB / 0.6627 GB, free: 43.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2607/1.331, allocations: 74.27 MB / 0.7352 GB, free: 76.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006507/1.337, allocations: 5.574 MB / 0.7407 GB, free: 75.62 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005015/1.342, allocations: 4.613 MB / 0.7452 GB, free: 75.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02153/1.364, allocations: 13.75 MB / 0.7586 GB, free: 72.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.412e-05/1.364, allocations: 64 kB / 0.7587 GB, free: 71.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 5.089e-06/1.364, allocations: 0 / 0.7587 GB, free: 71.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.09307/1.457, allocations: 35.35 MB / 0.7932 GB, free: 64.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.382e-05/1.457, allocations: 403.1 kB / 0.7936 GB, free: 63.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/1.468, allocations: 5.558 MB / 0.799 GB, free: 61.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007743/1.469, allocations: 26.95 kB / 0.799 GB, free: 61.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003651/1.472, allocations: 4.39 MB / 0.8033 GB, free: 58.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002376/1.475, allocations: 1.202 MB / 0.8045 GB, free: 57.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00158/1.476, allocations: 3.031 kB / 0.8045 GB, free: 57.81 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007965/1.477, allocations: 0.6669 MB / 0.8052 GB, free: 57.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005538/1.483, allocations: 3.727 MB / 0.8088 GB, free: 55.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007407/1.49, allocations: 8.484 MB / 0.8171 GB, free: 48.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007428/1.498, allocations: 5.55 MB / 0.8225 GB, free: 46.37 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001821/1.498, allocations: 47.94 kB / 0.8226 GB, free: 46.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.03489/1.533, allocations: 15.34 MB / 0.8375 GB, free: 34.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/1.533, allocations: 7.469 kB / 0.8375 GB, free: 34.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003281/1.533, allocations: 168 kB / 0.8377 GB, free: 34.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01607/1.549, allocations: 5.002 MB / 0.8426 GB, free: 31.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006258/1.556, allocations: 1.812 MB / 0.8444 GB, free: 29.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03247/1.588, allocations: 24.86 MB / 0.8686 GB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008806/1.597, allocations: 300 kB / 0.8689 GB, free: 7.547 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002341/1.599, allocations: 495.5 kB / 0.8694 GB, free: 7.07 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.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 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[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 {(7,55.1%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003383/1.603, allocations: 0.5351 MB / 0.8699 GB, free: 6.535 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002071/1.605, allocations: 0.6209 MB / 0.8705 GB, free: 5.906 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1644/1.769, allocations: 10.8 MB / 0.8811 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.053e-05/1.769, allocations: 30.22 kB / 0.8811 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.385e-05/1.769, allocations: 19.53 kB / 0.8811 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.889e-05/1.77, allocations: 21.33 kB / 0.8811 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04663/1.816, allocations: 22.28 MB / 0.9029 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.302e-05/1.816, allocations: 9.594 kB / 0.9029 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/1.818, allocations: 403.4 kB / 0.9033 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01524/1.834, allocations: 4.646 MB / 0.9078 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007914/1.835, allocations: 15.38 kB / 0.9078 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02985/1.864, allocations: 23.63 MB / 0.9309 GB, free: 95.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/1.864, allocations: 10.38 kB / 0.9309 GB, free: 95.07 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02572/1.89, allocations: 16.39 MB / 0.9469 GB, free: 88.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003352/1.894, allocations: 1.218 MB / 0.9481 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/1.895, allocations: 11.44 kB / 0.9481 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003/1.898, allocations: 134.3 kB / 0.9483 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004291/1.898, allocations: 164.2 kB / 0.9484 GB, free: 88.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002833/1.899, allocations: 91.59 kB / 0.9485 GB, free: 88.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.006975/1.906, allocations: 3.903 MB / 0.9523 GB, free: 86.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009083/1.915, allocations: 1.683 MB / 0.954 GB, free: 86.68 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.0007289/1.915, allocations: 173.4 kB / 0.9541 GB, free: 86.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0144/1.93, allocations: 9.473 MB / 0.9634 GB, free: 83.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/1.93, allocations: 2.734 kB / 0.9634 GB, free: 83.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006478/1.936, allocations: 4.083 MB / 0.9674 GB, free: 81.67 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005009/1.941, allocations: 0.8254 MB / 0.9682 GB, free: 81.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03453/1.976, allocations: 15.91 MB / 0.9837 GB, free: 67.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01081/1.987, allocations: 6.076 MB / 0.9896 GB, free: 63.33 MB / 426.7 MB Notification: Performance of SimCode: time 9.42e-07/1.987, allocations: 0 / 0.9896 GB, free: 63.33 MB / 426.7 MB Notification: Performance of Templates: time 0.2931/2.28, allocations: 81.57 MB / 1.069 GB, free: 94.77 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches