Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.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_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor",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.068/2.068, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.001131/0.001131, allocations: 176.5 kB / 487 MB, free: 5.402 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.504/1.504, allocations: 221.3 MB / 0.7819 GB, free: 1.379 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.0009805/0.0009804, allocations: 90.39 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6374/0.6384, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.8994, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.952, allocations: 435.5 MB / 1.631 GB, free: 4.09 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004182/1.952, allocations: 87.83 kB / 1.631 GB, free: 4.047 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: 577 * Number of variables: 577 Notification: Performance of Generate backend data structure: time 4.277/6.229, allocations: 1.07 GB / 2.701 GB, free: 157.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/6.229, allocations: 7.062 kB / 2.701 GB, free: 157.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009814/6.239, allocations: 1.301 MB / 2.702 GB, free: 157.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007196/6.246, allocations: 3.344 MB / 2.705 GB, free: 157.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/6.247, allocations: 165.2 kB / 2.705 GB, free: 157.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003356/6.247, allocations: 137.7 kB / 2.705 GB, free: 157.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003822/6.251, allocations: 1.975 MB / 2.707 GB, free: 157.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003941/6.255, allocations: 2.469 MB / 2.71 GB, free: 156.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-05/6.255, allocations: 6.969 kB / 2.71 GB, free: 156.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002396/6.255, allocations: 9.625 kB / 2.71 GB, free: 156.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.299e-05/6.255, allocations: 72.62 kB / 2.71 GB, free: 156.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01913/6.274, allocations: 13.74 MB / 2.723 GB, free: 150.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/6.276, allocations: 1.064 MB / 2.724 GB, free: 150.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000797/6.277, allocations: 0.6055 MB / 2.725 GB, free: 150.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001502/6.278, allocations: 1.781 MB / 2.727 GB, free: 148.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/6.279, allocations: 0.9024 MB / 2.728 GB, free: 147.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=118): time 3.567e-06/6.279, allocations: 0 / 2.728 GB, free: 147.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=118): time 0.005716/6.285, allocations: 1.684 MB / 2.729 GB, free: 147.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002099/6.285, allocations: 0.9419 MB / 2.73 GB, free: 146.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002964/6.288, allocations: 1.853 MB / 2.732 GB, free: 146.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000293/6.289, allocations: 33.33 kB / 2.732 GB, free: 146.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009024/6.29, allocations: 0.9861 MB / 2.733 GB, free: 145.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004453/6.29, allocations: 393.3 kB / 2.733 GB, free: 145.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/6.29, allocations: 0 / 2.733 GB, free: 145.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001234/6.29, allocations: 371 kB / 2.734 GB, free: 145.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/6.291, allocations: 0.5961 MB / 2.734 GB, free: 145.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/6.293, allocations: 1.193 MB / 2.735 GB, free: 144.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/6.295, allocations: 0.8172 MB / 2.736 GB, free: 144.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/6.295, allocations: 5.562 kB / 2.736 GB, free: 144.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004907/6.3, allocations: 2.126 MB / 2.738 GB, free: 144.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001031/6.301, allocations: 4.905 MB / 2.743 GB, free: 139.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/6.301, allocations: 12.12 kB / 2.743 GB, free: 139.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/6.302, allocations: 0.5323 MB / 2.744 GB, free: 139.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/6.305, allocations: 0.4989 MB / 2.744 GB, free: 139.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00214/6.307, allocations: 1.802 MB / 2.746 GB, free: 138.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005289/6.313, allocations: 463.4 kB / 2.746 GB, free: 138 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003379/6.313, allocations: 111 kB / 2.746 GB, free: 138 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/6.313, allocations: 9.484 kB / 2.746 GB, free: 138 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004538/6.318, allocations: 1.832 MB / 2.748 GB, free: 137.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/6.318, allocations: 14.03 kB / 2.748 GB, free: 137.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/6.319, allocations: 0.5308 MB / 2.749 GB, free: 137.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002912/6.322, allocations: 496.8 kB / 2.749 GB, free: 137.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002759/6.325, allocations: 1.799 MB / 2.751 GB, free: 136.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005534/6.33, allocations: 371.8 kB / 2.751 GB, free: 136.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005188/6.331, allocations: 105.4 kB / 2.751 GB, free: 136.8 MB / 1.151 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.0009257/6.332, allocations: 165.9 kB / 2.752 GB, free: 136.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001332/6.333, allocations: 240.9 kB / 2.752 GB, free: 136.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008061/6.341, allocations: 1.72 MB / 2.753 GB, free: 136.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.84e-05/6.341, allocations: 17.59 kB / 2.754 GB, free: 136.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/6.341, allocations: 3.219 kB / 2.754 GB, free: 136.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005308/6.346, allocations: 1.521 MB / 2.755 GB, free: 136.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/6.36, allocations: 6.117 MB / 2.761 GB, free: 134.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/6.36, allocations: 18.92 kB / 2.761 GB, free: 134.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00189/6.362, allocations: 300.2 kB / 2.761 GB, free: 134.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/6.363, allocations: 0.5199 MB / 2.762 GB, free: 134.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/6.363, allocations: 37.69 kB / 2.762 GB, free: 134.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002158/6.365, allocations: 1.784 MB / 2.764 GB, free: 133.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-05/6.365, allocations: 9.406 kB / 2.764 GB, free: 133.1 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006253/6.371, allocations: 3.158 MB / 2.767 GB, free: 131.9 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007776/6.379, allocations: 4.405 MB / 2.771 GB, free: 130.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002089/6.381, allocations: 0.6227 MB / 2.772 GB, free: 130.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001085/6.382, allocations: 17.95 kB / 2.772 GB, free: 130.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004233/6.387, allocations: 262.3 kB / 2.772 GB, free: 130.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/6.387, allocations: 109.7 kB / 2.772 GB, free: 130 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002389/6.387, allocations: 69.31 kB / 2.772 GB, free: 130 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.003236/6.39, allocations: 1.389 MB / 2.773 GB, free: 129.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01103/6.402, allocations: 2.34 MB / 2.776 GB, free: 129.6 MB / 1.151 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.004368/6.406, allocations: 1.492 MB / 2.777 GB, free: 129.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005798/6.412, allocations: 2.518 MB / 2.78 GB, free: 129.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/6.412, allocations: 7.797 kB / 2.78 GB, free: 129.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001608/6.413, allocations: 0.742 MB / 2.78 GB, free: 129.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00658/6.42, allocations: 1.038 MB / 2.781 GB, free: 129 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/6.434, allocations: 4.089 MB / 2.785 GB, free: 127.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003268/6.438, allocations: 2.047 MB / 2.787 GB, free: 127.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.032e-06/6.438, allocations: 0 / 2.787 GB, free: 127.2 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe 2>&1)