Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [: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.001698/0.001698, allocations: 189.8 kB / 8.135 MB, free: 2.211 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.691/1.691, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.002132/0.002132, allocations: 118.7 kB / 247.8 MB, free: 6.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.944e-06/8.015e-06, allocations: 0 / 297.6 MB, free: 7.98 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 44.49 MB / 342.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2533/0.3662, allocations: 88 MB / 430.1 MB, free: 7.516 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.3665, allocations: 84.33 kB / 430.1 MB, free: 7.473 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.4384/0.8049, allocations: 118.4 MB / 0.5357 GB, free: 68.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.00031/0.8052, allocations: 119 kB / 0.5358 GB, free: 68.71 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: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.01618/0.8214, allocations: 6.45 MB / 0.5421 GB, free: 66.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.8215, allocations: 7.125 kB / 0.5421 GB, free: 66.32 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0346/0.8561, allocations: 9.012 MB / 0.5509 GB, free: 65.9 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01853/0.8746, allocations: 8.644 MB / 0.5594 GB, free: 64.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002225/0.8749, allocations: 184.5 kB / 0.5595 GB, free: 64.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001865/0.8767, allocations: 351.9 kB / 0.5599 GB, free: 64.97 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01502/0.8918, allocations: 9.18 MB / 0.5688 GB, free: 64.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02076/0.9126, allocations: 13.32 MB / 0.5819 GB, free: 58.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002865/0.9129, allocations: 90.19 kB / 0.5819 GB, free: 58.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001251/0.9141, allocations: 34.16 kB / 0.582 GB, free: 58.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00193/0.9161, allocations: 1.546 MB / 0.5835 GB, free: 58 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06273/0.9788, allocations: 64.49 MB / 0.6465 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007406/0.9863, allocations: 7.174 MB / 0.6535 GB, free: 1.023 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00634/0.9927, allocations: 5.511 MB / 0.6589 GB, free: 11.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1338/1.127, allocations: 14.15 MB / 0.6727 GB, free: 122.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/1.127, allocations: 71.97 kB / 0.6727 GB, free: 122.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=340): time 6.543e-06/1.127, allocations: 0 / 0.6727 GB, free: 122.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=604): time 0.1761/1.303, allocations: 72.71 MB / 0.7437 GB, free: 109.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/1.303, allocations: 265.8 kB / 0.744 GB, free: 109.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00585/1.309, allocations: 4.04 MB / 0.7479 GB, free: 108.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001267/1.31, allocations: 25.7 kB / 0.748 GB, free: 108 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/1.312, allocations: 3.558 MB / 0.7514 GB, free: 105.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002361/1.314, allocations: 2.038 MB / 0.7534 GB, free: 104 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009339/1.315, allocations: 3.828 kB / 0.7534 GB, free: 104 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004287/1.315, allocations: 0.7134 MB / 0.7541 GB, free: 103.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01016/1.325, allocations: 8.576 MB / 0.7625 GB, free: 95.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01119/1.337, allocations: 12.75 MB / 0.775 GB, free: 81.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/1.349, allocations: 10.59 MB / 0.7853 GB, free: 72.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.686e-05/1.349, allocations: 40 kB / 0.7853 GB, free: 72.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=1257) (initialization): time 0.08732/1.436, allocations: 38.55 MB / 0.823 GB, free: 36.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/1.436, allocations: 4.875 kB / 0.823 GB, free: 36.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000119/1.436, allocations: 144 kB / 0.8231 GB, free: 35.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1802/1.617, allocations: 20.86 MB / 0.8435 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005136/1.622, allocations: 1.473 MB / 0.8449 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1816/1.804, allocations: 126.3 MB / 0.9683 GB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01061/1.814, allocations: 407.7 kB / 0.9687 GB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001616/1.816, allocations: 0.5381 MB / 0.9692 GB, free: 40.27 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 649 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (796): * Single equations (assignments): 789 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.002233/1.818, allocations: 495.3 kB / 0.9697 GB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/1.82, allocations: 0.5438 MB / 0.9702 GB, free: 39.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.191/2.011, allocations: 35.08 MB / 1.004 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/2.011, allocations: 55.38 kB / 1.005 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-05/2.011, allocations: 64.16 kB / 1.005 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.219e-05/2.011, allocations: 27.84 kB / 1.005 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.11/2.121, allocations: 55.1 MB / 1.058 GB, free: 96.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.472e-05/2.121, allocations: 5.25 kB / 1.058 GB, free: 96.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/2.123, allocations: 262.8 kB / 1.059 GB, free: 96.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06449/2.187, allocations: 20.12 MB / 1.078 GB, free: 86.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00142/2.189, allocations: 11.45 kB / 1.078 GB, free: 86.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2788/2.467, allocations: 116.9 MB / 1.192 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/2.468, allocations: 1.312 kB / 1.192 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09388/2.561, allocations: 47.81 MB / 1.239 GB, free: 71.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005763/2.567, allocations: 2.339 MB / 1.241 GB, free: 69.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002027/2.569, allocations: 4.609 kB / 1.241 GB, free: 69.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006252/2.576, allocations: 264.9 kB / 1.242 GB, free: 69.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001323/2.577, allocations: 279.2 kB / 1.242 GB, free: 69.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008311/2.578, allocations: 141.1 kB / 1.242 GB, free: 69.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003602/2.581, allocations: 2.781 MB / 1.245 GB, free: 66.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01108/2.592, allocations: 2.833 MB / 1.248 GB, free: 64.06 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.001069/2.593, allocations: 149.8 kB / 1.248 GB, free: 63.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.033/2.626, allocations: 22.86 MB / 1.27 GB, free: 43.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/2.627, allocations: 0 / 1.27 GB, free: 43.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02069/2.647, allocations: 12.43 MB / 1.282 GB, free: 32.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003518/2.651, allocations: 0.5222 MB / 1.283 GB, free: 31.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1586/2.809, allocations: 21.4 MB / 1.304 GB, free: 96.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006799/2.816, allocations: 5.348 MB / 1.309 GB, free: 96.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.973e-06/2.816, allocations: 0 / 1.309 GB, free: 96.05 MB / 410.7 MB Notification: Performance of Templates: time 0.3825/3.199, allocations: 211.5 MB / 1.515 GB, free: 59.1 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)