Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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/Modelica 3.1.0+maint.om/package.mo): time 0.7939/0.7939, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001813/0.001813, allocations: 164 kB / 143.7 MB, free: 4.883 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.604e-06/7.634e-06, allocations: 0 / 173.5 MB, free: 23.03 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0423/0.04233, allocations: 25.17 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.1783, allocations: 49.29 MB / 247.9 MB, free: 2.59 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/0.1785, allocations: 74.14 kB / 248 MB, free: 2.578 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.8891/1.068, allocations: 260.5 MB / 0.4965 GB, free: 12.8 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0009643/1.069, allocations: 192 kB / 0.4967 GB, free: 12.62 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3032 * Number of variables: 3032 Notification: Performance of Generate backend data structure: time 0.04604/1.115, allocations: 11.2 MB / 0.5076 GB, free: 1.328 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/1.115, allocations: 8.031 kB / 0.5077 GB, free: 1.32 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2834/1.398, allocations: 37.42 MB / 0.5442 GB, free: 36.05 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03761/1.436, allocations: 15.88 MB / 0.5597 GB, free: 35.24 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007055/1.437, allocations: 298 kB / 0.56 GB, free: 35.24 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007526/1.444, allocations: 0.5325 MB / 0.5605 GB, free: 35.23 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04143/1.486, allocations: 21.56 MB / 0.5816 GB, free: 29.14 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06056/1.546, allocations: 24.8 MB / 0.6058 GB, free: 7.812 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009282/1.547, allocations: 87.69 kB / 0.6059 GB, free: 7.75 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006708/1.554, allocations: 29.97 kB / 0.6059 GB, free: 7.723 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1746/1.729, allocations: 9.874 MB / 0.6155 GB, free: 31.88 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7278/2.456, allocations: 150.6 MB / 0.7626 GB, free: 22.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00871/2.465, allocations: 7.616 MB / 0.77 GB, free: 21.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00713/2.472, allocations: 6.32 MB / 0.7762 GB, free: 21.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09854/2.571, allocations: 31.17 MB / 0.8066 GB, free: 30.45 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/2.571, allocations: 70.97 kB / 0.8067 GB, free: 30.39 MB / 282.7 MB Notification: Performance of pre-optimization done (n=341): time 7.274e-06/2.571, allocations: 0 / 0.8067 GB, free: 30.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=409): time 0.1042/2.675, allocations: 39.6 MB / 0.8454 GB, free: 0.6133 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002196/2.675, allocations: 413 kB / 0.8458 GB, free: 132 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.155/2.83, allocations: 6.856 MB / 0.8525 GB, free: 60.45 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001265/2.832, allocations: 28.3 kB / 0.8525 GB, free: 60.41 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004126/2.836, allocations: 5.542 MB / 0.8579 GB, free: 58.21 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002407/2.838, allocations: 1.465 MB / 0.8593 GB, free: 57.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001505/2.84, allocations: 0 / 0.8593 GB, free: 57.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000634/2.84, allocations: 0.7591 MB / 0.8601 GB, free: 57 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00744/2.848, allocations: 5.267 MB / 0.8652 GB, free: 56.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01108/2.859, allocations: 11.41 MB / 0.8764 GB, free: 49.05 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/2.87, allocations: 6.895 MB / 0.8831 GB, free: 48.99 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002572/2.87, allocations: 61.88 kB / 0.8832 GB, free: 48.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=1414) (initialization): time 0.0433/2.913, allocations: 18.74 MB / 0.9015 GB, free: 45.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/2.913, allocations: 2.719 kB / 0.9015 GB, free: 45.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004088/2.914, allocations: 218.2 kB / 0.9017 GB, free: 45.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01684/2.93, allocations: 4.739 MB / 0.9063 GB, free: 45.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009488/2.94, allocations: 2.425 MB / 0.9087 GB, free: 44.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03207/2.972, allocations: 23.98 MB / 0.9321 GB, free: 33.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01796/2.99, allocations: 1.369 MB / 0.9334 GB, free: 33.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003336/2.993, allocations: 0.8131 MB / 0.9342 GB, free: 32.74 MB / 282.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: 991 * 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 (1260): * Single equations (assignments): 1245 * 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: 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.004521/2.998, allocations: 0.6458 MB / 0.9349 GB, free: 32.1 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002402/3, allocations: 0.7058 MB / 0.9355 GB, free: 31.38 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02278/3.023, allocations: 10.42 MB / 0.9457 GB, free: 23.29 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01199/3.035, allocations: 1.91 MB / 0.9476 GB, free: 22.14 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.931e-05/3.035, allocations: 23.91 kB / 0.9476 GB, free: 22.12 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000144/3.036, allocations: 18.19 kB / 0.9476 GB, free: 22.12 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.205/3.241, allocations: 29.9 MB / 0.9768 GB, free: 47.22 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.414e-05/3.241, allocations: 10.53 kB / 0.9768 GB, free: 47.22 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00286/3.244, allocations: 485.5 kB / 0.9773 GB, free: 47.22 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01581/3.259, allocations: 4.32 MB / 0.9815 GB, free: 47.18 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001319/3.261, allocations: 84.84 kB / 0.9816 GB, free: 47.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02997/3.291, allocations: 22.67 MB / 1.004 GB, free: 41.16 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/3.291, allocations: 9.625 kB / 1.004 GB, free: 41.16 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0321/3.323, allocations: 19.88 MB / 1.023 GB, free: 33.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00489/3.328, allocations: 1.654 MB / 1.025 GB, free: 32.81 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002612/3.33, allocations: 10.44 kB / 1.025 GB, free: 32.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01177/3.342, allocations: 1.089 MB / 1.026 GB, free: 32.81 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001271/3.344, allocations: 195.4 kB / 1.026 GB, free: 32.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00136/3.345, allocations: 264.9 kB / 1.026 GB, free: 32.75 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.01117/3.356, allocations: 4.633 MB / 1.031 GB, free: 31.11 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.01461/3.371, allocations: 2.056 MB / 1.033 GB, free: 30.33 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (266): * Single equations (assignments): 251 * 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: 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.001288/3.372, allocations: 172.9 kB / 1.033 GB, free: 30.2 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.02681/3.399, allocations: 13.45 MB / 1.046 GB, free: 18.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/3.399, allocations: 2.734 kB / 1.046 GB, free: 18.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1498/3.549, allocations: 6.822 MB / 1.053 GB, free: 49.39 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005918/3.555, allocations: 0.8801 MB / 1.054 GB, free: 49.36 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0408/3.596, allocations: 19.18 MB / 1.072 GB, free: 46.08 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01533/3.611, allocations: 7.803 MB / 1.08 GB, free: 45.14 MB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/3.611, allocations: 0 / 1.08 GB, free: 45.14 MB / 282.7 MB Notification: Performance of Templates: time 0.3287/3.94, allocations: 121.5 MB / 1.199 GB, free: 42.57 MB / 282.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)