Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002601/0.002601, allocations: 187.7 kB / 8.153 MB, free: 2.184 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.792/1.792, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001246/0.001245, allocations: 96.27 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.276e-05/1.29e-05, allocations: 4 kB / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2499, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1519/0.4018, allocations: 95.48 MB / 457.3 MB, free: 6.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.4022, allocations: 83.95 kB / 457.4 MB, free: 6.477 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.8282/1.23, allocations: 155.8 MB / 0.5988 GB, free: 41.07 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000772/1.231, allocations: 162.4 kB / 0.599 GB, free: 40.92 MB / 394.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.03339/1.265, allocations: 7.732 MB / 0.6066 GB, free: 33.13 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/1.265, allocations: 8.031 kB / 0.6066 GB, free: 33.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1091/1.374, allocations: 16.05 MB / 0.6222 GB, free: 17.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04731/1.421, allocations: 13.65 MB / 0.6356 GB, free: 3.426 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004691/1.422, allocations: 232 kB / 0.6358 GB, free: 3.199 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003794/1.426, allocations: 451.6 kB / 0.6362 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02885/1.454, allocations: 9.944 MB / 0.6459 GB, free: 8.805 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2128/1.667, allocations: 14.73 MB / 0.6603 GB, free: 97.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000729/1.668, allocations: 115.2 kB / 0.6604 GB, free: 97.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003136/1.671, allocations: 42.62 kB / 0.6605 GB, free: 97.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003906/1.675, allocations: 1.624 MB / 0.662 GB, free: 97.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.158/1.833, allocations: 74.27 MB / 0.7346 GB, free: 57.56 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01688/1.85, allocations: 5.577 MB / 0.74 GB, free: 54.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01358/1.864, allocations: 4.615 MB / 0.7445 GB, free: 52.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05271/1.917, allocations: 13.74 MB / 0.7579 GB, free: 45.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001186/1.917, allocations: 60.09 kB / 0.758 GB, free: 45.33 MB / 410.7 MB Notification: Performance of pre-optimization done (n=280): time 1.219e-05/1.917, allocations: 0 / 0.758 GB, free: 45.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=340): time 0.2705/2.187, allocations: 35.35 MB / 0.7925 GB, free: 30.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/2.188, allocations: 405.8 kB / 0.7929 GB, free: 30.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01979/2.208, allocations: 5.558 MB / 0.7983 GB, free: 25.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0012/2.209, allocations: 29.7 kB / 0.7984 GB, free: 25.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004976/2.214, allocations: 4.078 MB / 0.8024 GB, free: 21.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003069/2.217, allocations: 1.213 MB / 0.8035 GB, free: 20.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/2.218, allocations: 3.469 kB / 0.8035 GB, free: 20.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00106/2.22, allocations: 0.6669 MB / 0.8042 GB, free: 19.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01371/2.233, allocations: 3.721 MB / 0.8078 GB, free: 16.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01822/2.252, allocations: 8.492 MB / 0.8161 GB, free: 6.086 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01829/2.27, allocations: 5.551 MB / 0.8215 GB, free: 1.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001995/2.27, allocations: 48 kB / 0.8216 GB, free: 1.273 MB / 410.7 MB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.3018/2.572, allocations: 15.37 MB / 0.8366 GB, free: 95.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/2.572, allocations: 5.797 kB / 0.8366 GB, free: 95.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004178/2.573, allocations: 175.6 kB / 0.8368 GB, free: 95.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04541/2.618, allocations: 4.766 MB / 0.8414 GB, free: 95.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01781/2.636, allocations: 1.808 MB / 0.8432 GB, free: 95.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0935/2.729, allocations: 25.56 MB / 0.8681 GB, free: 91.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01451/2.744, allocations: 292 kB / 0.8684 GB, free: 91.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002835/2.747, allocations: 490.5 kB / 0.8689 GB, free: 91.41 MB / 410.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 {(5,68.0%) 96,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003584/2.751, allocations: 481.7 kB / 0.8694 GB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002451/2.753, allocations: 0.6169 MB / 0.87 GB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06653/2.82, allocations: 10.34 MB / 0.8801 GB, free: 89.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001834/2.82, allocations: 31.53 kB / 0.8801 GB, free: 89.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.289e-05/2.82, allocations: 18.91 kB / 0.8801 GB, free: 89.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001216/2.82, allocations: 15.83 kB / 0.8801 GB, free: 89.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1237/2.944, allocations: 22.3 MB / 0.9019 GB, free: 80.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.364e-05/2.944, allocations: 9.812 kB / 0.9019 GB, free: 80.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006245/2.95, allocations: 400.1 kB / 0.9023 GB, free: 80.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04694/2.997, allocations: 4.653 MB / 0.9068 GB, free: 77.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00124/2.998, allocations: 13.97 kB / 0.9068 GB, free: 77.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0902/3.089, allocations: 23.63 MB / 0.9299 GB, free: 57.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.091e-05/3.089, allocations: 11.94 kB / 0.9299 GB, free: 57.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08027/3.169, allocations: 16.38 MB / 0.9459 GB, free: 43.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005525/3.175, allocations: 1.218 MB / 0.9471 GB, free: 41.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002573/3.177, allocations: 19.75 kB / 0.9471 GB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006904/3.184, allocations: 136.5 kB / 0.9473 GB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001181/3.185, allocations: 165.8 kB / 0.9474 GB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004659/3.186, allocations: 99.31 kB / 0.9475 GB, free: 41.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.01059/3.197, allocations: 3.903 MB / 0.9513 GB, free: 38.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01245/3.209, allocations: 1.675 MB / 0.953 GB, free: 36.63 MB / 410.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.001245/3.21, allocations: 169.8 kB / 0.9531 GB, free: 36.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1998/3.41, allocations: 9.454 MB / 0.9624 GB, free: 91.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-05/3.41, allocations: 4.5 kB / 0.9624 GB, free: 91.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01361/3.424, allocations: 4.075 MB / 0.9663 GB, free: 91.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009026/3.433, allocations: 0.8239 MB / 0.9671 GB, free: 91.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05994/3.493, allocations: 16.78 MB / 0.9835 GB, free: 88.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01808/3.511, allocations: 6.133 MB / 0.9895 GB, free: 87.57 MB / 410.7 MB Notification: Performance of SimCode: time 2.365e-06/3.511, allocations: 2.812 kB / 0.9895 GB, free: 87.57 MB / 410.7 MB Notification: Performance of Templates: time 0.5417/4.053, allocations: 200.9 MB / 1.186 GB, free: 60.7 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches