Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001873/0.001873, allocations: 192.3 kB / 8.14 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.114/1.114, allocations: 194.2 MB / 202.8 MB, free: 8.812 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00177/0.00177, allocations: 120.3 kB / 247.8 MB, free: 6.223 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.701e-06/5.721e-06, allocations: 0 / 297.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07442/0.07445, allocations: 44.48 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2046/0.2791, allocations: 89.92 MB / 432 MB, free: 5.445 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001884/0.2793, allocations: 83.14 kB / 432.1 MB, free: 5.402 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.5405/0.8199, allocations: 154.4 MB / 0.5727 GB, free: 67.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007094/0.8206, allocations: 162.6 kB / 0.5729 GB, free: 67.86 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: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.02357/0.8442, allocations: 7.723 MB / 0.5804 GB, free: 64.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.8443, allocations: 9.156 kB / 0.5804 GB, free: 64.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0633/0.9076, allocations: 16.04 MB / 0.5961 GB, free: 57.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0311/0.9387, allocations: 13.64 MB / 0.6094 GB, free: 50.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000395/0.9391, allocations: 230.4 kB / 0.6096 GB, free: 50.14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002818/0.942, allocations: 443.7 kB / 0.6101 GB, free: 49.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01661/0.9586, allocations: 9.949 MB / 0.6198 GB, free: 39.76 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02581/0.9844, allocations: 14.72 MB / 0.6342 GB, free: 23.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000524/0.985, allocations: 107 kB / 0.6343 GB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002079/0.9871, allocations: 40 kB / 0.6343 GB, free: 23.58 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002033/0.9892, allocations: 1.631 MB / 0.6359 GB, free: 21.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1911/1.18, allocations: 74.17 MB / 0.7083 GB, free: 69.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00654/1.187, allocations: 5.585 MB / 0.7138 GB, free: 69.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005365/1.192, allocations: 4.602 MB / 0.7183 GB, free: 69.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02208/1.214, allocations: 13.74 MB / 0.7317 GB, free: 62.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.7e-05/1.214, allocations: 70.19 kB / 0.7317 GB, free: 62.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=280): time 7.133e-06/1.214, allocations: 0 / 0.7317 GB, free: 62.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=340): time 0.1023/1.317, allocations: 35.47 MB / 0.7664 GB, free: 50.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/1.317, allocations: 396 kB / 0.7668 GB, free: 50.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01218/1.329, allocations: 5.534 MB / 0.7722 GB, free: 48.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000758/1.33, allocations: 29.17 kB / 0.7722 GB, free: 48.13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003042/1.333, allocations: 4.378 MB / 0.7765 GB, free: 44.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001638/1.335, allocations: 1.211 MB / 0.7777 GB, free: 44.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/1.336, allocations: 3.938 kB / 0.7777 GB, free: 44.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0008511/1.337, allocations: 0.6609 MB / 0.7783 GB, free: 43.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005592/1.342, allocations: 3.717 MB / 0.7819 GB, free: 42.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007636/1.35, allocations: 8.461 MB / 0.7902 GB, free: 34.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008597/1.358, allocations: 5.537 MB / 0.7956 GB, free: 31.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002301/1.359, allocations: 48 kB / 0.7956 GB, free: 31.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=1105) (initialization): time 0.03506/1.394, allocations: 15.32 MB / 0.8106 GB, free: 18.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/1.394, allocations: 4.188 kB / 0.8106 GB, free: 18.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003052/1.394, allocations: 172 kB / 0.8108 GB, free: 18.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01759/1.412, allocations: 4.986 MB / 0.8156 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006935/1.419, allocations: 1.814 MB / 0.8174 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.161/1.58, allocations: 25.09 MB / 0.8419 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007841/1.588, allocations: 299.3 kB / 0.8422 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00151/1.589, allocations: 486.1 kB / 0.8427 GB, free: 100.6 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: 761 * Number of states: 0 () * Number of discrete variables: 63 (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],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],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 (969): * Single equations (assignments): 963 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001532/1.591, allocations: 0.5448 MB / 0.8432 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0015/1.592, allocations: 0.6165 MB / 0.8438 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02307/1.615, allocations: 10.33 MB / 0.8539 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-05/1.615, allocations: 33.84 kB / 0.8539 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.974e-05/1.615, allocations: 17.69 kB / 0.8539 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.457e-05/1.616, allocations: 15.94 kB / 0.854 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.042/1.658, allocations: 22.27 MB / 0.8757 GB, free: 95.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.853e-05/1.658, allocations: 5.031 kB / 0.8757 GB, free: 95.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/1.66, allocations: 397.8 kB / 0.8761 GB, free: 95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01609/1.676, allocations: 4.659 MB / 0.8806 GB, free: 94.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006677/1.676, allocations: 10.56 kB / 0.8806 GB, free: 94.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03141/1.708, allocations: 23.63 MB / 0.9037 GB, free: 83.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.294e-05/1.708, allocations: 11.19 kB / 0.9037 GB, free: 83.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02978/1.738, allocations: 16.36 MB / 0.9197 GB, free: 76.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004212/1.742, allocations: 1.227 MB / 0.9209 GB, free: 75.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002276/1.744, allocations: 10.84 kB / 0.9209 GB, free: 75.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004205/1.749, allocations: 133.6 kB / 0.921 GB, free: 75.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006815/1.749, allocations: 170.3 kB / 0.9212 GB, free: 75.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004526/1.75, allocations: 92.78 kB / 0.9213 GB, free: 75.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.007357/1.757, allocations: 3.883 MB / 0.9251 GB, free: 74.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01047/1.768, allocations: 1.677 MB / 0.9267 GB, free: 74.44 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.001033/1.769, allocations: 166.5 kB / 0.9269 GB, free: 74.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01543/1.784, allocations: 9.466 MB / 0.9361 GB, free: 67.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/1.784, allocations: 4 kB / 0.9361 GB, free: 67.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007235/1.791, allocations: 4.068 MB / 0.9401 GB, free: 63.49 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005585/1.797, allocations: 0.8103 MB / 0.9409 GB, free: 62.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03897/1.836, allocations: 15.88 MB / 0.9564 GB, free: 48.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01046/1.846, allocations: 6.063 MB / 0.9623 GB, free: 44.17 MB / 410.7 MB Notification: Performance of SimCode: time 9.61e-07/1.846, allocations: 8 kB / 0.9623 GB, free: 44.16 MB / 410.7 MB Notification: Performance of Templates: time 0.3309/2.177, allocations: 81.5 MB / 1.042 GB, free: 84.66 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)