Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001358/0.001358, allocations: 179 kB / 8.476 MB, free: 1.855 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.212/1.212, allocations: 205.2 MB / 214.1 MB, free: 5.148 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.000846/0.000846, allocations: 89.92 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.662e-06/6.702e-06, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07706/0.07708, allocations: 47.58 MB / 362.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2814/0.3585, allocations: 108.8 MB / 471.3 MB, free: 184 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.3588, allocations: 88.58 kB / 471.4 MB, free: 140 kB / 314.7 MB Notification: Performance of FrontEnd: time 0.6454/1.004, allocations: 177.2 MB / 0.6334 GB, free: 73.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009285/1.005, allocations: 190.7 kB / 0.6336 GB, free: 73.14 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.04286/1.048, allocations: 8.985 MB / 0.6424 GB, free: 67.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/1.048, allocations: 12.03 kB / 0.6424 GB, free: 67.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08547/1.134, allocations: 16.21 MB / 0.6582 GB, free: 51.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04078/1.174, allocations: 14.76 MB / 0.6726 GB, free: 36.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000362/1.175, allocations: 279.9 kB / 0.6729 GB, free: 36.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003337/1.178, allocations: 0.5114 MB / 0.6734 GB, free: 35.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02038/1.199, allocations: 12.22 MB / 0.6853 GB, free: 23.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03712/1.236, allocations: 17.04 MB / 0.702 GB, free: 5.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008382/1.237, allocations: 103.1 kB / 0.7021 GB, free: 5.078 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004388/1.241, allocations: 40 kB / 0.7021 GB, free: 5.039 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002425/1.243, allocations: 1.743 MB / 0.7038 GB, free: 3.297 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2516/1.495, allocations: 81.12 MB / 0.783 GB, free: 72.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00674/1.502, allocations: 5.58 MB / 0.7885 GB, free: 71.38 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005326/1.507, allocations: 4.638 MB / 0.793 GB, free: 71.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02538/1.533, allocations: 16.24 MB / 0.8089 GB, free: 61.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/1.533, allocations: 72.5 kB / 0.8089 GB, free: 61.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=308): time 7.044e-06/1.533, allocations: 0 / 0.8089 GB, free: 61.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=409): time 0.0912/1.624, allocations: 35.22 MB / 0.8433 GB, free: 49.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/1.624, allocations: 402.1 kB / 0.8437 GB, free: 48.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01087/1.635, allocations: 6.029 MB / 0.8496 GB, free: 44.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009045/1.636, allocations: 28.42 kB / 0.8496 GB, free: 44.83 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002532/1.638, allocations: 4.927 MB / 0.8545 GB, free: 40.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001586/1.64, allocations: 1.436 MB / 0.8559 GB, free: 39.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005015/1.641, allocations: 3.188 kB / 0.8559 GB, free: 39.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000366/1.641, allocations: 0.6993 MB / 0.8565 GB, free: 38.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004625/1.646, allocations: 4.084 MB / 0.8605 GB, free: 34.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006274/1.652, allocations: 9.197 MB / 0.8695 GB, free: 23.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007004/1.659, allocations: 6.122 MB / 0.8755 GB, free: 18.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.834e-05/1.659, allocations: 51.38 kB / 0.8755 GB, free: 18.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.03123/1.69, allocations: 15.98 MB / 0.8911 GB, free: 5.422 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/1.69, allocations: 4.938 kB / 0.8912 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/1.691, allocations: 186.5 kB / 0.8913 GB, free: 5.242 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01521/1.706, allocations: 4.456 MB / 0.8957 GB, free: 1.914 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007487/1.713, allocations: 1.983 MB / 0.8976 GB, free: 164 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1894/1.903, allocations: 22.21 MB / 0.9193 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008968/1.912, allocations: 309.2 kB / 0.9196 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001709/1.914, allocations: 0.5258 MB / 0.9201 GB, free: 102.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 817 * 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],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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (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%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001581/1.915, allocations: 0.5687 MB / 0.9207 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001532/1.917, allocations: 0.6836 MB / 0.9213 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02149/1.938, allocations: 10.48 MB / 0.9316 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001065/1.938, allocations: 42.53 kB / 0.9316 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.876e-05/1.938, allocations: 23.19 kB / 0.9316 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.177e-05/1.938, allocations: 15.75 kB / 0.9317 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05145/1.99, allocations: 21.92 MB / 0.9531 GB, free: 94.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-05/1.99, allocations: 9.234 kB / 0.9531 GB, free: 94.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002777/1.993, allocations: 0.4958 MB / 0.9536 GB, free: 94.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01867/2.011, allocations: 3.985 MB / 0.9575 GB, free: 93.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001244/2.013, allocations: 20.72 kB / 0.9575 GB, free: 93.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04632/2.059, allocations: 19.41 MB / 0.9764 GB, free: 85.28 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.649e-05/2.059, allocations: 9 kB / 0.9764 GB, free: 85.28 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03405/2.093, allocations: 17.37 MB / 0.9934 GB, free: 74.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004363/2.098, allocations: 1.335 MB / 0.9947 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002523/2.1, allocations: 18.47 kB / 0.9947 GB, free: 73.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004818/2.105, allocations: 128.6 kB / 0.9948 GB, free: 73.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008904/2.106, allocations: 206.5 kB / 0.995 GB, free: 73.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006119/2.107, allocations: 115.2 kB / 0.9951 GB, free: 73.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.008366/2.115, allocations: 4.228 MB / 0.9993 GB, free: 69.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01323/2.128, allocations: 1.881 MB / 1.001 GB, free: 67.84 MB / 426.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 (285): * Single equations (assignments): 281 * 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%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001216/2.129, allocations: 203.2 kB / 1.001 GB, free: 67.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01511/2.145, allocations: 9.999 MB / 1.011 GB, free: 58.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.598e-05/2.145, allocations: 4.75 kB / 1.011 GB, free: 58.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006045/2.151, allocations: 4.112 MB / 1.015 GB, free: 55.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006145/2.157, allocations: 0.886 MB / 1.016 GB, free: 54.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04682/2.204, allocations: 18.1 MB / 1.034 GB, free: 38.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1619/2.366, allocations: 7.063 MB / 1.041 GB, free: 95.13 MB / 426.7 MB Notification: Performance of SimCode: time 9.22e-07/2.366, allocations: 3.094 kB / 1.041 GB, free: 95.13 MB / 426.7 MB Notification: Performance of Templates: time 0.1506/2.516, allocations: 92.54 MB / 1.131 GB, free: 68.18 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches