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: translateModel(BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified") translateModel(BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified") [: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.7361/0.7361, allocations: 127.4 MB / 134.6 MB, free: 4.027 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.001316/0.001317, allocations: 181.2 kB / 164.4 MB, free: 6.852 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.897/1.897, allocations: 205.1 MB / 399.1 MB, free: 6.039 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.001031/0.001031, allocations: 89.28 kB / 476.3 MB, free: 8.785 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 7.064e-06/7.104e-06, allocations: 4 kB / 0.546 GB, free: 42.71 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1626, allocations: 76.75 MB / 0.6209 GB, free: 13.89 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9933/1.156, allocations: 371.9 MB / 0.9841 GB, free: 110.6 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/1.156, allocations: 86.89 kB / 0.9841 GB, free: 110.5 MB / 0.6198 GB Notification: Performance of FrontEnd: time 10.48/11.64, allocations: 2.804 GB / 3.788 GB, free: 63.9 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.002295/11.64, allocations: 251.9 kB / 3.788 GB, free: 63.86 MB / 0.6823 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 0.03624/11.68, allocations: 8.127 MB / 3.796 GB, free: 60.64 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.127e-05/11.68, allocations: 12.75 kB / 3.796 GB, free: 60.64 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01163/11.69, allocations: 1.15 MB / 3.798 GB, free: 60.09 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03822/11.73, allocations: 12.17 MB / 3.809 GB, free: 58 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00104/11.73, allocations: 269.2 kB / 3.81 GB, free: 58 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004825/11.73, allocations: 495.4 kB / 3.81 GB, free: 57.99 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03295/11.77, allocations: 9.117 MB / 3.819 GB, free: 54.66 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04694/11.81, allocations: 10.35 MB / 3.829 GB, free: 48.04 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008948/11.81, allocations: 32.23 kB / 3.829 GB, free: 48.01 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00493/11.82, allocations: 15.91 kB / 3.829 GB, free: 47.99 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003741/11.82, allocations: 251.2 kB / 3.829 GB, free: 47.76 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09575/11.92, allocations: 45.99 MB / 3.874 GB, free: 1.84 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4004/12.32, allocations: 5.687 MB / 3.88 GB, free: 122.8 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007038/12.32, allocations: 4.727 MB / 3.884 GB, free: 122.7 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00116/12.32, allocations: 0.832 MB / 3.885 GB, free: 121.9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005226/12.33, allocations: 3.119 MB / 3.888 GB, free: 121.8 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=452): time 9.809e-06/12.33, allocations: 0 / 3.888 GB, free: 121.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=452): time 0.01368/12.34, allocations: 6.384 MB / 3.895 GB, free: 121.7 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.135e-05/12.34, allocations: 155.5 kB / 3.895 GB, free: 121.5 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01287/12.36, allocations: 5.77 MB / 3.9 GB, free: 121.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.00159/12.36, allocations: 28.55 kB / 3.9 GB, free: 121.2 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.005621/12.36, allocations: 3.196 MB / 3.904 GB, free: 120.4 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.004555/12.37, allocations: 1.513 MB / 3.905 GB, free: 119.6 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005156/12.37, allocations: 2.812 kB / 3.905 GB, free: 119.6 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0004582/12.37, allocations: 0.5423 MB / 3.906 GB, free: 119.3 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004124/12.37, allocations: 2.865 MB / 3.908 GB, free: 119.3 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005052/12.38, allocations: 4.791 MB / 3.913 GB, free: 116.9 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007163/12.39, allocations: 4.28 MB / 3.917 GB, free: 116.9 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.243e-05/12.39, allocations: 18.34 kB / 3.917 GB, free: 116.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=757) (initialization): time 0.01764/12.4, allocations: 8.444 MB / 3.925 GB, free: 116.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.009206/12.41, allocations: 29.43 MB / 3.954 GB, free: 85.64 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003338/12.41, allocations: 63.84 kB / 3.954 GB, free: 85.63 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003167/12.41, allocations: 103.8 kB / 3.954 GB, free: 85.63 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00821/12.42, allocations: 1.447 MB / 3.956 GB, free: 85.63 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002384/12.42, allocations: 136.2 kB / 3.956 GB, free: 85.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01074/12.43, allocations: 0.7677 MB / 3.957 GB, free: 85.35 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002279/12.44, allocations: 288.8 kB / 3.957 GB, free: 85.35 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/12.44, allocations: 3.688 kB / 3.957 GB, free: 85.35 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02067/12.46, allocations: 7.761 MB / 3.964 GB, free: 85.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003288/12.46, allocations: 59.28 kB / 3.965 GB, free: 85.27 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/12.46, allocations: 105.9 kB / 3.965 GB, free: 85.27 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00747/12.46, allocations: 1.434 MB / 3.966 GB, free: 85.27 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002313/12.46, allocations: 133.1 kB / 3.966 GB, free: 85.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01014/12.47, allocations: 0.6413 MB / 3.967 GB, free: 85.02 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002097/12.48, allocations: 286.7 kB / 3.967 GB, free: 85.02 MB / 0.6823 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.00352/12.48, allocations: 359.1 kB / 3.967 GB, free: 84.81 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003624/12.48, allocations: 0.6133 MB / 3.968 GB, free: 84.49 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02111/12.5, allocations: 7.059 MB / 3.975 GB, free: 84.29 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.208e-05/12.51, allocations: 46.84 kB / 3.975 GB, free: 84.29 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.613e-05/12.51, allocations: 1.562 kB / 3.975 GB, free: 84.29 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01573/12.52, allocations: 5.852 MB / 3.981 GB, free: 84.13 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04718/12.57, allocations: 15.44 MB / 3.996 GB, free: 83.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.068e-05/12.57, allocations: 0 / 3.996 GB, free: 83.15 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005559/12.57, allocations: 0.8823 MB / 3.997 GB, free: 83.15 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.963e-05/12.57, allocations: 15.22 kB / 3.997 GB, free: 83.15 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001254/12.58, allocations: 67.73 kB / 3.997 GB, free: 83.15 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.528e-05/12.58, allocations: 15 kB / 3.997 GB, free: 83.15 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/12.58, allocations: 2.156 kB / 3.997 GB, free: 83.15 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02785/12.6, allocations: 10.7 MB / 4.007 GB, free: 82.53 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00728/12.61, allocations: 1.673 MB / 4.009 GB, free: 82.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004127/12.61, allocations: 30.38 kB / 4.009 GB, free: 82.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01018/12.62, allocations: 434.8 kB / 4.009 GB, free: 82.02 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001374/12.63, allocations: 225.8 kB / 4.009 GB, free: 82.02 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001283/12.63, allocations: 157.6 kB / 4.01 GB, free: 82.02 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.01097/12.64, allocations: 4.424 MB / 4.014 GB, free: 81.8 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.02499/12.66, allocations: 4.666 MB / 4.018 GB, free: 80.97 MB / 0.6823 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.003365/12.67, allocations: 0.8656 MB / 4.019 GB, free: 80.83 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.02119/12.69, allocations: 11.06 MB / 4.03 GB, free: 80.39 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/12.69, allocations: 0 / 4.03 GB, free: 80.39 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.005537/12.69, allocations: 3.128 MB / 4.033 GB, free: 80.23 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02117/12.71, allocations: 3.26 MB / 4.036 GB, free: 80.18 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04766/12.76, allocations: 16.74 MB / 4.053 GB, free: 77.56 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01559/12.78, allocations: 6.892 MB / 4.059 GB, free: 76.67 MB / 0.6823 GB Notification: Performance of SimCode: time 1.623e-06/12.78, allocations: 1.031 kB / 4.059 GB, free: 76.67 MB / 0.6823 GB Notification: Performance of Templates: time 0.6803/13.46, allocations: 162.4 MB / 4.218 GB, free: 110.2 MB / 0.6823 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.makefile (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 & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe 2>&1)