Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.Performance.Example1v2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2") translateModel(BuildingSystems.Fluid.Examples.Performance.Example1v2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7579/0.7579, allocations: 141.8 MB / 149.1 MB, free: 1.32 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 177.3 kB / 181.9 MB, free: 0.582 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 221.4 MB / 436 MB, free: 5.27 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 108 kB / 0.507 GB, free: 1.926 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00169/0.00169, allocations: 282.8 kB / 0.5884 GB, free: 47.04 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 7.724e-06/7.814e-06, allocations: 1.375 kB / 0.6759 GB, free: 59.29 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1734, allocations: 82.78 MB / 0.7567 GB, free: 15.19 MB / 458.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7293/0.9028, allocations: 378.5 MB / 1.126 GB, free: 8.781 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.9031, allocations: 93.64 kB / 1.126 GB, free: 8.738 MB / 0.7138 GB Notification: Performance of FrontEnd: time 9.047/9.95, allocations: 2.32 GB / 3.446 GB, free: 63.96 MB / 0.745 GB Notification: Performance of Transformations before backend: time 0.002459/9.953, allocations: 255.8 kB / 3.447 GB, free: 63.91 MB / 0.745 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1418 * Number of variables: 1418 Notification: Performance of Generate backend data structure: time 0.0421/9.995, allocations: 10.79 MB / 3.457 GB, free: 60.37 MB / 0.745 GB Notification: Performance of prepare preOptimizeDAE: time 6.757e-05/9.995, allocations: 11.59 kB / 3.457 GB, free: 60.37 MB / 0.745 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01084/10.01, allocations: 1.252 MB / 3.458 GB, free: 59.86 MB / 0.745 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03956/10.05, allocations: 12.88 MB / 3.471 GB, free: 58.48 MB / 0.745 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005331/10.05, allocations: 177.2 kB / 3.471 GB, free: 58.48 MB / 0.745 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003902/10.05, allocations: 351.3 kB / 3.472 GB, free: 58.48 MB / 0.745 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03238/10.08, allocations: 18.14 MB / 3.489 GB, free: 58.45 MB / 0.745 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03863/10.12, allocations: 12.76 MB / 3.502 GB, free: 57.64 MB / 0.745 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000632/10.12, allocations: 25.78 kB / 3.502 GB, free: 57.63 MB / 0.745 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003981/10.13, allocations: 11.28 kB / 3.502 GB, free: 57.63 MB / 0.745 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002242/10.13, allocations: 140.3 kB / 3.502 GB, free: 57.63 MB / 0.745 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1323/10.26, allocations: 62.22 MB / 3.563 GB, free: 37.23 MB / 0.745 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01205/10.27, allocations: 8.471 MB / 3.571 GB, free: 37.18 MB / 0.745 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01375/10.28, allocations: 9.406 MB / 3.58 GB, free: 36.92 MB / 0.745 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07318/10.36, allocations: 29.53 MB / 3.609 GB, free: 22.54 MB / 0.745 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01281/10.37, allocations: 7.36 MB / 3.616 GB, free: 16.99 MB / 0.745 GB Notification: Performance of pre-optimization done (n=301): time 1.041e-05/10.37, allocations: 0 / 3.616 GB, free: 16.99 MB / 0.745 GB Notification: Performance of matching and sorting (n=301): time 0.03563/10.41, allocations: 14.93 MB / 3.631 GB, free: 4.711 MB / 0.745 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/10.41, allocations: 81.78 kB / 3.631 GB, free: 4.617 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01742/10.42, allocations: 6.575 MB / 3.637 GB, free: 15 MB / 0.7607 GB Notification: Performance of collectPreVariables (initialization): time 0.002752/10.43, allocations: 37.7 kB / 3.637 GB, free: 14.96 MB / 0.7607 GB Notification: Performance of collectInitialEqns (initialization): time 0.005712/10.43, allocations: 2.557 MB / 3.64 GB, free: 12.75 MB / 0.7607 GB Notification: Performance of collectInitialBindings (initialization): time 0.005482/10.44, allocations: 1.046 MB / 3.641 GB, free: 11.79 MB / 0.7607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002327/10.44, allocations: 0 / 3.641 GB, free: 11.79 MB / 0.7607 GB Notification: Performance of setup shared object (initialization): time 0.0006362/10.44, allocations: 493.1 kB / 3.641 GB, free: 11.35 MB / 0.7607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0106/10.45, allocations: 6.248 MB / 3.647 GB, free: 5.969 MB / 0.7607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4857/10.94, allocations: 8.025 MB / 3.655 GB, free: 130 MB / 0.7607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/10.95, allocations: 7.32 MB / 3.662 GB, free: 130 MB / 0.7607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.084e-05/10.95, allocations: 14.12 kB / 3.662 GB, free: 130 MB / 0.7607 GB Notification: Performance of matching and sorting (n=578) (initialization): time 0.03967/10.99, allocations: 16.73 MB / 3.679 GB, free: 129.8 MB / 0.7607 GB Notification: Performance of prepare postOptimizeDAE: time 0.005832/11, allocations: 24.47 MB / 3.703 GB, free: 104.4 MB / 0.7607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/11, allocations: 50.12 kB / 3.703 GB, free: 104.4 MB / 0.7607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005032/11, allocations: 1.603 MB / 3.704 GB, free: 104.4 MB / 0.7607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009417/11.01, allocations: 1.57 MB / 3.706 GB, free: 104.4 MB / 0.7607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007997/11.02, allocations: 4.644 MB / 3.71 GB, free: 102.8 MB / 0.7607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01479/11.03, allocations: 0.6941 MB / 3.711 GB, free: 102.8 MB / 0.7607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004541/11.04, allocations: 0.5473 MB / 3.711 GB, free: 102.8 MB / 0.7607 GB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/11.04, allocations: 3.5 kB / 3.711 GB, free: 102.8 MB / 0.7607 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03905/11.08, allocations: 15.9 MB / 3.727 GB, free: 102.6 MB / 0.7607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002892/11.08, allocations: 47.16 kB / 3.727 GB, free: 102.6 MB / 0.7607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004754/11.08, allocations: 1.474 MB / 3.728 GB, free: 102.6 MB / 0.7607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009548/11.09, allocations: 1.574 MB / 3.73 GB, free: 102.6 MB / 0.7607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/11.1, allocations: 7.857 MB / 3.738 GB, free: 99.51 MB / 0.7607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01339/11.12, allocations: 0.5921 MB / 3.738 GB, free: 99.51 MB / 0.7607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003489/11.12, allocations: 0.5377 MB / 3.739 GB, free: 99.51 MB / 0.7607 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 215 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (524): * Single equations (assignments): 519 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 4,2 5,20 21} Notification: Performance of prepare postOptimizeDAE: time 0.005268/11.13, allocations: 257 kB / 3.739 GB, free: 99.41 MB / 0.7607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005431/11.13, allocations: 0.6948 MB / 3.74 GB, free: 99.07 MB / 0.7607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03865/11.17, allocations: 14.45 MB / 3.754 GB, free: 98.8 MB / 0.7607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.872e-05/11.17, allocations: 34.66 kB / 3.754 GB, free: 98.8 MB / 0.7607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.289e-05/11.17, allocations: 2.438 kB / 3.754 GB, free: 98.8 MB / 0.7607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02036/11.19, allocations: 10.32 MB / 3.764 GB, free: 98.32 MB / 0.7607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05618/11.25, allocations: 23.28 MB / 3.787 GB, free: 95.36 MB / 0.7607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.839e-05/11.25, allocations: 0 / 3.787 GB, free: 95.36 MB / 0.7607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006059/11.25, allocations: 0.6787 MB / 3.787 GB, free: 95.35 MB / 0.7607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/11.26, allocations: 0.8068 MB / 3.788 GB, free: 95.31 MB / 0.7607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00138/11.26, allocations: 67.77 kB / 3.788 GB, free: 95.31 MB / 0.7607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004688/11.26, allocations: 3.415 MB / 3.792 GB, free: 93.71 MB / 0.7607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/11.26, allocations: 3.375 kB / 3.792 GB, free: 93.71 MB / 0.7607 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03417/11.3, allocations: 18.61 MB / 3.81 GB, free: 92.86 MB / 0.7607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009928/11.31, allocations: 1.967 MB / 3.812 GB, free: 92.39 MB / 0.7607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00514/11.31, allocations: 19.27 kB / 3.812 GB, free: 92.39 MB / 0.7607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01107/11.32, allocations: 328.4 kB / 3.812 GB, free: 92.37 MB / 0.7607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001874/11.32, allocations: 191 kB / 3.812 GB, free: 92.36 MB / 0.7607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001749/11.33, allocations: 163.7 kB / 3.812 GB, free: 92.36 MB / 0.7607 GB Notification: Performance of sort global known variables: time 0.01384/11.34, allocations: 5.002 MB / 3.817 GB, free: 92.11 MB / 0.7607 GB Notification: Performance of remove unused functions: time 0.03292/11.37, allocations: 4.721 MB / 3.822 GB, free: 91.86 MB / 0.7607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 22 (pump.vol.dynBal.U,hea.outCon.T,vol[1].dynBal.U,vol[2].dynBal.U,vol[3].dynBal.U,vol[4].dynBal.U,vol[5].dynBal.U,vol[6].dynBal.U,vol[7].dynBal.U,vol[8].dynBal.U,vol[9].dynBal.U,vol[10].dynBal.U,vol[11].dynBal.U,vol[12].dynBal.U,vol[13].dynBal.U,vol[14].dynBal.U,vol[15].dynBal.U,vol[16].dynBal.U,vol[17].dynBal.U,vol[18].dynBal.U,vol[19].dynBal.U,vol[20].dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 294 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 4,20 21,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004944/11.38, allocations: 1.178 MB / 3.823 GB, free: 91.66 MB / 0.7607 GB Notification: Performance of simCode: created initialization part: time 0.04344/11.42, allocations: 23.14 MB / 3.846 GB, free: 88.26 MB / 0.7607 GB Notification: Performance of simCode: created event and clocks part: time 1.521e-05/11.42, allocations: 2.625 kB / 3.846 GB, free: 88.26 MB / 0.7607 GB Notification: Performance of simCode: created simulation system equations: time 0.0104/11.43, allocations: 6.116 MB / 3.852 GB, free: 85.36 MB / 0.7607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0251/11.46, allocations: 3.814 MB / 3.855 GB, free: 84.74 MB / 0.7607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05789/11.52, allocations: 17.52 MB / 3.872 GB, free: 79.05 MB / 0.7607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01321/11.53, allocations: 6.344 MB / 3.879 GB, free: 77.43 MB / 0.7607 GB Notification: Performance of SimCode: time 1.683e-06/11.53, allocations: 0 / 3.879 GB, free: 77.43 MB / 0.7607 GB Notification: Performance of Templates: time 0.948/12.48, allocations: 259 MB / 4.131 GB, free: 122.7 MB / 0.7607 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example1v2.pipe 2>&1)