Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+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.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.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/Modelica 3.1.0+maint.om/package.mo): time 0.7794/0.7794, allocations: 110.8 MB / 118 MB, free: 14.57 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002149/0.002149, allocations: 160 kB / 143.7 MB, free: 4.898 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 8.886e-06/8.917e-06, allocations: 4 kB / 173.5 MB, free: 23.03 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04679/0.04681, allocations: 25.17 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1619/0.2088, allocations: 60.15 MB / 258.8 MB, free: 12.17 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001812/0.209, allocations: 72.47 kB / 258.8 MB, free: 12.14 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.104/1.313, allocations: 267.8 MB / 0.5143 GB, free: 11.21 MB / 250.8 MB Notification: Performance of Transformations before backend: time 0.0007601/1.314, allocations: 216.5 kB / 0.5145 GB, free: 11.21 MB / 250.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3326 * Number of variables: 3326 Notification: Performance of Generate backend data structure: time 0.04509/1.359, allocations: 12.09 MB / 0.5263 GB, free: 8.398 MB / 250.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/1.359, allocations: 8.375 kB / 0.5263 GB, free: 8.398 MB / 250.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1727/1.532, allocations: 35.24 MB / 0.5608 GB, free: 6.617 MB / 250.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04267/1.575, allocations: 16.77 MB / 0.5771 GB, free: 5.148 MB / 250.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001136/1.576, allocations: 334.5 kB / 0.5774 GB, free: 5.148 MB / 250.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00724/1.583, allocations: 0.6015 MB / 0.578 GB, free: 4.719 MB / 250.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05436/1.638, allocations: 23.7 MB / 0.6012 GB, free: 7.594 MB / 266.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1702/1.808, allocations: 26.03 MB / 0.6266 GB, free: 33.12 MB / 266.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007513/1.809, allocations: 93.17 kB / 0.6267 GB, free: 33.12 MB / 266.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006455/1.815, allocations: 33.19 kB / 0.6267 GB, free: 33.12 MB / 266.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.04522/1.86, allocations: 9.117 MB / 0.6356 GB, free: 33.11 MB / 266.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6531/2.514, allocations: 149.2 MB / 0.7813 GB, free: 28.44 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009451/2.523, allocations: 7.422 MB / 0.7885 GB, free: 27.58 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007529/2.531, allocations: 6.153 MB / 0.7946 GB, free: 27.46 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09194/2.623, allocations: 32.06 MB / 0.8259 GB, free: 10.1 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.605e-05/2.623, allocations: 74.55 kB / 0.8259 GB, free: 10.02 MB / 282.8 MB Notification: Performance of pre-optimization done (n=360): time 1.026e-05/2.623, allocations: 0 / 0.8259 GB, free: 10.02 MB / 282.8 MB Notification: Performance of matching and sorting (n=469): time 0.2132/2.836, allocations: 38.67 MB / 0.8637 GB, free: 48.6 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.859e-05/2.836, allocations: 412.2 kB / 0.8641 GB, free: 48.16 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01174/2.848, allocations: 7.013 MB / 0.8709 GB, free: 47.58 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00124/2.849, allocations: 25.7 kB / 0.871 GB, free: 47.55 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003817/2.853, allocations: 5.953 MB / 0.8768 GB, free: 44.04 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002379/2.855, allocations: 1.659 MB / 0.8784 GB, free: 43.03 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001273/2.857, allocations: 0 / 0.8784 GB, free: 43.03 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.0006404/2.857, allocations: 0.7888 MB / 0.8792 GB, free: 42.7 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007856/2.865, allocations: 5.559 MB / 0.8846 GB, free: 42.68 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01238/2.878, allocations: 11.92 MB / 0.8962 GB, free: 34.48 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/2.889, allocations: 7.387 MB / 0.9035 GB, free: 34.42 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002373/2.889, allocations: 66.06 kB / 0.9035 GB, free: 34.42 MB / 282.8 MB Notification: Performance of matching and sorting (n=1506) (initialization): time 0.0416/2.931, allocations: 18.84 MB / 0.9219 GB, free: 29.08 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/2.931, allocations: 7.531 kB / 0.9219 GB, free: 29.07 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005683/2.931, allocations: 226.3 kB / 0.9221 GB, free: 29.07 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01491/2.946, allocations: 4.316 MB / 0.9264 GB, free: 27.61 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1595/3.106, allocations: 2.673 MB / 0.929 GB, free: 44.25 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008668/3.115, allocations: 7.502 MB / 0.9363 GB, free: 43.69 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01637/3.131, allocations: 1.293 MB / 0.9376 GB, free: 43.69 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002957/3.134, allocations: 0.8194 MB / 0.9384 GB, free: 43.69 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1023 * 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 (1338): * Single equations (assignments): 1325 * Array equations: 12 * 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: 0 * Non-linear torn systems: 1 {3 124} Notification: Performance of prepare postOptimizeDAE: time 0.002795/3.137, allocations: 0.6678 MB / 0.939 GB, free: 43.57 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002622/3.139, allocations: 0.7611 MB / 0.9397 GB, free: 43.57 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01719/3.157, allocations: 9.768 MB / 0.9493 GB, free: 43.36 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0104/3.167, allocations: 1.756 MB / 0.951 GB, free: 43.36 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.667e-05/3.167, allocations: 5.969 kB / 0.951 GB, free: 43.36 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.602e-05/3.167, allocations: 22.91 kB / 0.951 GB, free: 43.36 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07844/3.246, allocations: 28.39 MB / 0.9788 GB, free: 42.23 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-05/3.246, allocations: 11.12 kB / 0.9788 GB, free: 42.23 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00325/3.249, allocations: 0.5827 MB / 0.9793 GB, free: 42.23 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01329/3.262, allocations: 3.784 MB / 0.983 GB, free: 41.72 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001271/3.264, allocations: 88.92 kB / 0.9831 GB, free: 41.71 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007744/3.271, allocations: 6.653 MB / 0.9896 GB, free: 38.84 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/3.271, allocations: 16.28 kB / 0.9896 GB, free: 38.84 MB / 282.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02694/3.298, allocations: 19.98 MB / 1.009 GB, free: 28.05 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005468/3.304, allocations: 1.764 MB / 1.011 GB, free: 26.73 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002192/3.306, allocations: 16.95 kB / 1.011 GB, free: 26.72 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01089/3.317, allocations: 1.023 MB / 1.012 GB, free: 26.11 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001026/3.318, allocations: 231.2 kB / 1.012 GB, free: 25.98 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006528/3.319, allocations: 268 kB / 1.012 GB, free: 25.75 MB / 282.8 MB Notification: Performance of sort global known variables: time 0.009328/3.328, allocations: 4.872 MB / 1.017 GB, free: 21.53 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.01398/3.342, allocations: 2.076 MB / 1.019 GB, free: 19.48 MB / 282.8 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 (329): * Single equations (assignments): 317 * Array equations: 11 * 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: 0 * Non-linear torn systems: 1 {3 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.001349/3.343, allocations: 217.1 kB / 1.019 GB, free: 19.32 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.1476/3.491, allocations: 14.11 MB / 1.033 GB, free: 44.97 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/3.491, allocations: 4.406 kB / 1.033 GB, free: 44.97 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01021/3.501, allocations: 5.228 MB / 1.038 GB, free: 44.94 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006817/3.508, allocations: 0.9486 MB / 1.039 GB, free: 44.91 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05383/3.562, allocations: 21.03 MB / 1.06 GB, free: 41.32 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0204/3.582, allocations: 8.546 MB / 1.068 GB, free: 40.36 MB / 282.8 MB Notification: Performance of SimCode: time 1.693e-06/3.582, allocations: 0 / 1.068 GB, free: 40.36 MB / 282.8 MB Notification: Performance of Templates: time 0.3749/3.957, allocations: 129.1 MB / 1.194 GB, free: 22.45 MB / 282.8 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)