Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.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.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor") translateModel(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor") [: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.7712/0.7712, allocations: 141.8 MB / 149.1 MB, free: 3.723 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.001435/0.001435, allocations: 180 kB / 181.9 MB, free: 15.45 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.446/1.446, allocations: 221.4 MB / 436 MB, free: 8.602 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.001062/0.001062, allocations: 93.94 kB / 0.507 GB, free: 24.29 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0021/0.0021, allocations: 269.3 kB / 0.5884 GB, free: 11.67 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.136e-06/8.176e-06, allocations: 0 / 0.6759 GB, free: 2.047 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4399/0.44, allocations: 82.77 MB / 0.7567 GB, free: 112.2 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7002/1.14, allocations: 394.8 MB / 1.142 GB, free: 2.754 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/1.14, allocations: 98.56 kB / 1.142 GB, free: 2.703 MB / 0.6669 GB Notification: Performance of FrontEnd: time 3.575/4.715, allocations: 1.062 GB / 2.204 GB, free: 30.29 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0004903/4.716, allocations: 75.98 kB / 2.204 GB, free: 30.22 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 577 * Number of variables: 577 Notification: Performance of Generate backend data structure: time 0.009474/4.725, allocations: 3.199 MB / 2.208 GB, free: 26.93 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/4.725, allocations: 8.031 kB / 2.208 GB, free: 26.92 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01017/4.735, allocations: 1.307 MB / 2.209 GB, free: 25.61 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009144/4.745, allocations: 3.312 MB / 2.212 GB, free: 22.24 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003202/4.745, allocations: 171.9 kB / 2.212 GB, free: 22.05 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009978/4.746, allocations: 136 kB / 2.212 GB, free: 21.92 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005707/4.752, allocations: 1.973 MB / 2.214 GB, free: 19.94 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006664/4.758, allocations: 2.467 MB / 2.217 GB, free: 17.29 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.05e-05/4.759, allocations: 11.84 kB / 2.217 GB, free: 17.27 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005584/4.759, allocations: 4 kB / 2.217 GB, free: 17.27 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-05/4.759, allocations: 71.98 kB / 2.217 GB, free: 17.2 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02464/4.784, allocations: 13.77 MB / 2.23 GB, free: 2.918 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/4.786, allocations: 1.064 MB / 2.231 GB, free: 1.816 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009573/4.787, allocations: 0.5999 MB / 2.232 GB, free: 1.211 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001878/4.789, allocations: 1.777 MB / 2.234 GB, free: 15.04 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001746/4.79, allocations: 0.9086 MB / 2.234 GB, free: 14.03 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=118): time 5.36e-06/4.79, allocations: 0 / 2.234 GB, free: 14.03 MB / 0.7294 GB Notification: Performance of matching and sorting (n=118): time 0.007131/4.798, allocations: 1.674 MB / 2.236 GB, free: 12.34 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004646/4.798, allocations: 0.9359 MB / 2.237 GB, free: 11.19 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004053/4.802, allocations: 1.852 MB / 2.239 GB, free: 9.316 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005145/4.803, allocations: 37.69 kB / 2.239 GB, free: 9.273 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001227/4.804, allocations: 0.9787 MB / 2.24 GB, free: 8.27 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006319/4.805, allocations: 394.2 kB / 2.24 GB, free: 7.879 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/4.805, allocations: 4 kB / 2.24 GB, free: 7.875 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.000174/4.805, allocations: 365.9 kB / 2.241 GB, free: 7.512 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/4.806, allocations: 0.6014 MB / 2.241 GB, free: 6.91 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/4.808, allocations: 1.2 MB / 2.242 GB, free: 5.461 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/4.81, allocations: 0.8143 MB / 2.243 GB, free: 4.648 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/4.81, allocations: 4 kB / 2.243 GB, free: 4.645 MB / 0.7294 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.0062/4.817, allocations: 2.122 MB / 2.245 GB, free: 2.508 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.002342/4.819, allocations: 4.908 MB / 2.25 GB, free: 13.09 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.728e-05/4.819, allocations: 12 kB / 2.25 GB, free: 13.08 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/4.821, allocations: 0.5234 MB / 2.251 GB, free: 12.56 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003023/4.824, allocations: 0.5031 MB / 2.251 GB, free: 12.05 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002804/4.826, allocations: 1.806 MB / 2.253 GB, free: 10.2 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006361/4.833, allocations: 477.9 kB / 2.253 GB, free: 9.734 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006342/4.833, allocations: 103.9 kB / 2.253 GB, free: 9.633 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/4.833, allocations: 4 kB / 2.253 GB, free: 9.629 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00612/4.84, allocations: 1.828 MB / 2.255 GB, free: 7.797 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/4.84, allocations: 12.94 kB / 2.255 GB, free: 7.785 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001314/4.841, allocations: 0.536 MB / 2.256 GB, free: 7.254 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00303/4.844, allocations: 499.2 kB / 2.256 GB, free: 6.766 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00306/4.847, allocations: 1.806 MB / 2.258 GB, free: 4.914 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005511/4.853, allocations: 374.5 kB / 2.258 GB, free: 4.547 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005267/4.853, allocations: 107.9 kB / 2.258 GB, free: 4.441 MB / 0.745 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.com.isOn,heaPum.stage,$PRE.heaPum1.com.isOn,heaPum1.com.isOn,$PRE.N.T_start,N.T_start,$PRE.N.count,N.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 17,2 17} Notification: Performance of prepare postOptimizeDAE: time 0.001037/4.854, allocations: 160.4 kB / 2.258 GB, free: 4.277 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001416/4.856, allocations: 241.1 kB / 2.259 GB, free: 4.039 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007678/4.863, allocations: 1.714 MB / 2.26 GB, free: 2.309 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.31e-05/4.863, allocations: 19.98 kB / 2.26 GB, free: 2.289 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/4.863, allocations: 7.938 kB / 2.26 GB, free: 2.281 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005436/4.869, allocations: 1.516 MB / 2.262 GB, free: 0.7109 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4437/5.313, allocations: 6.11 MB / 2.268 GB, free: 122.2 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/5.313, allocations: 9.844 kB / 2.268 GB, free: 122.2 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/5.315, allocations: 298.9 kB / 2.268 GB, free: 122.2 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/5.316, allocations: 0.5217 MB / 2.269 GB, free: 122.2 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/5.316, allocations: 39.19 kB / 2.269 GB, free: 122.2 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/5.318, allocations: 1.792 MB / 2.27 GB, free: 121.1 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-05/5.318, allocations: 11.69 kB / 2.27 GB, free: 121.1 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005876/5.324, allocations: 3.143 MB / 2.274 GB, free: 120.1 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/5.326, allocations: 0.6296 MB / 2.274 GB, free: 119.9 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005685/5.326, allocations: 16.22 kB / 2.274 GB, free: 119.9 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003319/5.33, allocations: 270.2 kB / 2.274 GB, free: 119.9 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/5.33, allocations: 101.9 kB / 2.275 GB, free: 119.9 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001764/5.33, allocations: 72.67 kB / 2.275 GB, free: 119.9 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.002259/5.332, allocations: 1.382 MB / 2.276 GB, free: 119.8 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.006144/5.338, allocations: 1.827 MB / 2.278 GB, free: 119.7 MB / 0.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U,heaPum1.con.vol.dynBal.U,heaPum1.eva.vol.dynBal.U) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum.stage,heaPum1.com.isOn,N.T_start,N.count) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 17,2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.003019/5.341, allocations: 1.484 MB / 2.279 GB, free: 119.5 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.004544/5.346, allocations: 2.516 MB / 2.282 GB, free: 119.4 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/5.346, allocations: 4.469 kB / 2.282 GB, free: 119.4 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.001462/5.348, allocations: 0.7444 MB / 2.282 GB, free: 119.3 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006339/5.354, allocations: 1.056 MB / 2.283 GB, free: 119.3 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/5.367, allocations: 4.067 MB / 2.287 GB, free: 118.2 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/5.369, allocations: 2.039 MB / 2.289 GB, free: 117.5 MB / 0.745 GB Notification: Performance of SimCode: time 1.232e-06/5.369, allocations: 0 / 2.289 GB, free: 117.5 MB / 0.745 GB Notification: Performance of Templates: time 0.1233/5.492, allocations: 74.54 MB / 2.362 GB, free: 114.2 MB / 0.745 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe 2>&1)