Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) 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) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Running command: translateModel(Annex60.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u") translateModel(Annex60.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u") [: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/Annex60 1.0.0/package.mo): time 0.2943/0.2943, allocations: 54.39 MB / 61.68 MB, free: 11.16 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001357/0.001357, allocations: 184.5 kB / 75.38 MB, free: 1.461 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.641/1.641, allocations: 194.2 MB / 283.2 MB, free: 3.547 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001785/0.001785, allocations: 118.9 kB / 341.3 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.506e-06/8.536e-06, allocations: 4 kB / 404.9 MB, free: 27.69 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1884, allocations: 57.64 MB / 462.6 MB, free: 1.965 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.245, allocations: 348.9 MB / 0.7924 GB, free: 43.02 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/1.246, allocations: 83.27 kB / 0.7925 GB, free: 42.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 9.904/11.15, allocations: 2.333 GB / 3.126 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.001608/11.15, allocations: 167.8 kB / 3.126 GB, free: 21.33 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.02201/11.17, allocations: 5.83 MB / 3.132 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/11.17, allocations: 13.5 kB / 3.132 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005623/11.18, allocations: 0.7636 MB / 3.132 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1808/11.36, allocations: 57.4 MB / 3.188 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004139/11.36, allocations: 127 kB / 3.189 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002004/11.36, allocations: 253.5 kB / 3.189 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01/11.37, allocations: 2.519 MB / 3.191 GB, free: 11.75 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007967/11.38, allocations: 3.643 MB / 3.195 GB, free: 9.184 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001091/11.38, allocations: 22.16 kB / 3.195 GB, free: 9.164 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003155/11.38, allocations: 8 kB / 3.195 GB, free: 9.156 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/11.38, allocations: 122.1 kB / 3.195 GB, free: 9.043 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03766/11.42, allocations: 25.21 MB / 3.22 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004168/11.42, allocations: 2.392 MB / 3.222 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/11.43, allocations: 1.171 MB / 3.223 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003371/11.43, allocations: 3.618 MB / 3.227 GB, free: 8.852 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.417e-05/11.43, allocations: 60.56 kB / 3.227 GB, free: 8.785 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=242): time 5.35e-06/11.43, allocations: 0 / 3.227 GB, free: 8.785 MB / 0.6511 GB Notification: Performance of matching and sorting (n=252): time 0.0378/11.47, allocations: 8.623 MB / 3.235 GB, free: 92 kB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.5912/12.06, allocations: 128.8 kB / 3.235 GB, free: 79.24 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006728/12.06, allocations: 3.087 MB / 3.238 GB, free: 78.96 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0008968/12.07, allocations: 32.83 kB / 3.238 GB, free: 78.93 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.00136/12.07, allocations: 1.637 MB / 3.24 GB, free: 78.8 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.001922/12.07, allocations: 0.837 MB / 3.241 GB, free: 78.73 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/12.07, allocations: 3.094 kB / 3.241 GB, free: 78.73 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001799/12.07, allocations: 410.6 kB / 3.241 GB, free: 78.42 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/12.07, allocations: 0.8394 MB / 3.242 GB, free: 78.41 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001805/12.07, allocations: 1.787 MB / 3.244 GB, free: 77.28 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004285/12.08, allocations: 1.477 MB / 3.245 GB, free: 77.23 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/12.08, allocations: 6.344 kB / 3.245 GB, free: 77.23 MB / 0.6511 GB Notification: Performance of matching and sorting (n=358) (initialization): time 0.01753/12.09, allocations: 4.691 MB / 3.25 GB, free: 76.82 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.00267/12.1, allocations: 10.03 MB / 3.259 GB, free: 66.28 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.724e-05/12.1, allocations: 21.12 kB / 3.259 GB, free: 66.28 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/12.1, allocations: 0.5565 MB / 3.26 GB, free: 66.25 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003007/12.1, allocations: 0.6008 MB / 3.261 GB, free: 66.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002727/12.1, allocations: 2.928 MB / 3.263 GB, free: 64.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007296/12.11, allocations: 441.9 kB / 3.264 GB, free: 64.14 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007348/12.11, allocations: 141.8 kB / 3.264 GB, free: 64.14 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/12.11, allocations: 2.5 kB / 3.264 GB, free: 64.14 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007467/12.12, allocations: 2.878 MB / 3.267 GB, free: 64.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/12.12, allocations: 25.72 kB / 3.267 GB, free: 64.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008302/12.12, allocations: 337.4 kB / 3.267 GB, free: 63.98 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002062/12.12, allocations: 0.6033 MB / 3.268 GB, free: 63.98 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007528/12.13, allocations: 7.001 MB / 3.275 GB, free: 58.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006518/12.14, allocations: 352.6 kB / 3.275 GB, free: 58.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006104/12.14, allocations: 130.2 kB / 3.275 GB, free: 58.84 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (316): * Single equations (assignments): 312 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 9,1 12,1 9,1 12} Notification: Performance of prepare postOptimizeDAE: time 0.00146/12.14, allocations: 183.6 kB / 3.275 GB, free: 58.73 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002227/12.14, allocations: 0.4912 MB / 3.276 GB, free: 58.47 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02117/12.16, allocations: 5.728 MB / 3.281 GB, free: 58.13 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001675/12.16, allocations: 49.02 kB / 3.281 GB, free: 58.13 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.983e-05/12.16, allocations: 6.219 kB / 3.281 GB, free: 58.13 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01704/12.18, allocations: 4.251 MB / 3.285 GB, free: 57.85 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03967/12.22, allocations: 10.23 MB / 3.295 GB, free: 56.13 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.885e-05/12.22, allocations: 8.156 kB / 3.295 GB, free: 56.13 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/12.22, allocations: 360 kB / 3.296 GB, free: 56.13 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/12.22, allocations: 0.8208 MB / 3.297 GB, free: 56.02 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006458/12.22, allocations: 52.86 kB / 3.297 GB, free: 56.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02139/12.25, allocations: 13.79 MB / 3.31 GB, free: 45.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.475e-05/12.25, allocations: 9.75 kB / 3.31 GB, free: 45.73 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02217/12.27, allocations: 7.333 MB / 3.317 GB, free: 44.01 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005444/12.27, allocations: 0.9245 MB / 3.318 GB, free: 43.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002851/12.28, allocations: 18.36 kB / 3.318 GB, free: 43.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006922/12.28, allocations: 495.7 kB / 3.319 GB, free: 43.62 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000633/12.28, allocations: 171.2 kB / 3.319 GB, free: 43.61 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006392/12.28, allocations: 120.5 kB / 3.319 GB, free: 43.61 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.006887/12.29, allocations: 2.289 MB / 3.321 GB, free: 43.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.02376/12.32, allocations: 2.936 MB / 3.324 GB, free: 43.43 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 32 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 14 {1 3,1 3,1 7,1 3,1 3,1 3,1 9,1 3,1 3,1 7,1 3,1 3,1 3,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.008454/12.32, allocations: 3.363 MB / 3.327 GB, free: 42.27 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0104/12.33, allocations: 4.598 MB / 3.332 GB, free: 41.77 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/12.33, allocations: 5.156 kB / 3.332 GB, free: 41.77 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.004123/12.34, allocations: 1.981 MB / 3.334 GB, free: 41.34 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01811/12.36, allocations: 2.558 MB / 3.336 GB, free: 41.31 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02714/12.38, allocations: 7.67 MB / 3.344 GB, free: 39.31 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008534/12.39, allocations: 3.448 MB / 3.347 GB, free: 38.5 MB / 0.6511 GB Notification: Performance of SimCode: time 1.973e-06/12.39, allocations: 0 / 3.347 GB, free: 38.5 MB / 0.6511 GB Notification: Performance of Templates: time 0.2704/12.66, allocations: 132 MB / 3.476 GB, free: 12.34 MB / 0.6511 GB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u.sim & ./Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)