Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009534/0.0009535, allocations: 184.2 kB / 8.138 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.132/1.132, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.001008/0.001008, allocations: 106.8 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.335e-06/8.365e-06, allocations: 8 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2038, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.3061, allocations: 98.93 MB / 485.8 MB, free: 3.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.3063, allocations: 83.95 kB / 485.9 MB, free: 3.758 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5168/0.8231, allocations: 162.3 MB / 0.633 GB, free: 5.863 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005855/0.8237, allocations: 168 kB / 0.6332 GB, free: 5.699 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.0235/0.8472, allocations: 8.009 MB / 0.641 GB, free: 13.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.8473, allocations: 11.97 kB / 0.641 GB, free: 13.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2003/1.048, allocations: 16.12 MB / 0.6568 GB, free: 87.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02975/1.077, allocations: 12.95 MB / 0.6694 GB, free: 87.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/1.078, allocations: 240.5 kB / 0.6696 GB, free: 87.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002959/1.081, allocations: 468.6 kB / 0.6701 GB, free: 87.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01822/1.099, allocations: 10.35 MB / 0.6802 GB, free: 87.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.029/1.128, allocations: 15.26 MB / 0.6951 GB, free: 83.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006664/1.129, allocations: 113 kB / 0.6952 GB, free: 83.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002783/1.132, allocations: 40.59 kB / 0.6953 GB, free: 83.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002341/1.134, allocations: 1.678 MB / 0.6969 GB, free: 83.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09093/1.225, allocations: 75.97 MB / 0.7711 GB, free: 37.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00717/1.232, allocations: 5.81 MB / 0.7768 GB, free: 34.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005417/1.238, allocations: 4.728 MB / 0.7814 GB, free: 32.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02602/1.264, allocations: 14.07 MB / 0.7951 GB, free: 22.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.98e-05/1.264, allocations: 67.47 kB / 0.7952 GB, free: 22.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=294): time 7.585e-06/1.264, allocations: 0 / 0.7952 GB, free: 22.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=361): time 0.2682/1.532, allocations: 36.88 MB / 0.8312 GB, free: 82.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/1.532, allocations: 400 kB / 0.8316 GB, free: 81.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008893/1.541, allocations: 5.617 MB / 0.8371 GB, free: 81.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007736/1.542, allocations: 28.98 kB / 0.8371 GB, free: 81.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002551/1.544, allocations: 4.523 MB / 0.8415 GB, free: 78.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001574/1.546, allocations: 1.273 MB / 0.8427 GB, free: 78.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004448/1.546, allocations: 6.875 kB / 0.8427 GB, free: 78.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003773/1.547, allocations: 0.6791 MB / 0.8434 GB, free: 77.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004553/1.551, allocations: 3.878 MB / 0.8472 GB, free: 77.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006596/1.558, allocations: 8.751 MB / 0.8557 GB, free: 71.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00697/1.565, allocations: 5.746 MB / 0.8614 GB, free: 71.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001029/1.565, allocations: 45.53 kB / 0.8614 GB, free: 71.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.03449/1.6, allocations: 15.98 MB / 0.877 GB, free: 70.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/1.6, allocations: 3.438 kB / 0.877 GB, free: 70.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002659/1.6, allocations: 170.3 kB / 0.8772 GB, free: 70.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01693/1.617, allocations: 5.277 MB / 0.8823 GB, free: 70.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006389/1.623, allocations: 1.865 MB / 0.8841 GB, free: 70.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03276/1.656, allocations: 25.81 MB / 0.9093 GB, free: 63.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007499/1.664, allocations: 311.8 kB / 0.9096 GB, free: 63.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001373/1.665, allocations: 0.4915 MB / 0.9101 GB, free: 63.17 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: 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.001367/1.666, allocations: 0.5529 MB / 0.9107 GB, free: 62.72 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/1.668, allocations: 0.6372 MB / 0.9113 GB, free: 62.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02177/1.689, allocations: 10.92 MB / 0.922 GB, free: 58.92 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-05/1.69, allocations: 34.03 kB / 0.922 GB, free: 58.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.807e-05/1.69, allocations: 18.09 kB / 0.922 GB, free: 58.92 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-05/1.69, allocations: 15.09 kB / 0.922 GB, free: 58.92 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04047/1.73, allocations: 23.31 MB / 0.9448 GB, free: 42.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.469e-05/1.73, allocations: 8 kB / 0.9448 GB, free: 42.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002403/1.733, allocations: 437.8 kB / 0.9452 GB, free: 41.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0166/1.749, allocations: 4.937 MB / 0.95 GB, free: 38.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006566/1.75, allocations: 13.22 kB / 0.95 GB, free: 38.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1746/1.925, allocations: 25.3 MB / 0.9747 GB, free: 73.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/1.925, allocations: 10.66 kB / 0.9748 GB, free: 73.34 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02925/1.954, allocations: 17.2 MB / 0.9916 GB, free: 71.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003893/1.958, allocations: 1.261 MB / 0.9928 GB, free: 71.28 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002386/1.96, allocations: 7.688 kB / 0.9928 GB, free: 71.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00497/1.965, allocations: 145.5 kB / 0.9929 GB, free: 71.28 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007778/1.966, allocations: 175.3 kB / 0.9931 GB, free: 71.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003468/1.966, allocations: 99.05 kB / 0.9932 GB, free: 71.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.006686/1.973, allocations: 3.936 MB / 0.997 GB, free: 71.06 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01026/1.983, allocations: 1.757 MB / 0.9987 GB, free: 71.06 MB / 426.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.0008642/1.984, allocations: 168.6 kB / 0.9989 GB, free: 70.97 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01508/1.999, allocations: 9.89 MB / 1.009 GB, free: 70.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/1.999, allocations: 3.375 kB / 1.009 GB, free: 70.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007386/2.007, allocations: 4.32 MB / 1.013 GB, free: 70.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004971/2.012, allocations: 0.8374 MB / 1.014 GB, free: 70.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03871/2.051, allocations: 16.5 MB / 1.03 GB, free: 67.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01144/2.062, allocations: 6.278 MB / 1.036 GB, free: 66.15 MB / 426.7 MB Notification: Performance of SimCode: time 1.382e-06/2.062, allocations: 0 / 1.036 GB, free: 66.15 MB / 426.7 MB Notification: Performance of Templates: time 0.3374/2.399, allocations: 86.04 MB / 1.12 GB, free: 69.07 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches