Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.conf.json 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/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009801/0.0009801, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.571/1.571, allocations: 292.5 MB / 0.5497 GB, free: 14.61 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005708/0.0005708, allocations: 16.06 kB / 0.6735 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2621, allocations: 116.3 MB / 0.7871 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.Stratified): time 0.0477/0.3099, allocations: 46.99 MB / 0.833 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02121/0.3312, allocations: 15.06 MB / 0.8477 GB, free: 13.75 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002587/0.3338, allocations: 63.62 kB / 0.8478 GB, free: 13.69 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002585/0.3364, allocations: 0.8629 MB / 0.8486 GB, free: 12.82 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.006778/0.3432, allocations: 2.25 MB / 0.8508 GB, free: 10.57 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005698/0.3489, allocations: 1.717 MB / 0.8525 GB, free: 8.871 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01834/0.3672, allocations: 15.62 MB / 0.8677 GB, free: 9.23 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01466/0.382, allocations: 10.04 MB / 0.8775 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01334/0.3953, allocations: 6.066 MB / 0.8835 GB, free: 9.02 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01171/0.4071, allocations: 5.302 MB / 0.8886 GB, free: 3.695 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.002416/0.4096, allocations: 476 kB / 0.8891 GB, free: 3.23 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007314/0.4169, allocations: 1.237 MB / 0.8903 GB, free: 1.992 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.00349/0.4204, allocations: 2.005 MB / 0.8923 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.006041/0.4265, allocations: 2.211 MB / 0.8944 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.8626/1.289, allocations: 14.27 MB / 0.9084 GB, free: 30.01 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/1.289, allocations: 0.8125 kB / 0.9084 GB, free: 30.01 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.434e-06/1.289, allocations: 0 / 0.9084 GB, free: 30.01 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0007421/1.29, allocations: 0 / 0.9084 GB, free: 30.01 MB / 0.7169 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.02632/1.316, allocations: 9.472 MB / 0.9176 GB, free: 26.3 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/1.316, allocations: 11.86 kB / 0.9176 GB, free: 26.3 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00678/1.323, allocations: 1.17 MB / 0.9188 GB, free: 25.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0188/1.342, allocations: 8.203 MB / 0.9268 GB, free: 24.77 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006329/1.343, allocations: 0.6138 MB / 0.9274 GB, free: 24.75 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002427/1.345, allocations: 0.8121 MB / 0.9282 GB, free: 24.75 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02603/1.371, allocations: 12.39 MB / 0.9403 GB, free: 23.52 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002233/1.371, allocations: 29.38 kB / 0.9403 GB, free: 23.51 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/1.372, allocations: 358 kB / 0.9406 GB, free: 23.51 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003628/1.373, allocations: 250 kB / 0.9409 GB, free: 23.51 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02013/1.393, allocations: 10.36 MB / 0.951 GB, free: 23.44 MB / 0.7169 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.0614/1.454, allocations: 49.22 MB / 0.9991 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008949/1.463, allocations: 6.365 MB / 1.005 GB, free: 9.242 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001362/1.465, allocations: 0.8482 MB / 1.006 GB, free: 8.414 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006046/1.471, allocations: 3.416 MB / 1.009 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004385/1.475, allocations: 0.5337 MB / 1.01 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=449): time 1.59e-05/1.475, allocations: 0 / 1.01 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of matching and sorting (n=449): time 0.01617/1.491, allocations: 9.066 MB / 1.019 GB, free: 12.02 MB / 0.7482 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.276e-05/1.492, allocations: 153.3 kB / 1.019 GB, free: 11.85 MB / 0.7482 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01324/1.505, allocations: 7.843 MB / 1.027 GB, free: 4.027 MB / 0.7482 GB Notification: Performance of collectPreVariables (initialization): time 0.001122/1.506, allocations: 117.7 kB / 1.027 GB, free: 3.906 MB / 0.7482 GB Notification: Performance of collectInitialEqns (initialization): time 0.004533/1.511, allocations: 4.285 MB / 1.031 GB, free: 15.6 MB / 0.7638 GB Notification: Performance of collectInitialBindings (initialization): time 0.002398/1.513, allocations: 1.556 MB / 1.032 GB, free: 14.06 MB / 0.7638 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007015/1.514, allocations: 116 kB / 1.033 GB, free: 13.95 MB / 0.7638 GB Notification: Performance of setup shared object (initialization): time 0.0004257/1.514, allocations: 0.5459 MB / 1.033 GB, free: 13.39 MB / 0.7638 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005093/1.519, allocations: 3.009 MB / 1.036 GB, free: 10.38 MB / 0.7638 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006299/1.526, allocations: 4.868 MB / 1.041 GB, free: 4.703 MB / 0.7638 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00639/1.532, allocations: 4.048 MB / 1.045 GB, free: 0.6914 MB / 0.7638 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.292e-05/1.532, allocations: 20 kB / 1.045 GB, free: 0.6719 MB / 0.7638 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01588/1.548, allocations: 8.863 MB / 1.053 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.00961/1.558, allocations: 29.08 MB / 1.082 GB, free: 9.117 MB / 0.8107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/1.558, allocations: 56 kB / 1.082 GB, free: 9.062 MB / 0.8107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001177/1.558, allocations: 100 kB / 1.082 GB, free: 8.965 MB / 0.8107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006181/1.564, allocations: 1.424 MB / 1.083 GB, free: 7.633 MB / 0.8107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001685/1.564, allocations: 124.4 kB / 1.083 GB, free: 7.535 MB / 0.8107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008313/1.573, allocations: 0.6466 MB / 1.084 GB, free: 6.887 MB / 0.8107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001355/1.574, allocations: 283.9 kB / 1.084 GB, free: 6.609 MB / 0.8107 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/1.574, allocations: 0.9375 kB / 1.084 GB, free: 6.609 MB / 0.8107 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01426/1.588, allocations: 8.281 MB / 1.092 GB, free: 14.68 MB / 0.8263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/1.588, allocations: 60 kB / 1.092 GB, free: 14.62 MB / 0.8263 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.455e-05/1.589, allocations: 96 kB / 1.093 GB, free: 14.53 MB / 0.8263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005454/1.594, allocations: 1.423 MB / 1.094 GB, free: 13.2 MB / 0.8263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001439/1.594, allocations: 133.8 kB / 1.094 GB, free: 13.09 MB / 0.8263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006832/1.601, allocations: 0.6118 MB / 1.095 GB, free: 12.48 MB / 0.8263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009819/1.602, allocations: 272 kB / 1.095 GB, free: 12.21 MB / 0.8263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * 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.006375/1.608, allocations: 3.557 MB / 1.098 GB, free: 8.727 MB / 0.8263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002335/1.611, allocations: 0.7141 MB / 1.099 GB, free: 8.004 MB / 0.8263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01292/1.624, allocations: 7.135 MB / 1.106 GB, free: 0.8477 MB / 0.8263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-05/1.624, allocations: 44 kB / 1.106 GB, free: 0.8047 MB / 0.8263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/1.624, allocations: 4 kB / 1.106 GB, free: 0.8008 MB / 0.8263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009004/1.633, allocations: 5.842 MB / 1.112 GB, free: 10.94 MB / 0.8419 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.03473/1.668, allocations: 16.62 MB / 1.128 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/1.668, allocations: 11.98 kB / 1.128 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004137/1.672, allocations: 0.8934 MB / 1.129 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.321e-05/1.672, allocations: 12 kB / 1.129 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000592/1.672, allocations: 115.9 kB / 1.129 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.379e-05/1.672, allocations: 18.91 kB / 1.129 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.672, allocations: 5.625 kB / 1.129 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01661/1.689, allocations: 10.79 MB / 1.14 GB, free: 14.38 MB / 0.8732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005771/1.695, allocations: 1.788 MB / 1.141 GB, free: 12.56 MB / 0.8732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002226/1.697, allocations: 99.98 kB / 1.141 GB, free: 12.46 MB / 0.8732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006995/1.704, allocations: 0.6032 MB / 1.142 GB, free: 11.86 MB / 0.8732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007764/1.705, allocations: 255.1 kB / 1.142 GB, free: 11.61 MB / 0.8732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008345/1.706, allocations: 199.8 kB / 1.143 GB, free: 11.42 MB / 0.8732 GB Notification: Performance of sorting global known variables: time 0.01046/1.716, allocations: 5.522 MB / 1.148 GB, free: 5.922 MB / 0.8732 GB Notification: Performance of sort global known variables: time 1.623e-06/1.716, allocations: 0 / 1.148 GB, free: 5.922 MB / 0.8732 GB Notification: Performance of remove unused functions: time 0.01995/1.736, allocations: 4.855 MB / 1.153 GB, free: 1.055 MB / 0.8732 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (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,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * 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.002342/1.739, allocations: 0.5823 MB / 1.153 GB, free: 0.5508 MB / 0.8732 GB Notification: Performance of simCode: created initialization part: time 0.0195/1.758, allocations: 11.5 MB / 1.164 GB, free: 5.414 MB / 0.8888 GB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.758, allocations: 4.562 kB / 1.164 GB, free: 5.41 MB / 0.8888 GB Notification: Performance of simCode: created simulation system equations: time 0.005079/1.763, allocations: 3.22 MB / 1.168 GB, free: 2.25 MB / 0.8888 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02147/1.785, allocations: 4.389 MB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04427/1.829, allocations: 22.51 MB / 1.194 GB, free: 7.434 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008801/1.838, allocations: 6.26 MB / 1.2 GB, free: 1.137 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.01534/1.853, allocations: 4.374 MB / 1.204 GB, free: 12.75 MB / 0.9357 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003497/1.857, allocations: 0.6045 MB / 1.205 GB, free: 12.15 MB / 0.9357 GB Notification: Performance of SimCode: time 7.92e-07/1.857, allocations: 0 / 1.205 GB, free: 12.15 MB / 0.9357 GB Notification: Performance of Templates: time 0.6556/2.513, allocations: 154.8 MB / 1.356 GB, free: 329.3 MB / 0.9982 GB make -j1 -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_8_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) Environment - environmentSimulation: