Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.003704/0.003704, allocations: 177.3 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.353/1.353, allocations: 170.6 MB / 178.4 MB, free: 15.71 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001643/0.001643, allocations: 107.9 kB / 217.7 MB, free: 8.496 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.015e-06/8.045e-06, allocations: 4 kB / 261.7 MB, free: 26.69 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09207, allocations: 38.77 MB / 300.5 MB, free: 3.93 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3103/0.4024, allocations: 97.35 MB / 397.9 MB, free: 3.543 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.4028, allocations: 89.56 kB / 397.9 MB, free: 3.496 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.6826/1.085, allocations: 175.9 MB / 0.5603 GB, free: 20.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001402/1.087, allocations: 184 kB / 0.5605 GB, free: 20.5 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.03948/1.126, allocations: 8.993 MB / 0.5693 GB, free: 11.44 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.082e-05/1.126, allocations: 8.031 kB / 0.5693 GB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06475/1.191, allocations: 16.21 MB / 0.5851 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2403/1.432, allocations: 14.75 MB / 0.5995 GB, free: 76.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005534/1.432, allocations: 276.2 kB / 0.5998 GB, free: 76.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004972/1.437, allocations: 0.5109 MB / 0.6003 GB, free: 76.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02942/1.467, allocations: 12.22 MB / 0.6122 GB, free: 76.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04777/1.515, allocations: 17.02 MB / 0.6289 GB, free: 72.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007838/1.515, allocations: 116.6 kB / 0.629 GB, free: 72.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003642/1.519, allocations: 37.41 kB / 0.629 GB, free: 72.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002518/1.522, allocations: 1.741 MB / 0.6307 GB, free: 72.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1225/1.644, allocations: 81.09 MB / 0.7099 GB, free: 22.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007718/1.652, allocations: 5.585 MB / 0.7154 GB, free: 19.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005801/1.658, allocations: 4.643 MB / 0.7199 GB, free: 17.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02891/1.687, allocations: 16.27 MB / 0.7358 GB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.142e-05/1.687, allocations: 73.42 kB / 0.7358 GB, free: 3.418 MB / 362.7 MB Notification: Performance of pre-optimization done (n=308): time 6.822e-06/1.687, allocations: 0 / 0.7358 GB, free: 3.418 MB / 362.7 MB Notification: Performance of matching and sorting (n=409): time 0.2947/1.981, allocations: 35.25 MB / 0.7703 GB, free: 70.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/1.982, allocations: 407.6 kB / 0.7707 GB, free: 70.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0147/1.996, allocations: 6.017 MB / 0.7765 GB, free: 69.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001161/1.998, allocations: 30.42 kB / 0.7766 GB, free: 69.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004136/2.002, allocations: 4.913 MB / 0.7814 GB, free: 67.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002364/2.004, allocations: 1.437 MB / 0.7828 GB, free: 66.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006879/2.005, allocations: 2.156 kB / 0.7828 GB, free: 66.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004924/2.005, allocations: 0.7058 MB / 0.7835 GB, free: 65.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005692/2.011, allocations: 4.087 MB / 0.7875 GB, free: 65.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008418/2.019, allocations: 9.204 MB / 0.7964 GB, free: 59.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/2.03, allocations: 6.118 MB / 0.8024 GB, free: 59.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002186/2.031, allocations: 54.47 kB / 0.8025 GB, free: 59.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.04147/2.072, allocations: 15.98 MB / 0.8181 GB, free: 55.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/2.072, allocations: 4.594 kB / 0.8181 GB, free: 55.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000849/2.073, allocations: 179.8 kB / 0.8182 GB, free: 55.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01664/2.09, allocations: 4.455 MB / 0.8226 GB, free: 54.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007909/2.098, allocations: 1.982 MB / 0.8245 GB, free: 54.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03779/2.135, allocations: 22.21 MB / 0.8462 GB, free: 38.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01083/2.146, allocations: 307.6 kB / 0.8465 GB, free: 38.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002935/2.149, allocations: 0.5228 MB / 0.847 GB, free: 37.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * Number of states: 0 () * Number of discrete variables: 70 (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.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 (1086): * Single equations (assignments): 1081 * 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.004656/2.154, allocations: 0.5656 MB / 0.8476 GB, free: 37.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002781/2.157, allocations: 0.6826 MB / 0.8482 GB, free: 36.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2378/2.395, allocations: 10.51 MB / 0.8585 GB, free: 64.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001317/2.395, allocations: 39 kB / 0.8585 GB, free: 64.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.8e-05/2.395, allocations: 25.94 kB / 0.8586 GB, free: 64.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.081e-05/2.395, allocations: 23.12 kB / 0.8586 GB, free: 64.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05053/2.445, allocations: 21.92 MB / 0.88 GB, free: 63.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.672e-05/2.446, allocations: 7.719 kB / 0.88 GB, free: 63.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002967/2.449, allocations: 0.5071 MB / 0.8805 GB, free: 63.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01413/2.463, allocations: 3.978 MB / 0.8844 GB, free: 63.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009333/2.464, allocations: 16.94 kB / 0.8844 GB, free: 63.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03021/2.494, allocations: 19.4 MB / 0.9034 GB, free: 61.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.441e-05/2.494, allocations: 19.28 kB / 0.9034 GB, free: 61.8 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0309/2.525, allocations: 17.39 MB / 0.9204 GB, free: 54.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004603/2.53, allocations: 1.336 MB / 0.9217 GB, free: 54.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002355/2.532, allocations: 13.08 kB / 0.9217 GB, free: 54.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005446/2.537, allocations: 123.7 kB / 0.9218 GB, free: 54.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001281/2.539, allocations: 218.4 kB / 0.922 GB, free: 53.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008255/2.54, allocations: 115.4 kB / 0.9221 GB, free: 53.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0117/2.551, allocations: 4.22 MB / 0.9262 GB, free: 52.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01599/2.567, allocations: 1.874 MB / 0.9281 GB, free: 52.48 MB / 362.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.001718/2.569, allocations: 207 kB / 0.9283 GB, free: 52.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01904/2.588, allocations: 10.01 MB / 0.938 GB, free: 48.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.528e-05/2.588, allocations: 0 / 0.938 GB, free: 48.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007763/2.596, allocations: 4.122 MB / 0.9421 GB, free: 47.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008416/2.604, allocations: 0.8775 MB / 0.9429 GB, free: 46.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06646/2.671, allocations: 18.08 MB / 0.9606 GB, free: 31.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02066/2.692, allocations: 6.981 MB / 0.9674 GB, free: 26.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.783e-06/2.692, allocations: 0 / 0.9674 GB, free: 26.5 MB / 362.7 MB Notification: Performance of Templates: time 0.4552/3.147, allocations: 92.57 MB / 1.058 GB, free: 43.89 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)