Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.000985/0.0009851, allocations: 181.9 kB / 8.132 MB, free: 2.191 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.148/1.148, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009261/0.0009261, allocations: 88.95 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.561e-06/5.591e-06, allocations: 0 / 336.5 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.1797, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.292, allocations: 111 MB / 497.9 MB, free: 7.746 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.2923, allocations: 87.08 kB / 498 MB, free: 7.664 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.7217/1.014, allocations: 178.9 MB / 0.661 GB, free: 43.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006164/1.015, allocations: 191.3 kB / 0.6612 GB, free: 43.93 MB / 426.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.02565/1.04, allocations: 8.952 MB / 0.67 GB, free: 40.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/1.04, allocations: 11.59 kB / 0.67 GB, free: 40.95 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05819/1.099, allocations: 16.2 MB / 0.6858 GB, free: 40.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0315/1.13, allocations: 13.79 MB / 0.6993 GB, free: 39.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004094/1.131, allocations: 275.9 kB / 0.6995 GB, free: 39.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003353/1.134, allocations: 0.5149 MB / 0.7 GB, free: 39.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02104/1.155, allocations: 12.22 MB / 0.712 GB, free: 39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.034/1.189, allocations: 17.04 MB / 0.7286 GB, free: 35.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005373/1.19, allocations: 110 kB / 0.7287 GB, free: 35.37 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002442/1.192, allocations: 39.61 kB / 0.7287 GB, free: 35.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002195/1.194, allocations: 1.738 MB / 0.7304 GB, free: 35.35 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09625/1.291, allocations: 80.95 MB / 0.8095 GB, free: 3.129 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01503/1.306, allocations: 6.272 MB / 0.8156 GB, free: 15.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005927/1.312, allocations: 4.638 MB / 0.8201 GB, free: 11.3 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.165/1.477, allocations: 16.22 MB / 0.836 GB, free: 116.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/1.477, allocations: 69.67 kB / 0.8361 GB, free: 116.1 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 6.452e-06/1.477, allocations: 0 / 0.8361 GB, free: 116.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=420): time 0.1001/1.577, allocations: 37.39 MB / 0.8726 GB, free: 111.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/1.577, allocations: 403.3 kB / 0.873 GB, free: 111.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00864/1.586, allocations: 5.929 MB / 0.8787 GB, free: 110.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000807/1.586, allocations: 28.89 kB / 0.8788 GB, free: 110.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002628/1.589, allocations: 4.905 MB / 0.8836 GB, free: 108.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001741/1.591, allocations: 1.47 MB / 0.885 GB, free: 107.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006067/1.591, allocations: 0 / 0.885 GB, free: 107.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003894/1.592, allocations: 0.7086 MB / 0.8857 GB, free: 107.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005032/1.597, allocations: 4.224 MB / 0.8898 GB, free: 107.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007389/1.604, allocations: 9.304 MB / 0.8989 GB, free: 100.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007712/1.612, allocations: 6.258 MB / 0.905 GB, free: 100.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.673e-05/1.612, allocations: 49.97 kB / 0.9051 GB, free: 100.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=1245) (initialization): time 0.03269/1.645, allocations: 16.45 MB / 0.9211 GB, free: 100.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/1.645, allocations: 11.73 kB / 0.9211 GB, free: 100.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002599/1.645, allocations: 176.9 kB / 0.9213 GB, free: 100.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01697/1.662, allocations: 4.661 MB / 0.9259 GB, free: 99.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007146/1.669, allocations: 1.994 MB / 0.9278 GB, free: 99.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03214/1.702, allocations: 23.37 MB / 0.9506 GB, free: 87.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00838/1.71, allocations: 309.9 kB / 0.9509 GB, free: 86.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001866/1.712, allocations: 0.5307 MB / 0.9514 GB, free: 86.33 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 811 * 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],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 (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%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001571/1.713, allocations: 0.5699 MB / 0.952 GB, free: 85.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/1.715, allocations: 0.6825 MB / 0.9527 GB, free: 85.08 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02211/1.737, allocations: 11.03 MB / 0.9634 GB, free: 76.29 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.59e-05/1.737, allocations: 36 kB / 0.9635 GB, free: 76.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.702e-05/1.737, allocations: 27.28 kB / 0.9635 GB, free: 76.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.255e-05/1.737, allocations: 20.11 kB / 0.9635 GB, free: 76.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04775/1.785, allocations: 23.25 MB / 0.9862 GB, free: 57.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-05/1.785, allocations: 11.94 kB / 0.9862 GB, free: 57.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003046/1.788, allocations: 0.5425 MB / 0.9868 GB, free: 56.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01536/1.803, allocations: 4.261 MB / 0.9909 GB, free: 53.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008115/1.804, allocations: 14.06 kB / 0.9909 GB, free: 53.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1985/2.003, allocations: 20.79 MB / 1.011 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.576e-05/2.003, allocations: 18.34 kB / 1.011 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03089/2.034, allocations: 18.3 MB / 1.029 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005005/2.039, allocations: 1.365 MB / 1.03 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002158/2.041, allocations: 15.64 kB / 1.03 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004568/2.046, allocations: 132.7 kB / 1.031 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006123/2.046, allocations: 216.5 kB / 1.031 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003702/2.047, allocations: 115.6 kB / 1.031 GB, free: 102.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.007371/2.054, allocations: 4.153 MB / 1.035 GB, free: 102.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01064/2.065, allocations: 1.902 MB / 1.037 GB, free: 102.3 MB / 474.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 (291): * Single equations (assignments): 287 * 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%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001/2.066, allocations: 209.2 kB / 1.037 GB, free: 102.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01506/2.081, allocations: 10.38 MB / 1.047 GB, free: 102 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.584e-05/2.081, allocations: 3.188 kB / 1.047 GB, free: 102 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006845/2.088, allocations: 4.358 MB / 1.051 GB, free: 101.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008153/2.096, allocations: 0.8889 MB / 1.052 GB, free: 101.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04543/2.141, allocations: 18.22 MB / 1.07 GB, free: 98.65 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01172/2.153, allocations: 6.978 MB / 1.077 GB, free: 97.72 MB / 474.7 MB Notification: Performance of SimCode: time 2.214e-06/2.153, allocations: 0 / 1.077 GB, free: 97.72 MB / 474.7 MB Notification: Performance of Templates: time 0.156/2.309, allocations: 95.36 MB / 1.17 GB, free: 49 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches