Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.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.Elementary.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") [: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.001579/0.001579, allocations: 190.2 kB / 8.136 MB, free: 2.215 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.124/1.124, allocations: 194.2 MB / 202.8 MB, free: 8.773 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.001705/0.001705, allocations: 117.5 kB / 247.7 MB, free: 6.211 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.925e-06/7.965e-06, allocations: 3.938 kB / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07441/0.07443, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.2845, allocations: 89.64 MB / 431.7 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.2848, allocations: 84.64 kB / 431.8 MB, free: 5.691 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.4242/0.709, allocations: 104.2 MB / 0.5234 GB, free: 73.15 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002384/0.7092, allocations: 100.2 kB / 0.5235 GB, free: 73.15 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: 1913 * Number of variables: 1913 Notification: Performance of Generate backend data structure: time 0.02584/0.7351, allocations: 5.99 MB / 0.5293 GB, free: 71.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.7352, allocations: 6.719 kB / 0.5293 GB, free: 71.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01564/0.7508, allocations: 2.835 MB / 0.5321 GB, free: 70.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01851/0.7694, allocations: 7.543 MB / 0.5395 GB, free: 70.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.7697, allocations: 173.7 kB / 0.5396 GB, free: 70.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002477/0.7722, allocations: 319.2 kB / 0.5399 GB, free: 70.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01465/0.7868, allocations: 8.698 MB / 0.5484 GB, free: 69.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02436/0.8112, allocations: 12.48 MB / 0.5606 GB, free: 66.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003974/0.8117, allocations: 74.69 kB / 0.5607 GB, free: 66.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002185/0.8139, allocations: 36.53 kB / 0.5607 GB, free: 66.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003312/0.8172, allocations: 1.572 MB / 0.5623 GB, free: 66.37 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07237/0.8896, allocations: 64.01 MB / 0.6248 GB, free: 20.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005324/0.8949, allocations: 4.129 MB / 0.6288 GB, free: 18.39 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00398/0.8989, allocations: 3.278 MB / 0.632 GB, free: 17.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02066/0.9196, allocations: 13.41 MB / 0.6451 GB, free: 6.035 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.9197, allocations: 59.44 kB / 0.6452 GB, free: 5.973 MB / 394.7 MB Notification: Performance of pre-optimization done (n=238): time 4.679e-06/0.9197, allocations: 0 / 0.6452 GB, free: 5.973 MB / 394.7 MB Notification: Performance of matching and sorting (n=267): time 0.05388/0.9736, allocations: 19.25 MB / 0.664 GB, free: 6.246 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.9738, allocations: 154.5 kB / 0.6641 GB, free: 6.062 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008474/0.9823, allocations: 3.701 MB / 0.6677 GB, free: 2.348 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007437/0.9831, allocations: 29.55 kB / 0.6678 GB, free: 2.316 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1165/1.1, allocations: 3.618 MB / 0.6713 GB, free: 124.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001264/1.101, allocations: 1.032 MB / 0.6723 GB, free: 124.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005511/1.101, allocations: 0 / 0.6723 GB, free: 124.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003245/1.102, allocations: 0.6483 MB / 0.6729 GB, free: 123.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003971/1.106, allocations: 3.213 MB / 0.6761 GB, free: 123.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005238/1.111, allocations: 7.858 MB / 0.6837 GB, free: 117.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00618/1.117, allocations: 4.919 MB / 0.6885 GB, free: 117.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.534e-05/1.117, allocations: 47.09 kB / 0.6886 GB, free: 117.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=1071) (initialization): time 0.02343/1.141, allocations: 12.13 MB / 0.7004 GB, free: 117.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/1.141, allocations: 6.531 kB / 0.7004 GB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0133/1.154, allocations: 6.198 MB / 0.7065 GB, free: 116.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009598/1.164, allocations: 2.664 MB / 0.7091 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007045/1.171, allocations: 1.908 MB / 0.711 GB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/1.181, allocations: 11.95 MB / 0.7226 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008339/1.19, allocations: 0.5146 MB / 0.7231 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001848/1.192, allocations: 497.6 kB / 0.7236 GB, free: 109.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * Number of states: 0 () * Number of discrete variables: 48 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1005): * Single equations (assignments): 984 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001686/1.193, allocations: 0.5271 MB / 0.7241 GB, free: 108.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008747/1.194, allocations: 410.4 kB / 0.7245 GB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01429/1.209, allocations: 6.55 MB / 0.7309 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01215/1.221, allocations: 5.876 MB / 0.7366 GB, free: 105.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.61e-05/1.221, allocations: 6.125 kB / 0.7366 GB, free: 105.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-05/1.221, allocations: 15.12 kB / 0.7367 GB, free: 105.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02822/1.249, allocations: 14.3 MB / 0.7506 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-05/1.249, allocations: 3.094 kB / 0.7506 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/1.252, allocations: 477.4 kB / 0.7511 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008791/1.261, allocations: 2.685 MB / 0.7537 GB, free: 99.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006078/1.262, allocations: 55.61 kB / 0.7538 GB, free: 99.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/1.273, allocations: 13.12 MB / 0.7666 GB, free: 87.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001923/1.275, allocations: 4.169 MB / 0.7706 GB, free: 83.29 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01761/1.293, allocations: 10.78 MB / 0.7812 GB, free: 73.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/1.294, allocations: 468.5 kB / 0.7816 GB, free: 73.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009715/1.295, allocations: 27.41 kB / 0.7816 GB, free: 73.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003022/1.298, allocations: 204.5 kB / 0.7818 GB, free: 73.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004006/1.299, allocations: 144.5 kB / 0.782 GB, free: 73.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/1.299, allocations: 78.97 kB / 0.7821 GB, free: 73.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003396/1.302, allocations: 2.461 MB / 0.7845 GB, free: 71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007385/1.31, allocations: 1.441 MB / 0.7859 GB, free: 69.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 37 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 200 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006459/1.31, allocations: 182.5 kB / 0.786 GB, free: 69.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01526/1.326, allocations: 9.38 MB / 0.7952 GB, free: 60.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/1.326, allocations: 4.438 kB / 0.7952 GB, free: 60.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008219/1.334, allocations: 4.55 MB / 0.7996 GB, free: 56.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002372/1.336, allocations: 418.8 kB / 0.8 GB, free: 56.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01973/1.356, allocations: 12.25 MB / 0.812 GB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004872/1.361, allocations: 4.386 MB / 0.8163 GB, free: 41.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.944e-06/1.361, allocations: 4 kB / 0.8163 GB, free: 41.29 MB / 410.7 MB Notification: Performance of Templates: time 0.209/1.57, allocations: 58.13 MB / 0.8731 GB, free: 107.3 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1)