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.9438/0.9438, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 184.7 kB / 187.3 MB, free: 11.89 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.495/1.495, allocations: 221.3 MB / 441.4 MB, free: 4.586 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.0009402/0.0009403, allocations: 95.39 kB / 0.5124 GB, free: 24.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00244/0.002441, allocations: 272 kB / 0.5939 GB, free: 7.938 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.383e-05/4.396e-05, allocations: 4 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5446/0.5447, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9339/1.479, allocations: 382.6 MB / 1.138 GB, free: 7.98 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/1.479, allocations: 98.59 kB / 1.138 GB, free: 7.93 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 11.77/13.25, allocations: 2.966 GB / 4.104 GB, free: 71.82 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.485e-06/13.25, allocations: 2.188 kB / 4.104 GB, free: 71.82 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.00149/13.25, allocations: 248.5 kB / 4.104 GB, free: 71.78 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.02853/13.28, allocations: 8.282 MB / 4.112 GB, free: 66.67 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/13.28, allocations: 15.62 kB / 4.112 GB, free: 66.67 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008208/13.29, allocations: 1.166 MB / 4.114 GB, free: 66.1 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03014/13.32, allocations: 10.75 MB / 4.124 GB, free: 55.49 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007275/13.32, allocations: 0.6095 MB / 4.125 GB, free: 54.88 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003949/13.32, allocations: 0.8276 MB / 4.125 GB, free: 54.06 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03475/13.36, allocations: 11.55 MB / 4.137 GB, free: 42.12 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004878/13.36, allocations: 27.72 kB / 4.137 GB, free: 42.1 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003431/13.36, allocations: 353.6 kB / 4.137 GB, free: 41.75 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000224/13.36, allocations: 251.8 kB / 4.137 GB, free: 41.51 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02252/13.39, allocations: 9.436 MB / 4.147 GB, free: 32.07 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.7272/14.11, allocations: 46.59 MB / 4.192 GB, free: 57.1 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009768/14.12, allocations: 6.248 MB / 4.198 GB, free: 56.82 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007574/14.13, allocations: 5.409 MB / 4.203 GB, free: 56.77 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001178/14.13, allocations: 0.8164 MB / 4.204 GB, free: 56.01 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006358/14.14, allocations: 3.322 MB / 4.207 GB, free: 55.84 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006102/14.14, allocations: 0.5576 MB / 4.208 GB, free: 55.84 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 3.404e-05/14.14, allocations: 0 / 4.208 GB, free: 55.84 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.01263/14.16, allocations: 6.192 MB / 4.214 GB, free: 55.48 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.159e-05/14.16, allocations: 153.9 kB / 4.214 GB, free: 55.35 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01393/14.17, allocations: 7.028 MB / 4.221 GB, free: 54.93 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001525/14.17, allocations: 113.8 kB / 4.221 GB, free: 54.89 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.005239/14.18, allocations: 4.278 MB / 4.225 GB, free: 53.73 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.00275/14.18, allocations: 1.563 MB / 4.227 GB, free: 52.91 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005292/14.18, allocations: 116.6 kB / 4.227 GB, free: 52.91 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000386/14.18, allocations: 0.5468 MB / 4.228 GB, free: 52.59 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00424/14.19, allocations: 2.899 MB / 4.23 GB, free: 52.57 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005651/14.19, allocations: 4.766 MB / 4.235 GB, free: 50.38 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006329/14.2, allocations: 3.959 MB / 4.239 GB, free: 50.26 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-05/14.2, allocations: 16.03 kB / 4.239 GB, free: 50.26 MB / 0.7292 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.0181/14.22, allocations: 8.665 MB / 4.247 GB, free: 49.72 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.01434/14.23, allocations: 29.08 MB / 4.276 GB, free: 51.54 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003089/14.23, allocations: 57.75 kB / 4.276 GB, free: 51.54 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001865/14.23, allocations: 97.19 kB / 4.276 GB, free: 51.54 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007309/14.24, allocations: 1.443 MB / 4.277 GB, free: 51.54 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002277/14.24, allocations: 128.6 kB / 4.277 GB, free: 51.54 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0112/14.25, allocations: 0.6283 MB / 4.278 GB, free: 51.47 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002528/14.25, allocations: 282.2 kB / 4.278 GB, free: 51.47 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/14.25, allocations: 8.438 kB / 4.278 GB, free: 51.47 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02056/14.27, allocations: 8.082 MB / 4.286 GB, free: 51.32 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003119/14.27, allocations: 62.05 kB / 4.286 GB, free: 51.32 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/14.27, allocations: 98.25 kB / 4.286 GB, free: 51.32 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007017/14.28, allocations: 1.442 MB / 4.288 GB, free: 51.32 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002213/14.28, allocations: 126.3 kB / 4.288 GB, free: 51.32 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01045/14.29, allocations: 0.6009 MB / 4.288 GB, free: 51.27 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002189/14.29, allocations: 285.2 kB / 4.289 GB, free: 51.27 MB / 0.7605 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.004181/14.3, allocations: 0.5288 MB / 4.289 GB, free: 51.06 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004246/14.3, allocations: 0.7121 MB / 4.29 GB, free: 50.7 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01859/14.32, allocations: 6.962 MB / 4.297 GB, free: 50.4 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.246e-05/14.32, allocations: 46.23 kB / 4.297 GB, free: 50.4 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-05/14.32, allocations: 0 / 4.297 GB, free: 50.4 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01038/14.33, allocations: 5.674 MB / 4.302 GB, free: 50.18 MB / 0.7605 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.05417/14.39, allocations: 16.44 MB / 4.318 GB, free: 49.11 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/14.39, allocations: 0 / 4.318 GB, free: 49.11 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004945/14.39, allocations: 0.911 MB / 4.319 GB, free: 49.11 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001005/14.39, allocations: 16.31 kB / 4.319 GB, free: 49.11 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001216/14.39, allocations: 122 kB / 4.319 GB, free: 49.11 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.387e-05/14.39, allocations: 16.56 kB / 4.319 GB, free: 49.11 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/14.39, allocations: 3.953 kB / 4.319 GB, free: 49.11 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02111/14.41, allocations: 10.54 MB / 4.33 GB, free: 48.18 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007422/14.42, allocations: 1.748 MB / 4.331 GB, free: 47.72 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003066/14.42, allocations: 92.03 kB / 4.332 GB, free: 47.72 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008071/14.43, allocations: 0.568 MB / 4.332 GB, free: 47.69 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006547/14.43, allocations: 251.5 kB / 4.332 GB, free: 47.69 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008187/14.43, allocations: 199.2 kB / 4.333 GB, free: 47.69 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.01167/14.44, allocations: 5.472 MB / 4.338 GB, free: 47.44 MB / 0.7605 GB Notification: Performance of sort global known variables: time 3.21e-07/14.44, allocations: 2.812 kB / 4.338 GB, free: 47.44 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.02675/14.47, allocations: 4.919 MB / 4.343 GB, free: 46.75 MB / 0.7605 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.003341/14.48, allocations: 0.9295 MB / 4.344 GB, free: 46.59 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.01865/14.49, allocations: 11.42 MB / 4.355 GB, free: 46.03 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/14.49, allocations: 4.25 kB / 4.355 GB, free: 46.03 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.004432/14.5, allocations: 3.129 MB / 4.358 GB, free: 45.8 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02526/14.52, allocations: 4.39 MB / 4.362 GB, free: 45.75 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03543/14.56, allocations: 16.6 MB / 4.378 GB, free: 40.76 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009425/14.57, allocations: 6.269 MB / 4.384 GB, free: 38.76 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.02343/14.59, allocations: 6.624 MB / 4.391 GB, free: 38.33 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002899/14.59, allocations: 0.4901 MB / 4.391 GB, free: 38.3 MB / 0.7605 GB Notification: Performance of SimCode: time 2.134e-06/14.59, allocations: 0 / 4.391 GB, free: 38.3 MB / 0.7605 GB Notification: Performance of Templates: time 0.8695/15.46, allocations: 164.2 MB / 4.552 GB, free: 97 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)