Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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: "" <> buildModelFMU(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorage",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/BuildingSystems 2.0.0-master/package.mo): time 0.7265/0.7265, allocations: 141.8 MB / 149.1 MB, free: 4.5 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.001023/0.001023, allocations: 182.6 kB / 181.9 MB, free: 176 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 221.3 MB / 436 MB, free: 9.305 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.0009549/0.0009549, allocations: 93.33 kB / 0.507 GB, free: 24.18 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001717/0.001717, allocations: 281.8 kB / 0.5884 GB, free: 12.32 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1959/0.1977, allocations: 89.63 MB / 0.676 GB, free: 2.609 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.5875, allocations: 82.77 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6275/1.215, allocations: 371.5 MB / 1.12 GB, free: 11.08 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/1.215, allocations: 83.31 kB / 1.12 GB, free: 11.04 MB / 0.6513 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 631 * Number of variables: 631 Notification: Performance of Generate backend data structure: time 2.445/3.66, allocations: 0.8534 GB / 1.973 GB, free: 32.21 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/3.66, allocations: 16.94 kB / 1.973 GB, free: 32.2 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001946/3.662, allocations: 375.8 kB / 1.973 GB, free: 31.82 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007426/3.67, allocations: 3.733 MB / 1.977 GB, free: 28.09 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.974e-05/3.67, allocations: 80 kB / 1.977 GB, free: 28.01 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005373/3.67, allocations: 151.9 kB / 1.977 GB, free: 27.86 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004195/3.675, allocations: 2.317 MB / 1.98 GB, free: 25.54 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00387/3.678, allocations: 2.816 MB / 1.982 GB, free: 22.58 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.909e-05/3.679, allocations: 7.984 kB / 1.982 GB, free: 22.57 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002082/3.679, allocations: 4 kB / 1.982 GB, free: 22.57 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.993e-05/3.679, allocations: 83.83 kB / 1.982 GB, free: 22.49 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01349/3.692, allocations: 12.17 MB / 1.994 GB, free: 10.04 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/3.694, allocations: 1.492 MB / 1.996 GB, free: 8.543 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/3.695, allocations: 1.016 MB / 1.997 GB, free: 7.527 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006206/3.696, allocations: 1.014 MB / 1.998 GB, free: 6.293 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/3.697, allocations: 0.8116 MB / 1.999 GB, free: 5.469 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=132): time 3.417e-06/3.697, allocations: 4 kB / 1.999 GB, free: 5.465 MB / 0.6982 GB Notification: Performance of matching and sorting (n=132): time 0.00253/3.7, allocations: 1.519 MB / 2 GB, free: 3.938 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/3.7, allocations: 68.72 kB / 2 GB, free: 3.859 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002157/3.702, allocations: 1.817 MB / 2.002 GB, free: 2.008 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001158/3.702, allocations: 29.7 kB / 2.002 GB, free: 1.973 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008628/3.703, allocations: 1.003 MB / 2.003 GB, free: 0.9531 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004918/3.703, allocations: 445.5 kB / 2.003 GB, free: 0.5117 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.878e-05/3.703, allocations: 0 / 2.003 GB, free: 0.5117 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001063/3.703, allocations: 377.9 kB / 2.004 GB, free: 140 kB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2595/3.963, allocations: 0.6705 MB / 2.004 GB, free: 134.5 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/3.964, allocations: 1.168 MB / 2.005 GB, free: 133.9 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/3.965, allocations: 0.9613 MB / 2.006 GB, free: 133.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.944e-06/3.965, allocations: 3.906 kB / 2.006 GB, free: 133.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=219) (initialization): time 0.00318/3.969, allocations: 2.069 MB / 2.008 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/3.969, allocations: 10.45 kB / 2.008 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/3.969, allocations: 13.84 kB / 2.008 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.148e-05/3.969, allocations: 28.25 kB / 2.008 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/3.97, allocations: 418.8 kB / 2.009 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.047e-05/3.97, allocations: 33.28 kB / 2.009 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00222/3.972, allocations: 242.9 kB / 2.009 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/3.973, allocations: 86.52 kB / 2.009 GB, free: 133.8 MB / 0.6982 GB Warning: Assuming fixed start value for the following 7 variables: storage.vol_HX_1.dynBal.U:VARIABLE(start = storage.vol_HX_1.dynBal.fluidVolume * storage.vol_HX_1.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_HX_1$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_HX_1$dynBal.Medium.setState_pTX(storage.vol_HX_1.dynBal.p_start, storage.vol_HX_1.dynBal.T_start, {})) + (-273.15 + storage.vol_HX_1.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_top.dynBal.U:VARIABLE(start = storage.vol_top.dynBal.fluidVolume * storage.vol_top.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_top$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_top$dynBal.Medium.setState_pTX(storage.vol_top.dynBal.p_start, storage.vol_top.dynBal.T_start, {})) + (-273.15 + storage.vol_top.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_bot.dynBal.U:VARIABLE(start = storage.vol_bot.dynBal.fluidVolume * storage.vol_bot.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_bot$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_bot$dynBal.Medium.setState_pTX(storage.vol_bot.dynBal.p_start, storage.vol_bot.dynBal.T_start, {})) + (-273.15 + storage.vol_bot.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol[4].dynBal.U:VARIABLE(start = storage.vol[4].dynBal.fluidVolume * storage.vol[4].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[4].dynBal.p_start, storage.vol[4].dynBal.T_start, {})) + (-273.15 + storage.vol[4].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[3].dynBal.U:VARIABLE(start = storage.vol[3].dynBal.fluidVolume * storage.vol[3].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[3].dynBal.p_start, storage.vol[3].dynBal.T_start, {})) + (-273.15 + storage.vol[3].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[2].dynBal.U:VARIABLE(start = storage.vol[2].dynBal.fluidVolume * storage.vol[2].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[2].dynBal.p_start, storage.vol[2].dynBal.T_start, {})) + (-273.15 + storage.vol[2].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[1].dynBal.U:VARIABLE(start = storage.vol[1].dynBal.fluidVolume * storage.vol[1].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[1].dynBal.p_start, storage.vol[1].dynBal.T_start, {})) + (-273.15 + storage.vol[1].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.m_flow1.T_start,m_flow1.T_start,$PRE.m_flow1.count,m_flow1.count,$PRE.m_flow2.T_start,m_flow2.T_start,$PRE.m_flow2.count,m_flow2.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005375/3.973, allocations: 377 kB / 2.01 GB, free: 133.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003168/3.973, allocations: 214.8 kB / 2.01 GB, free: 133.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0028/3.976, allocations: 1.76 MB / 2.011 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/3.976, allocations: 11.31 kB / 2.011 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/3.976, allocations: 3.438 kB / 2.011 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001738/3.978, allocations: 1.402 MB / 2.013 GB, free: 133.5 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006382/3.984, allocations: 4.25 MB / 2.017 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/3.984, allocations: 3.594 kB / 2.017 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/3.986, allocations: 276.7 kB / 2.017 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/3.986, allocations: 7.094 kB / 2.017 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.359e-05/3.986, allocations: 24.56 kB / 2.017 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/3.986, allocations: 14.05 kB / 2.017 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/3.986, allocations: 2.812 kB / 2.017 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00327/3.989, allocations: 2.829 MB / 2.02 GB, free: 132.6 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004249/3.993, allocations: 4.249 MB / 2.024 GB, free: 131.8 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/3.994, allocations: 0.565 MB / 2.025 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003239/3.995, allocations: 10.97 kB / 2.025 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/3.996, allocations: 140.1 kB / 2.025 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/3.996, allocations: 94.53 kB / 2.025 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/3.997, allocations: 67.17 kB / 2.025 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001698/3.998, allocations: 1.385 MB / 2.026 GB, free: 131.4 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.00323/4.001, allocations: 1.062 MB / 2.027 GB, free: 131.3 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (storage.vol[1].dynBal.U,storage.vol[2].dynBal.U,storage.vol[3].dynBal.U,storage.vol[4].dynBal.U,storage.vol_bot.dynBal.U,storage.vol_top.dynBal.U,storage.vol_HX_1.dynBal.U) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,m_flow1.T_start,m_flow1.count,m_flow2.T_start,m_flow2.count) * Number of discrete states: 2 (m_flow1.count,m_flow2.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001188/4.003, allocations: 0.756 MB / 2.028 GB, free: 131.2 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.00205/4.005, allocations: 1.707 MB / 2.03 GB, free: 131.1 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/4.005, allocations: 6.781 kB / 2.03 GB, free: 131.1 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0008367/4.006, allocations: 0.7729 MB / 2.031 GB, free: 131.1 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004402/4.01, allocations: 1.091 MB / 2.032 GB, free: 131.1 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007205/4.017, allocations: 4.548 MB / 2.036 GB, free: 130.2 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001996/4.019, allocations: 2.473 MB / 2.039 GB, free: 129.4 MB / 0.6982 GB Notification: Performance of SimCode: time 7.31e-07/4.019, allocations: 0 / 2.039 GB, free: 129.4 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorage_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorage.fmu > BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe 2>&1)