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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7601/0.7601, allocations: 127.3 MB / 139.8 MB, free: 15.43 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 176.9 kB / 169.7 MB, free: 1.742 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.526/1.526, allocations: 205.1 MB / 404.5 MB, free: 1.59 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.0007998/0.0007998, allocations: 90.41 kB / 481.8 MB, free: 4.23 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.24e-05/3.242e-05, allocations: 4 kB / 0.5532 GB, free: 54.83 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1451, allocations: 76.74 MB / 0.6281 GB, free: 10.02 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.185/1.33, allocations: 372.6 MB / 0.992 GB, free: 140.4 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/1.33, allocations: 88.39 kB / 0.9921 GB, free: 140.4 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 10.81/12.14, allocations: 2.803 GB / 3.795 GB, free: 65.34 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.274e-06/12.14, allocations: 0 / 3.795 GB, free: 65.34 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.001559/12.14, allocations: 257.8 kB / 3.796 GB, free: 65.31 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.02708/12.17, allocations: 8.226 MB / 3.804 GB, free: 62.31 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/12.17, allocations: 13.66 kB / 3.804 GB, free: 62.31 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007743/12.18, allocations: 1.144 MB / 3.805 GB, free: 61.77 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03178/12.21, allocations: 12.03 MB / 3.817 GB, free: 60.64 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006295/12.21, allocations: 0.6142 MB / 3.817 GB, free: 60.62 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00336/12.21, allocations: 0.8144 MB / 3.818 GB, free: 60.61 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03066/12.24, allocations: 11.4 MB / 3.829 GB, free: 59.43 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000357/12.24, allocations: 31.12 kB / 3.829 GB, free: 59.43 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002364/12.24, allocations: 348.6 kB / 3.83 GB, free: 59.43 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002445/12.24, allocations: 244.9 kB / 3.83 GB, free: 59.43 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02708/12.27, allocations: 9.462 MB / 3.839 GB, free: 59.37 MB / 0.6823 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06982/12.34, allocations: 46.43 MB / 3.884 GB, free: 39.69 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009041/12.35, allocations: 6.263 MB / 3.89 GB, free: 39.39 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006374/12.36, allocations: 5.359 MB / 3.896 GB, free: 38.59 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001057/12.36, allocations: 0.8208 MB / 3.897 GB, free: 37.82 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005241/12.36, allocations: 3.241 MB / 3.9 GB, free: 36.67 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004432/12.37, allocations: 0.5464 MB / 3.9 GB, free: 36.31 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=452): time 1.667e-05/12.37, allocations: 0 / 3.9 GB, free: 36.31 MB / 0.6823 GB Notification: Performance of matching and sorting (n=452): time 0.01168/12.38, allocations: 6.28 MB / 3.906 GB, free: 34.06 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/12.38, allocations: 159 kB / 3.906 GB, free: 33.93 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01172/12.39, allocations: 6.83 MB / 3.913 GB, free: 31.57 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.001275/12.39, allocations: 105.1 kB / 3.913 GB, free: 31.48 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.004025/12.4, allocations: 4.253 MB / 3.917 GB, free: 28.26 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.002182/12.4, allocations: 1.575 MB / 3.919 GB, free: 27.06 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003841/12.4, allocations: 120.7 kB / 3.919 GB, free: 26.97 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002944/12.4, allocations: 0.5438 MB / 3.92 GB, free: 26.56 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/12.4, allocations: 2.848 MB / 3.922 GB, free: 25.57 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004509/12.41, allocations: 4.811 MB / 3.927 GB, free: 22.11 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004789/12.41, allocations: 3.923 MB / 3.931 GB, free: 20.7 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.283e-05/12.41, allocations: 26.7 kB / 3.931 GB, free: 20.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=757) (initialization): time 0.01293/12.43, allocations: 8.617 MB / 3.939 GB, free: 16.31 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.008667/12.43, allocations: 30.75 MB / 3.969 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/12.43, allocations: 60 kB / 3.969 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001456/12.43, allocations: 104 kB / 3.97 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0071/12.44, allocations: 1.469 MB / 3.971 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001888/12.44, allocations: 130.1 kB / 3.971 GB, free: 13.91 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00958/12.45, allocations: 0.5744 MB / 3.972 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001659/12.45, allocations: 291 kB / 3.972 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/12.45, allocations: 4 kB / 3.972 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01783/12.47, allocations: 8.023 MB / 3.98 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002395/12.47, allocations: 60.94 kB / 3.98 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001501/12.47, allocations: 108 kB / 3.98 GB, free: 6.027 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006613/12.48, allocations: 1.455 MB / 3.981 GB, free: 4.785 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000239/12.48, allocations: 130.3 kB / 3.981 GB, free: 4.668 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009164/12.49, allocations: 0.5446 MB / 3.982 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001461/12.49, allocations: 286.9 kB / 3.982 GB, free: 3.961 MB / 0.7136 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.002544/12.49, allocations: 0.5399 MB / 3.983 GB, free: 3.406 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002775/12.49, allocations: 0.6908 MB / 3.983 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4791/12.97, allocations: 6.928 MB / 3.99 GB, free: 90.53 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.129e-05/12.97, allocations: 46.19 kB / 3.99 GB, free: 90.53 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/12.97, allocations: 2.156 kB / 3.99 GB, free: 90.53 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009697/12.98, allocations: 5.638 MB / 3.996 GB, free: 90.31 MB / 0.7136 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0405/13.02, allocations: 16.03 MB / 4.011 GB, free: 89.35 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-05/13.02, allocations: 4.656 kB / 4.011 GB, free: 89.35 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004519/13.03, allocations: 0.906 MB / 4.012 GB, free: 89.35 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.206e-05/13.03, allocations: 17.3 kB / 4.012 GB, free: 89.35 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006218/13.03, allocations: 117.9 kB / 4.012 GB, free: 89.35 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-05/13.03, allocations: 16.19 kB / 4.012 GB, free: 89.35 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/13.03, allocations: 3.609 kB / 4.012 GB, free: 89.35 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/13.05, allocations: 10.31 MB / 4.023 GB, free: 88.98 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006029/13.05, allocations: 1.663 MB / 4.024 GB, free: 88.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003303/13.05, allocations: 96.16 kB / 4.024 GB, free: 88.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008962/13.06, allocations: 0.5317 MB / 4.025 GB, free: 88.71 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008005/13.06, allocations: 254.7 kB / 4.025 GB, free: 88.71 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004754/13.06, allocations: 164.3 kB / 4.025 GB, free: 88.71 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.009543/13.07, allocations: 5.327 MB / 4.03 GB, free: 88.46 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.1e-07/13.07, allocations: 2 kB / 4.03 GB, free: 88.46 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01935/13.09, allocations: 4.815 MB / 4.035 GB, free: 88.11 MB / 0.7136 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.002639/13.1, allocations: 0.9208 MB / 4.036 GB, free: 88 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.01738/13.11, allocations: 11.33 MB / 4.047 GB, free: 87.62 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/13.11, allocations: 3.438 kB / 4.047 GB, free: 87.62 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.00446/13.12, allocations: 3.108 MB / 4.05 GB, free: 87.48 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0225/13.14, allocations: 4.336 MB / 4.054 GB, free: 87.39 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03571/13.18, allocations: 16.62 MB / 4.071 GB, free: 84.61 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006649/13.18, allocations: 6.248 MB / 4.077 GB, free: 83.73 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.02112/13.2, allocations: 6.562 MB / 4.083 GB, free: 83.63 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003063/13.21, allocations: 0.4891 MB / 4.084 GB, free: 83.62 MB / 0.7136 GB Notification: Performance of SimCode: time 1.423e-06/13.21, allocations: 0 / 4.084 GB, free: 83.62 MB / 0.7136 GB Notification: Performance of Templates: time 0.2278/13.44, allocations: 159.8 MB / 4.24 GB, free: 13.58 MB / 0.7292 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)