Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_Stratified",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/BuildSysPro 3.5.0/package.mo): time 0.7548/0.7548, allocations: 127.4 MB / 134.6 MB, free: 4.051 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001952/0.001952, allocations: 181.3 kB / 164.4 MB, free: 6.855 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.819/1.819, allocations: 205.1 MB / 399.1 MB, free: 6.082 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009571/0.000957, allocations: 86.98 kB / 476.3 MB, free: 8.828 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3327/0.3337, allocations: 82.87 MB / 0.5461 GB, free: 42.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.5117, allocations: 76.75 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.102/1.614, allocations: 371.9 MB / 0.9841 GB, free: 110.3 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/1.614, allocations: 89.7 kB / 0.9842 GB, free: 110.2 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 10.95/12.56, allocations: 2.812 GB / 3.796 GB, free: 63.95 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.232e-05/12.56, allocations: 9.125 kB / 3.796 GB, free: 63.95 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/12.57, allocations: 1.155 MB / 3.798 GB, free: 63.4 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05026/12.62, allocations: 12.17 MB / 3.809 GB, free: 56.54 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001004/12.63, allocations: 268 kB / 3.81 GB, free: 56.28 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005522/12.63, allocations: 491.9 kB / 3.81 GB, free: 55.8 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02847/12.66, allocations: 9.127 MB / 3.819 GB, free: 46.66 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04617/12.71, allocations: 10.34 MB / 3.829 GB, free: 35.95 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008249/12.71, allocations: 19.86 kB / 3.829 GB, free: 35.93 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004971/12.71, allocations: 15.91 kB / 3.829 GB, free: 35.91 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003403/12.71, allocations: 259.8 kB / 3.829 GB, free: 35.66 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9191/13.63, allocations: 46 MB / 3.874 GB, free: 108.5 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01014/13.64, allocations: 5.69 MB / 3.88 GB, free: 108.4 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007319/13.65, allocations: 4.722 MB / 3.885 GB, free: 108.4 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001303/13.65, allocations: 0.8259 MB / 3.885 GB, free: 107.6 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005576/13.66, allocations: 3.121 MB / 3.888 GB, free: 107.5 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=452): time 8.957e-06/13.66, allocations: 3 kB / 3.888 GB, free: 107.5 MB / 0.6824 GB Notification: Performance of matching and sorting (n=452): time 0.01398/13.67, allocations: 6.389 MB / 3.895 GB, free: 107.3 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/13.67, allocations: 152.8 kB / 3.895 GB, free: 107.2 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01602/13.69, allocations: 5.771 MB / 3.9 GB, free: 106.9 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 0.00175/13.69, allocations: 30.02 kB / 3.9 GB, free: 106.9 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.006647/13.69, allocations: 3.194 MB / 3.904 GB, free: 105.9 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.004706/13.7, allocations: 1.514 MB / 3.905 GB, free: 105.1 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005726/13.7, allocations: 0 / 3.905 GB, free: 105.1 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0005143/13.7, allocations: 0.5471 MB / 3.906 GB, free: 104.8 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004289/13.7, allocations: 2.863 MB / 3.908 GB, free: 104.8 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005312/13.71, allocations: 4.788 MB / 3.913 GB, free: 102.5 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007284/13.72, allocations: 4.286 MB / 3.917 GB, free: 102.4 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.627e-05/13.72, allocations: 18.59 kB / 3.917 GB, free: 102.4 MB / 0.6824 GB Notification: Performance of matching and sorting (n=757) (initialization): time 0.0197/13.74, allocations: 8.437 MB / 3.926 GB, free: 102 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 0.01184/13.75, allocations: 29.43 MB / 3.954 GB, free: 87.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004972/13.75, allocations: 61.28 kB / 3.954 GB, free: 87.16 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002488/13.75, allocations: 106.3 kB / 3.954 GB, free: 87.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009492/13.76, allocations: 1.443 MB / 3.956 GB, free: 87.16 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002225/13.76, allocations: 136.1 kB / 3.956 GB, free: 87.16 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01303/13.77, allocations: 0.7701 MB / 3.957 GB, free: 86.83 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003406/13.78, allocations: 286.4 kB / 3.957 GB, free: 86.83 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/13.78, allocations: 3.344 kB / 3.957 GB, free: 86.83 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02214/13.8, allocations: 7.753 MB / 3.965 GB, free: 86.75 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001976/13.8, allocations: 63.91 kB / 3.965 GB, free: 86.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001194/13.8, allocations: 103.3 kB / 3.965 GB, free: 86.75 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007308/13.81, allocations: 1.43 MB / 3.966 GB, free: 86.75 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002123/13.81, allocations: 132.8 kB / 3.966 GB, free: 86.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01073/13.82, allocations: 0.6413 MB / 3.967 GB, free: 86.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002052/13.82, allocations: 291.8 kB / 3.967 GB, free: 86.5 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 280 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (747): * Single equations (assignments): 745 * 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.003688/13.82, allocations: 353 kB / 3.967 GB, free: 86.29 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004134/13.83, allocations: 0.6263 MB / 3.968 GB, free: 85.96 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02381/13.85, allocations: 7.053 MB / 3.975 GB, free: 85.77 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.876e-05/13.85, allocations: 42.31 kB / 3.975 GB, free: 85.77 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.976e-05/13.85, allocations: 2.188 kB / 3.975 GB, free: 85.77 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01376/13.86, allocations: 5.863 MB / 3.981 GB, free: 85.61 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05545/13.92, allocations: 15.43 MB / 3.996 GB, free: 84.63 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.932e-05/13.92, allocations: 0 / 3.996 GB, free: 84.63 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006513/13.93, allocations: 0.8846 MB / 3.997 GB, free: 84.63 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001277/13.93, allocations: 11.25 kB / 3.997 GB, free: 84.63 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001681/13.93, allocations: 73.39 kB / 3.997 GB, free: 84.63 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.943e-05/13.93, allocations: 15.25 kB / 3.997 GB, free: 84.63 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/13.93, allocations: 0 / 3.997 GB, free: 84.63 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02499/13.95, allocations: 10.7 MB / 4.007 GB, free: 84.01 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02866/13.98, allocations: 15.37 MB / 4.022 GB, free: 82.99 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009637/13.99, allocations: 1.666 MB / 4.024 GB, free: 82.52 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004861/14, allocations: 25.86 kB / 4.024 GB, free: 82.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009371/14.01, allocations: 439.1 kB / 4.024 GB, free: 82.48 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001236/14.01, allocations: 226.8 kB / 4.025 GB, free: 82.48 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001191/14.01, allocations: 160.7 kB / 4.025 GB, free: 82.48 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.01144/14.02, allocations: 4.419 MB / 4.029 GB, free: 82.26 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.02978/14.05, allocations: 4.891 MB / 4.034 GB, free: 81.43 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 23 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,HOut_flow.h_out,HOut_flow1.h_out,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (448): * Single equations (assignments): 444 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.004002/14.05, allocations: 0.8669 MB / 4.035 GB, free: 81.28 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.02233/14.08, allocations: 11.05 MB / 4.045 GB, free: 80.85 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/14.08, allocations: 3.938 kB / 4.045 GB, free: 80.85 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.005977/14.08, allocations: 3.123 MB / 4.048 GB, free: 80.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02202/14.1, allocations: 3.264 MB / 4.052 GB, free: 80.65 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04282/14.15, allocations: 16.77 MB / 4.068 GB, free: 75.89 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01317/14.16, allocations: 6.956 MB / 4.075 GB, free: 73.96 MB / 0.698 GB Notification: Performance of SimCode: time 2.114e-06/14.16, allocations: 3.094 kB / 4.075 GB, free: 73.96 MB / 0.698 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_Stratified.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe 2>&1)