Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed",fmuType="me",version="2.0",platforms={"static"}) [: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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.158/2.158, allocations: 387.2 MB / 394.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 191.8 kB / 487 MB, free: 5.328 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 221.3 MB / 0.7819 GB, free: 1.398 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 98.05 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6572/0.6583, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.9397, allocations: 142.3 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9734/1.913, allocations: 434.6 MB / 1.63 GB, free: 5.199 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/1.913, allocations: 90.17 kB / 1.63 GB, free: 5.156 MB / 1.057 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 2.308/4.222, allocations: 0.5628 GB / 2.193 GB, free: 233.1 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/4.222, allocations: 9.531 kB / 2.193 GB, free: 233.1 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004817/4.227, allocations: 0.6634 MB / 2.193 GB, free: 233 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004058/4.231, allocations: 1.808 MB / 2.195 GB, free: 232.7 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.491e-05/4.231, allocations: 88.81 kB / 2.195 GB, free: 232.7 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001959/4.231, allocations: 70.53 kB / 2.195 GB, free: 232.7 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001847/4.233, allocations: 1.018 MB / 2.196 GB, free: 232.7 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/4.235, allocations: 1.289 MB / 2.197 GB, free: 232.4 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/4.235, allocations: 2.781 kB / 2.197 GB, free: 232.4 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/4.235, allocations: 11.91 kB / 2.197 GB, free: 232.4 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.407e-05/4.235, allocations: 50.03 kB / 2.197 GB, free: 232.4 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01015/4.245, allocations: 7.067 MB / 2.204 GB, free: 229.2 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007947/4.246, allocations: 488.7 kB / 2.205 GB, free: 229.2 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004295/4.247, allocations: 324.2 kB / 2.205 GB, free: 229.2 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001078/4.248, allocations: 1.261 MB / 2.206 GB, free: 227.8 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007004/4.248, allocations: 0.5053 MB / 2.207 GB, free: 227.6 MB / 1.135 GB Notification: Performance of pre-optimization done (n=65): time 2.675e-06/4.248, allocations: 0 / 2.207 GB, free: 227.6 MB / 1.135 GB Notification: Performance of matching and sorting (n=65): time 0.002205/4.251, allocations: 0.8261 MB / 2.208 GB, free: 227.5 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001631/4.251, allocations: 479.3 kB / 2.208 GB, free: 226.9 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/4.252, allocations: 0.9949 MB / 2.209 GB, free: 226.8 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 9.857e-05/4.252, allocations: 32.7 kB / 2.209 GB, free: 226.8 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/4.253, allocations: 0.5327 MB / 2.21 GB, free: 226.5 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/4.253, allocations: 216.5 kB / 2.21 GB, free: 226.4 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.712e-05/4.253, allocations: 3.938 kB / 2.21 GB, free: 226.4 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 7.772e-05/4.253, allocations: 340 kB / 2.21 GB, free: 226.1 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004957/4.253, allocations: 312.7 kB / 2.211 GB, free: 226.1 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006791/4.254, allocations: 0.6098 MB / 2.211 GB, free: 225.8 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/4.255, allocations: 425 kB / 2.212 GB, free: 225.8 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/4.255, allocations: 3.812 kB / 2.212 GB, free: 225.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003779/4.259, allocations: 1.18 MB / 2.213 GB, free: 225.6 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006282/4.26, allocations: 2.464 MB / 2.215 GB, free: 223.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/4.26, allocations: 10.44 kB / 2.215 GB, free: 223.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007042/4.261, allocations: 273.1 kB / 2.215 GB, free: 223.1 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/4.262, allocations: 274.8 kB / 2.216 GB, free: 223.1 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/4.263, allocations: 0.8944 MB / 2.216 GB, free: 222.6 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00276/4.266, allocations: 248.3 kB / 2.217 GB, free: 222.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/4.266, allocations: 59.03 kB / 2.217 GB, free: 222.5 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/4.266, allocations: 8.719 kB / 2.217 GB, free: 222.5 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003555/4.27, allocations: 1.016 MB / 2.218 GB, free: 222.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/4.27, allocations: 7.875 kB / 2.218 GB, free: 222.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005597/4.27, allocations: 274.3 kB / 2.218 GB, free: 222.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/4.272, allocations: 271.7 kB / 2.218 GB, free: 222.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/4.273, allocations: 0.8993 MB / 2.219 GB, free: 222 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/4.276, allocations: 215.4 kB / 2.219 GB, free: 222 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/4.276, allocations: 59.59 kB / 2.219 GB, free: 222 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.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 (90): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003604/4.276, allocations: 136 kB / 2.22 GB, free: 221.8 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/4.276, allocations: 130.9 kB / 2.22 GB, free: 221.8 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/4.279, allocations: 0.9251 MB / 2.221 GB, free: 221.7 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/4.28, allocations: 16.22 kB / 2.221 GB, free: 221.7 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/4.28, allocations: 3.562 kB / 2.221 GB, free: 221.7 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002408/4.282, allocations: 0.8267 MB / 2.221 GB, free: 221.5 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00591/4.288, allocations: 3.108 MB / 2.224 GB, free: 220.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/4.288, allocations: 3.25 kB / 2.224 GB, free: 220.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/4.289, allocations: 173.8 kB / 2.225 GB, free: 220.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000566/4.29, allocations: 269 kB / 2.225 GB, free: 220.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/4.29, allocations: 21.64 kB / 2.225 GB, free: 220.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009797/4.291, allocations: 0.8946 MB / 2.226 GB, free: 220 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.273e-06/4.291, allocations: 9.594 kB / 2.226 GB, free: 220 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003558/4.294, allocations: 1.76 MB / 2.227 GB, free: 219.3 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004137/4.298, allocations: 2.585 MB / 2.23 GB, free: 218.3 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007106/4.299, allocations: 371.2 kB / 2.23 GB, free: 218.2 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/4.299, allocations: 7.281 kB / 2.23 GB, free: 218.2 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001674/4.301, allocations: 145.5 kB / 2.231 GB, free: 218.2 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/4.301, allocations: 62.19 kB / 2.231 GB, free: 218.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.411e-05/4.301, allocations: 43.09 kB / 2.231 GB, free: 218.2 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.00101/4.302, allocations: 0.7486 MB / 2.231 GB, free: 218.1 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.004431/4.307, allocations: 1.261 MB / 2.233 GB, free: 217.9 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,heaPum.com.isOn,N.T_start,N.count) * Number of discrete states: 2 (N.count,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.001776/4.308, allocations: 0.8939 MB / 2.233 GB, free: 217.7 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.002523/4.311, allocations: 1.34 MB / 2.235 GB, free: 217.6 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/4.311, allocations: 5.766 kB / 2.235 GB, free: 217.6 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0006914/4.312, allocations: 393.7 kB / 2.235 GB, free: 217.6 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/4.314, allocations: 0.5469 MB / 2.236 GB, free: 217.6 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006034/4.32, allocations: 2.145 MB / 2.238 GB, free: 217 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/4.321, allocations: 1.393 MB / 2.239 GB, free: 216.3 MB / 1.135 GB Notification: Performance of SimCode: time 1.212e-06/4.321, allocations: 0 / 2.239 GB, free: 216.3 MB / 1.135 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe 2>&1)