Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [: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.1+maint.om/package.mo): time 0.002539/0.002539, allocations: 178.9 kB / 7.448 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.438/1.438, allocations: 170.6 MB / 178.4 MB, free: 15.78 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001905/0.001905, allocations: 107.9 kB / 217.7 MB, free: 8.559 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.023e-06/7.033e-06, allocations: 0 / 261.7 MB, free: 26.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08855/0.08857, allocations: 38.76 MB / 300.5 MB, free: 3.93 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3085/0.3971, allocations: 65.27 MB / 365.8 MB, free: 3.156 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.3974, allocations: 71.91 kB / 365.8 MB, free: 3.121 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.00398/0.4014, allocations: 1.449 MB / 367.3 MB, free: 1.934 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.4014, allocations: 4 kB / 367.3 MB, free: 1.93 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003126/0.4017, allocations: 358 kB / 367.6 MB, free: 1.539 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.4018, allocations: 12.03 kB / 367.7 MB, free: 1.527 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.4019, allocations: 18.62 kB / 367.7 MB, free: 1.512 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.402, allocations: 167 kB / 367.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.402, allocations: 0 / 367.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.4021, allocations: 15.92 kB / 367.8 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001341/0.4022, allocations: 42.62 kB / 367.9 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.4023, allocations: 68.55 kB / 368 MB, free: 1.203 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.4023, allocations: 3.906 kB / 368 MB, free: 1.199 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.4024, allocations: 3.984 kB / 368 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.4024, allocations: 0 / 368 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005005/0.4029, allocations: 365.8 kB / 368.3 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.277e-05/0.403, allocations: 51.45 kB / 368.4 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.941e-05/0.403, allocations: 35 kB / 368.4 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.045e-05/0.403, allocations: 0 / 368.4 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.4031, allocations: 37.38 kB / 368.4 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 9.22e-07/0.4031, allocations: 0 / 368.4 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001623/0.4032, allocations: 67.59 kB / 368.5 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.4033, allocations: 54.09 kB / 368.6 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.132e-05/0.4033, allocations: 100.4 kB / 368.7 MB, free: 0.5 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.4034, allocations: 25.7 kB / 368.7 MB, free: 480 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.058e-05/0.4034, allocations: 99.39 kB / 368.8 MB, free: 380 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.46e-05/0.4034, allocations: 30.98 kB / 368.8 MB, free: 352 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.4034, allocations: 0 / 368.8 MB, free: 352 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 5.513e-05/0.4035, allocations: 321.4 kB / 369.1 MB, free: 24 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.269e-05/0.4035, allocations: 22.62 kB / 369.1 MB, free: 8 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.838e-05/0.4036, allocations: 42.56 kB / 369.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.501e-05/0.4037, allocations: 22.62 kB / 369.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4037, allocations: 4 kB / 369.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001511/0.4038, allocations: 99.16 kB / 369.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.4038, allocations: 8 kB / 369.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.4039, allocations: 0 / 369.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.4039, allocations: 0 / 369.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.404, allocations: 27.92 kB / 369.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.404, allocations: 4 kB / 369.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.49e-05/0.4041, allocations: 3.906 kB / 369.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.4041, allocations: 4 kB / 369.4 MB, free: 15.81 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.706e-05/0.4042, allocations: 109 kB / 369.5 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.4042, allocations: 3.906 kB / 369.5 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.206e-05/0.4043, allocations: 11.73 kB / 369.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4043, allocations: 4 kB / 369.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4043, allocations: 0 / 369.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4043, allocations: 0 / 369.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.4045, allocations: 164.6 kB / 369.6 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.4045, allocations: 0 / 369.6 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.4046, allocations: 23.92 kB / 369.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.4047, allocations: 4 kB / 369.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.4047, allocations: 0 / 369.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4047, allocations: 4 kB / 369.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.4047, allocations: 0 / 369.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002069/0.4049, allocations: 186.2 kB / 369.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.514e-05/0.405, allocations: 85.09 kB / 369.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.405, allocations: 0 / 369.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.474e-05/0.4051, allocations: 0 / 369.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.642e-05/0.4051, allocations: 7.906 kB / 370 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.4051, allocations: 7.375 kB / 370 MB, free: 15.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.757e-05/0.4052, allocations: 87.27 kB / 370 MB, free: 15.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002323/0.4054, allocations: 23.94 kB / 370.1 MB, free: 15.05 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001369/0.4055, allocations: 98.94 kB / 370.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001248/0.4057, allocations: 46.39 kB / 370.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4057, allocations: 0 / 370.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.444e-05/0.4057, allocations: 29.73 kB / 370.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.4059, allocations: 11.77 kB / 370.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005764/0.4065, allocations: 236 kB / 370.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.4069, allocations: 0.7153 MB / 371.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4069, allocations: 0 / 371.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of Templates: time 0.002808/0.4097, allocations: 0.6671 MB / 371.9 MB, free: 13.24 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1)