Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.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: translateModel(BuildingSystems.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified") translateModel(BuildingSystems.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8964/0.8964, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 176.6 kB / 182.2 MB, free: 9.461 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 221.5 MB / 436.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001002, allocations: 91.52 kB / 0.5074 GB, free: 10.11 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001869/0.001869, allocations: 269.9 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.728e-05/1.737e-05, allocations: 4 kB / 0.6765 GB, free: 12.84 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4037, allocations: 82.78 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8211/1.225, allocations: 381.9 MB / 1.13 GB, free: 15.84 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/1.225, allocations: 95.12 kB / 1.13 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 10.89/12.11, allocations: 2.951 GB / 4.082 GB, free: 78.73 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.204e-06/12.11, allocations: 0 / 4.082 GB, free: 78.73 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.001935/12.11, allocations: 250.9 kB / 4.082 GB, free: 78.69 MB / 0.7292 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.03328/12.15, allocations: 8.284 MB / 4.09 GB, free: 75.57 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/12.15, allocations: 11.19 kB / 4.09 GB, free: 75.57 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008378/12.15, allocations: 1.172 MB / 4.091 GB, free: 75.02 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03083/12.19, allocations: 10.74 MB / 4.102 GB, free: 73.77 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000746/12.19, allocations: 269.1 kB / 4.102 GB, free: 73.77 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003911/12.19, allocations: 493.5 kB / 4.102 GB, free: 73.77 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0211/12.21, allocations: 8.9 MB / 4.111 GB, free: 71.34 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02952/12.24, allocations: 10.34 MB / 4.121 GB, free: 65.2 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002981/12.24, allocations: 23.78 kB / 4.121 GB, free: 65.17 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001779/12.24, allocations: 16 kB / 4.121 GB, free: 65.16 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002226/12.24, allocations: 250.2 kB / 4.122 GB, free: 64.92 MB / 0.7292 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.06862/12.31, allocations: 44.99 MB / 4.165 GB, free: 19.38 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009248/12.32, allocations: 5.995 MB / 4.171 GB, free: 13.4 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00667/12.33, allocations: 4.652 MB / 4.176 GB, free: 8.738 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001252/12.33, allocations: 0.8233 MB / 4.177 GB, free: 7.785 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005993/12.33, allocations: 3.168 MB / 4.18 GB, free: 4.586 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005766/12.34, allocations: 396.4 kB / 4.18 GB, free: 4.195 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 1.784e-05/12.34, allocations: 0 / 4.18 GB, free: 4.195 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.6806/13.02, allocations: 6.106 MB / 4.186 GB, free: 83.8 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/13.02, allocations: 156.8 kB / 4.186 GB, free: 83.67 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0137/13.04, allocations: 5.83 MB / 4.192 GB, free: 83.34 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001612/13.04, allocations: 32.48 kB / 4.192 GB, free: 83.31 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.005356/13.04, allocations: 4.286 MB / 4.196 GB, free: 82.55 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.002732/13.04, allocations: 1.499 MB / 4.198 GB, free: 81.78 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004374/13.05, allocations: 0.6562 kB / 4.198 GB, free: 81.78 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0003885/13.05, allocations: 0.5405 MB / 4.198 GB, free: 81.46 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003864/13.05, allocations: 2.792 MB / 4.201 GB, free: 81.45 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005887/13.06, allocations: 4.612 MB / 4.205 GB, free: 79.27 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007738/13.06, allocations: 4.061 MB / 4.209 GB, free: 79.22 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/13.06, allocations: 16.16 kB / 4.209 GB, free: 79.22 MB / 0.7292 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01836/13.08, allocations: 8.237 MB / 4.217 GB, free: 78.78 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.007457/13.09, allocations: 27.93 MB / 4.245 GB, free: 49.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003054/13.09, allocations: 59.69 kB / 4.245 GB, free: 49.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002013/13.09, allocations: 95.7 kB / 4.245 GB, free: 49.64 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007215/13.1, allocations: 1.446 MB / 4.246 GB, free: 49.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000165/13.1, allocations: 131.3 kB / 4.246 GB, free: 49.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/13.11, allocations: 0.5064 MB / 4.247 GB, free: 49.6 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001873/13.11, allocations: 287.4 kB / 4.247 GB, free: 49.6 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/13.11, allocations: 4.438 kB / 4.247 GB, free: 49.6 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02034/13.13, allocations: 7.599 MB / 4.255 GB, free: 49.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003803/13.13, allocations: 57.91 kB / 4.255 GB, free: 49.51 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002757/13.13, allocations: 99.81 kB / 4.255 GB, free: 49.51 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007905/13.14, allocations: 1.449 MB / 4.256 GB, free: 49.51 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002061/13.14, allocations: 127.9 kB / 4.256 GB, free: 49.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009147/13.15, allocations: 496.2 kB / 4.257 GB, free: 49.47 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002063/13.15, allocations: 283.8 kB / 4.257 GB, free: 49.47 MB / 0.7292 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 () * 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.003893/13.15, allocations: 361.9 kB / 4.257 GB, free: 49.27 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003688/13.16, allocations: 0.632 MB / 4.258 GB, free: 48.94 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01864/13.18, allocations: 6.752 MB / 4.265 GB, free: 48.72 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.133e-05/13.18, allocations: 40.31 kB / 4.265 GB, free: 48.72 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-05/13.18, allocations: 6.062 kB / 4.265 GB, free: 48.72 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01093/13.19, allocations: 5.64 MB / 4.27 GB, free: 48.56 MB / 0.7292 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.0499/13.24, allocations: 15.38 MB / 4.285 GB, free: 47.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.408e-05/13.24, allocations: 0 / 4.285 GB, free: 47.64 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005158/13.24, allocations: 0.9092 MB / 4.286 GB, free: 47.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.657e-05/13.24, allocations: 14.19 kB / 4.286 GB, free: 47.64 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001056/13.24, allocations: 70.69 kB / 4.286 GB, free: 47.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.338e-05/13.24, allocations: 16.41 kB / 4.286 GB, free: 47.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/13.24, allocations: 6.203 kB / 4.286 GB, free: 47.64 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01998/13.26, allocations: 10.32 MB / 4.296 GB, free: 46.84 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007354/13.27, allocations: 1.667 MB / 4.298 GB, free: 46.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003862/13.28, allocations: 26.25 kB / 4.298 GB, free: 46.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009645/13.28, allocations: 0.4895 MB / 4.298 GB, free: 46.38 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001151/13.29, allocations: 247.7 kB / 4.299 GB, free: 46.38 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001253/13.29, allocations: 206.5 kB / 4.299 GB, free: 46.38 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.01102/13.3, allocations: 4.439 MB / 4.303 GB, free: 46.16 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.42e-07/13.3, allocations: 3.25 kB / 4.303 GB, free: 46.16 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.02608/13.32, allocations: 4.769 MB / 4.308 GB, free: 45.33 MB / 0.7292 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) * 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.004235/13.33, allocations: 0.8817 MB / 4.309 GB, free: 45.18 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.02343/13.35, allocations: 10.86 MB / 4.319 GB, free: 44.65 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.98e-05/13.35, allocations: 5.094 kB / 4.319 GB, free: 44.65 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.005631/13.36, allocations: 3.029 MB / 4.322 GB, free: 44.44 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02286/13.38, allocations: 3.477 MB / 4.326 GB, free: 44.4 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04437/13.43, allocations: 16.12 MB / 4.341 GB, free: 41.39 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01077/13.44, allocations: 6.262 MB / 4.347 GB, free: 40.4 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.02208/13.46, allocations: 5.765 MB / 4.353 GB, free: 40.01 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003115/13.46, allocations: 477.2 kB / 4.354 GB, free: 40 MB / 0.7292 GB Notification: Performance of SimCode: time 1.492e-06/13.46, allocations: 0 / 4.354 GB, free: 40 MB / 0.7292 GB Notification: Performance of Templates: time 0.7776/14.24, allocations: 129.9 MB / 4.48 GB, free: 113.6 MB / 0.7605 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe 2>&1)