Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001297/0.001297, allocations: 191.6 kB / 8.135 MB, free: 2.199 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.1/1.1, allocations: 194.2 MB / 202.8 MB, free: 8.738 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.001899/0.001899, allocations: 114.4 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.15e-06/5.18e-06, allocations: 0 / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06797/0.06799, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.253, allocations: 70.57 MB / 412.6 MB, free: 24.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000162/0.2532, allocations: 68.75 kB / 412.7 MB, free: 24.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.004235/0.2574, allocations: 1.446 MB / 414.1 MB, free: 23.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.2574, allocations: 8 kB / 414.1 MB, free: 23.37 MB / 314.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.0002403/0.2577, allocations: 363.5 kB / 414.5 MB, free: 22.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.2577, allocations: 8.031 kB / 414.5 MB, free: 22.97 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.2578, allocations: 11.91 kB / 414.5 MB, free: 22.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.155e-05/0.2579, allocations: 172.4 kB / 414.7 MB, free: 22.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.2579, allocations: 0.625 kB / 414.7 MB, free: 22.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.258, allocations: 14.08 kB / 414.7 MB, free: 22.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001195/0.2581, allocations: 49.77 kB / 414.8 MB, free: 22.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.2582, allocations: 73.77 kB / 414.8 MB, free: 22.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.2582, allocations: 0 / 414.8 MB, free: 22.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.2582, allocations: 0 / 414.8 MB, free: 22.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2582, allocations: 0 / 414.8 MB, free: 22.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004479/0.2587, allocations: 366.4 kB / 415.2 MB, free: 22.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.238e-05/0.2588, allocations: 59.08 kB / 415.2 MB, free: 22.24 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.647e-05/0.2588, allocations: 27.42 kB / 415.3 MB, free: 22.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.2589, allocations: 1.078 kB / 415.3 MB, free: 22.22 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.758e-06/0.2589, allocations: 33.38 kB / 415.3 MB, free: 22.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.2589, allocations: 0 / 415.3 MB, free: 22.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001422/0.259, allocations: 75.3 kB / 415.4 MB, free: 22.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.207e-05/0.259, allocations: 51.41 kB / 415.4 MB, free: 22.05 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.179e-05/0.2591, allocations: 100 kB / 415.5 MB, free: 21.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.624e-06/0.2591, allocations: 26.45 kB / 415.5 MB, free: 21.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.371e-05/0.2591, allocations: 99.14 kB / 415.6 MB, free: 21.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.2592, allocations: 30.92 kB / 415.7 MB, free: 21.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.2592, allocations: 0 / 415.7 MB, free: 21.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.517e-05/0.2592, allocations: 320.8 kB / 416 MB, free: 21.47 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.371e-05/0.2592, allocations: 26.19 kB / 416 MB, free: 21.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.223e-05/0.2593, allocations: 41.39 kB / 416.1 MB, free: 21.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.308e-05/0.2593, allocations: 23.05 kB / 416.1 MB, free: 21.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2594, allocations: 2.906 kB / 416.1 MB, free: 21.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001245/0.2595, allocations: 94.95 kB / 416.2 MB, free: 21.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.2595, allocations: 11.94 kB / 416.2 MB, free: 21.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.2595, allocations: 0 / 416.2 MB, free: 21.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.2595, allocations: 4.062 kB / 416.2 MB, free: 21.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.2597, allocations: 23.98 kB / 416.2 MB, free: 21.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.2597, allocations: 3.906 kB / 416.2 MB, free: 21.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.408e-05/0.2598, allocations: 4 kB / 416.2 MB, free: 21.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.2598, allocations: 4 kB / 416.2 MB, free: 21.27 MB / 314.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 4.102e-05/0.2599, allocations: 112.6 kB / 416.3 MB, free: 21.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.956e-05/0.2599, allocations: 4 kB / 416.3 MB, free: 21.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.2599, allocations: 8.125 kB / 416.3 MB, free: 21.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2599, allocations: 11.98 kB / 416.4 MB, free: 21.13 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2599, allocations: 7.891 kB / 416.4 MB, free: 21.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2599, allocations: 0 / 416.4 MB, free: 21.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.2601, allocations: 156.8 kB / 416.5 MB, free: 20.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2601, allocations: 0 / 416.5 MB, free: 20.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.2602, allocations: 19.98 kB / 416.5 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2602, allocations: 0 / 416.5 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.2603, allocations: 4 kB / 416.5 MB, free: 20.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2603, allocations: 3.906 kB / 416.5 MB, free: 20.92 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2603, allocations: 2.312 kB / 416.5 MB, free: 20.92 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001323/0.2604, allocations: 189.9 kB / 416.7 MB, free: 20.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.817e-05/0.2604, allocations: 81.11 kB / 416.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.2605, allocations: 7.891 kB / 416.8 MB, free: 20.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.187e-05/0.2605, allocations: 0 / 416.8 MB, free: 20.63 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.595e-05/0.2606, allocations: 4 kB / 416.8 MB, free: 20.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.2606, allocations: 0 / 416.8 MB, free: 20.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.925e-05/0.2606, allocations: 82.72 kB / 416.9 MB, free: 20.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000244/0.2608, allocations: 30.25 kB / 416.9 MB, free: 20.52 MB / 314.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 7.427e-05/0.2609, allocations: 95.23 kB / 417 MB, free: 20.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.261, allocations: 54.81 kB / 417.1 MB, free: 20.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.2611, allocations: 0 / 417.1 MB, free: 20.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.536e-05/0.2611, allocations: 15.81 kB / 417.1 MB, free: 20.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.2613, allocations: 14.17 kB / 417.1 MB, free: 20.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003939/0.2617, allocations: 233.1 kB / 417.3 MB, free: 20.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.2618, allocations: 0.7083 MB / 418 MB, free: 19.39 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2618, allocations: 4 kB / 418.1 MB, free: 19.38 MB / 314.7 MB Notification: Performance of Templates: time 0.002213/0.264, allocations: 0.667 MB / 418.7 MB, free: 18.75 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1)