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.8071/0.8071, allocations: 143.4 MB / 158.3 MB, free: 5.797 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.001124/0.001124, allocations: 181.1 kB / 191.5 MB, free: 5.777 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.543/1.543, allocations: 223.2 MB / 447.7 MB, free: 4.805 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.00109/0.001091, allocations: 80.41 kB / 0.5188 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001775/0.001775, allocations: 273.5 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004737/0.0004736, allocations: 13.09 kB / 0.6929 GB, free: 59.59 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2092, allocations: 82.79 MB / 0.7737 GB, free: 13.87 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9006/1.11, allocations: 382.7 MB / 1.147 GB, free: 4.156 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003745/1.11, allocations: 95.52 kB / 1.147 GB, free: 4.109 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 11.56/12.67, allocations: 2.973 GB / 4.121 GB, free: 66.25 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.394e-06/12.67, allocations: 0 / 4.121 GB, free: 66.25 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.001631/12.67, allocations: 247.7 kB / 4.121 GB, free: 66.21 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.03858/12.71, allocations: 9.833 MB / 4.13 GB, free: 62.54 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/12.71, allocations: 7.656 kB / 4.13 GB, free: 62.54 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/12.72, allocations: 1.165 MB / 4.132 GB, free: 61.98 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03531/12.75, allocations: 10.8 MB / 4.142 GB, free: 60.87 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008812/12.76, allocations: 0.614 MB / 4.143 GB, free: 60.85 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004644/12.76, allocations: 0.8124 MB / 4.144 GB, free: 60.85 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04112/12.8, allocations: 11.7 MB / 4.155 GB, free: 59.59 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007688/12.8, allocations: 29.17 kB / 4.155 GB, free: 59.59 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004429/12.81, allocations: 358.3 kB / 4.155 GB, free: 59.59 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003505/12.81, allocations: 248.6 kB / 4.156 GB, free: 59.59 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02679/12.83, allocations: 9.637 MB / 4.165 GB, free: 57.46 MB / 0.7292 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.09276/12.93, allocations: 46.6 MB / 4.211 GB, free: 23.27 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01146/12.94, allocations: 6.32 MB / 4.217 GB, free: 16.95 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001401/12.94, allocations: 0.8247 MB / 4.218 GB, free: 16 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007779/12.95, allocations: 3.401 MB / 4.221 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00654/12.95, allocations: 0.5564 MB / 4.221 GB, free: 12 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 2.644e-05/12.95, allocations: 0 / 4.221 GB, free: 12 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.02119/12.97, allocations: 9.011 MB / 4.23 GB, free: 2.922 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.26e-05/12.97, allocations: 154.2 kB / 4.23 GB, free: 2.746 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0187/12.99, allocations: 7.094 MB / 4.237 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.001738/13, allocations: 121.1 kB / 4.237 GB, free: 11.55 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.008254/13, allocations: 4.275 MB / 4.242 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.003777/13.01, allocations: 1.562 MB / 4.243 GB, free: 5.715 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001564/13.01, allocations: 116 kB / 4.243 GB, free: 5.602 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0009231/13.01, allocations: 0.542 MB / 4.244 GB, free: 5.051 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007317/13.02, allocations: 2.986 MB / 4.247 GB, free: 2.059 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.534/13.55, allocations: 4.856 MB / 4.251 GB, free: 84.82 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007389/13.56, allocations: 4.025 MB / 4.255 GB, free: 84.72 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.476e-05/13.56, allocations: 17.75 kB / 4.255 GB, free: 84.72 MB / 0.7448 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02122/13.58, allocations: 8.844 MB / 4.264 GB, free: 84.54 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.006462/13.59, allocations: 29.08 MB / 4.292 GB, free: 54.36 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002837/13.59, allocations: 58.62 kB / 4.292 GB, free: 54.36 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/13.59, allocations: 100 kB / 4.292 GB, free: 54.36 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008705/13.6, allocations: 1.438 MB / 4.294 GB, free: 54.36 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005693/13.6, allocations: 128.2 kB / 4.294 GB, free: 54.36 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01273/13.61, allocations: 0.6341 MB / 4.295 GB, free: 54.36 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002333/13.61, allocations: 281.6 kB / 4.295 GB, free: 54.36 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/13.61, allocations: 4.281 kB / 4.295 GB, free: 54.36 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02018/13.63, allocations: 8.262 MB / 4.303 GB, free: 54.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003395/13.63, allocations: 58.53 kB / 4.303 GB, free: 54.21 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001468/13.63, allocations: 97.75 kB / 4.303 GB, free: 54.21 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007325/13.64, allocations: 1.444 MB / 4.305 GB, free: 54.21 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002109/13.64, allocations: 121.9 kB / 4.305 GB, free: 54.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009838/13.65, allocations: 0.6038 MB / 4.305 GB, free: 54.21 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001923/13.65, allocations: 280.7 kB / 4.306 GB, free: 54.21 MB / 0.7448 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.01054/13.66, allocations: 3.555 MB / 4.309 GB, free: 53.96 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003813/13.67, allocations: 0.7117 MB / 4.31 GB, free: 53.96 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01866/13.69, allocations: 7.113 MB / 4.317 GB, free: 53.68 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.785e-05/13.69, allocations: 47.3 kB / 4.317 GB, free: 53.68 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-05/13.69, allocations: 0 / 4.317 GB, free: 53.68 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01243/13.7, allocations: 5.824 MB / 4.322 GB, free: 53.46 MB / 0.7448 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.05022/13.75, allocations: 16.38 MB / 4.338 GB, free: 52.54 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/13.75, allocations: 10.86 kB / 4.338 GB, free: 52.54 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005334/13.75, allocations: 0.8956 MB / 4.339 GB, free: 52.54 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.114e-05/13.75, allocations: 21.89 kB / 4.339 GB, free: 52.54 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001272/13.75, allocations: 119.7 kB / 4.339 GB, free: 52.54 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.525e-05/13.75, allocations: 22.86 kB / 4.339 GB, free: 52.54 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/13.75, allocations: 3.5 kB / 4.339 GB, free: 52.54 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02215/13.78, allocations: 10.76 MB / 4.35 GB, free: 51.66 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008887/13.79, allocations: 1.753 MB / 4.352 GB, free: 51.2 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004003/13.79, allocations: 97.42 kB / 4.352 GB, free: 51.2 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009999/13.8, allocations: 0.5786 MB / 4.352 GB, free: 51.18 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001879/13.8, allocations: 251.8 kB / 4.353 GB, free: 51.18 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001736/13.8, allocations: 200.5 kB / 4.353 GB, free: 51.18 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01452/13.82, allocations: 5.543 MB / 4.358 GB, free: 50.96 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6.11e-07/13.82, allocations: 0 / 4.358 GB, free: 50.96 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02894/13.85, allocations: 4.922 MB / 4.363 GB, free: 50.61 MB / 0.7448 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.004078/13.85, allocations: 0.9372 MB / 4.364 GB, free: 50.49 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.02499/13.88, allocations: 11.46 MB / 4.375 GB, free: 50.02 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/13.88, allocations: 6.781 kB / 4.375 GB, free: 50.02 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.006626/13.88, allocations: 3.197 MB / 4.378 GB, free: 49.79 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02508/13.91, allocations: 4.401 MB / 4.382 GB, free: 49.76 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05632/13.96, allocations: 22.46 MB / 4.404 GB, free: 41.73 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01617/13.98, allocations: 6.256 MB / 4.411 GB, free: 40.74 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0232/14, allocations: 4.365 MB / 4.415 GB, free: 40.41 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004764/14.01, allocations: 0.6151 MB / 4.415 GB, free: 40.39 MB / 0.7448 GB Notification: Performance of SimCode: time 2.215e-06/14.01, allocations: 3.5 kB / 4.415 GB, free: 40.39 MB / 0.7448 GB Notification: Performance of Templates: time 1.317/15.33, allocations: 158.6 MB / 4.57 GB, free: 72.59 MB / 0.7762 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)