Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified") translateModel(IBPSA.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0008597/0.0008596, allocations: 88.78 kB / 16.67 MB, free: 6.594 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.0008928/0.0008929, allocations: 184 kB / 17.58 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.3 MB / 241.6 MB, free: 232 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7279/0.7279, allocations: 115.5 MB / 408.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003708, allocations: 12 kB / 496.5 MB, free: 15.69 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4415, allocations: 77.51 MB / 0.5606 GB, free: 36.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Storage.Examples.Stratified): time 0.05212/0.4937, allocations: 54.74 MB / 0.614 GB, free: 12.05 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.02879/0.5225, allocations: 17.32 MB / 0.6309 GB, free: 11.19 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004302/0.5269, allocations: 75.5 kB / 0.631 GB, free: 11.12 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00347/0.5304, allocations: 0.7848 MB / 0.6318 GB, free: 10.33 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008775/0.5392, allocations: 2.274 MB / 0.634 GB, free: 8.047 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005703/0.5449, allocations: 1.612 MB / 0.6356 GB, free: 6.449 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.04355/0.5885, allocations: 38.32 MB / 0.673 GB, free: 44 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02314/0.6117, allocations: 11.43 MB / 0.6841 GB, free: 4.504 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01804/0.6298, allocations: 7.08 MB / 0.6911 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01731/0.6471, allocations: 7.985 MB / 0.6989 GB, free: 5.375 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.003661/0.6508, allocations: 472 kB / 0.6993 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009341/0.6602, allocations: 1.552 MB / 0.7008 GB, free: 3.359 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.005309/0.6655, allocations: 2.194 MB / 0.703 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.01554/0.6811, allocations: 5.362 MB / 0.7082 GB, free: 11.76 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0206/0.7017, allocations: 14.49 MB / 0.7223 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 9.849e-06/0.7018, allocations: 3.984 kB / 0.7224 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.144e-06/0.7018, allocations: 7.938 kB / 0.7224 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0008487/0.7026, allocations: 0 / 0.7224 GB, free: 13.23 MB / 0.5606 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.02786/0.7305, allocations: 9.46 MB / 0.7316 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.7306, allocations: 11.97 kB / 0.7316 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006451/0.737, allocations: 1.187 MB / 0.7328 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02155/0.7586, allocations: 9.194 MB / 0.7417 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008253/0.7595, allocations: 0.6178 MB / 0.7424 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003394/0.7629, allocations: 0.8085 MB / 0.7431 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6227/1.386, allocations: 12.53 MB / 0.7554 GB, free: 149.3 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003995/1.386, allocations: 26.92 kB / 0.7554 GB, free: 149.3 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00231/1.388, allocations: 358 kB / 0.7557 GB, free: 149.1 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005295/1.389, allocations: 250.2 kB / 0.756 GB, free: 149 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02901/1.418, allocations: 10.43 MB / 0.7662 GB, free: 145.5 MB / 0.5763 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.07202/1.49, allocations: 48.91 MB / 0.8139 GB, free: 108.4 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008361/1.498, allocations: 6.266 MB / 0.82 GB, free: 105 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006695/1.505, allocations: 4.968 MB / 0.8249 GB, free: 100 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001216/1.506, allocations: 0.8489 MB / 0.8257 GB, free: 99.06 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005429/1.512, allocations: 3.428 MB / 0.8291 GB, free: 95.6 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004748/1.517, allocations: 0.4984 MB / 0.8296 GB, free: 95.09 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=449): time 2.04e-05/1.517, allocations: 0 / 0.8296 GB, free: 95.09 MB / 0.5763 GB Notification: Performance of matching and sorting (n=449): time 0.01383/1.531, allocations: 8.896 MB / 0.8383 GB, free: 86.16 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.422e-05/1.531, allocations: 158.2 kB / 0.8384 GB, free: 85.98 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01122/1.542, allocations: 7.42 MB / 0.8456 GB, free: 78.59 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001218/1.543, allocations: 113.7 kB / 0.8458 GB, free: 78.47 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003783/1.547, allocations: 4.328 MB / 0.85 GB, free: 74.12 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002314/1.549, allocations: 1.554 MB / 0.8515 GB, free: 72.58 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000745/1.55, allocations: 478.8 kB / 0.852 GB, free: 72.11 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.618e-05/1.55, allocations: 313 kB / 0.8523 GB, free: 71.8 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004101/1.554, allocations: 3.013 MB / 0.8552 GB, free: 68.78 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004875/1.559, allocations: 4.901 MB / 0.86 GB, free: 63.04 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009745/1.569, allocations: 8.604 MB / 0.8684 GB, free: 53.59 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.732e-05/1.569, allocations: 16 kB / 0.8684 GB, free: 53.57 MB / 0.5763 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01448/1.583, allocations: 8.882 MB / 0.8771 GB, free: 44.66 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008307/1.584, allocations: 1.901 MB / 0.8789 GB, free: 41.93 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.543e-05/1.584, allocations: 59.94 kB / 0.879 GB, free: 41.88 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.433e-05/1.584, allocations: 88 kB / 0.8791 GB, free: 41.79 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005411/1.59, allocations: 1.365 MB / 0.8804 GB, free: 40.42 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001258/1.59, allocations: 123.6 kB / 0.8805 GB, free: 40.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007598/1.598, allocations: 0.6193 MB / 0.8811 GB, free: 39.68 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.599, allocations: 280 kB / 0.8814 GB, free: 39.41 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.599, allocations: 5.875 kB / 0.8814 GB, free: 39.4 MB / 0.5763 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01201/1.611, allocations: 8.294 MB / 0.8895 GB, free: 31.09 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.696e-05/1.611, allocations: 60 kB / 0.8896 GB, free: 31.04 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.065e-05/1.611, allocations: 88 kB / 0.8896 GB, free: 30.95 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005015/1.616, allocations: 1.362 MB / 0.891 GB, free: 29.59 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001097/1.616, allocations: 127.5 kB / 0.8911 GB, free: 29.46 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00726/1.623, allocations: 0.6034 MB / 0.8917 GB, free: 28.86 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/1.624, allocations: 276 kB / 0.8919 GB, free: 28.59 MB / 0.5763 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 (P.nextEventScaled,P.nextEvent,$PRE.P.nextEvent,P.last,P.b,P.a,TWat.nextEventScaled,TWat.nextEvent,$PRE.TWat.nextEvent,TWat.last,TWat.b,TWat.a,$whenCondition2,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006308/1.631, allocations: 3.603 MB / 0.8955 GB, free: 24.96 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001962/1.633, allocations: 0.7257 MB / 0.8962 GB, free: 24.23 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/1.643, allocations: 7.122 MB / 0.9031 GB, free: 17.08 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.051e-05/1.643, allocations: 44 kB / 0.9032 GB, free: 17.04 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/1.643, allocations: 0 / 0.9032 GB, free: 17.04 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00719/1.65, allocations: 5.842 MB / 0.9089 GB, free: 11.16 MB / 0.5763 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.03128/1.682, allocations: 16.55 MB / 0.925 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-05/1.682, allocations: 0 / 0.925 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004222/1.686, allocations: 0.9403 MB / 0.926 GB, free: 9.613 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-05/1.686, allocations: 16 kB / 0.926 GB, free: 9.598 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004983/1.686, allocations: 119.9 kB / 0.9261 GB, free: 9.48 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.102e-05/1.686, allocations: 16 kB / 0.9261 GB, free: 9.465 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/1.686, allocations: 7.875 kB / 0.9261 GB, free: 9.457 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01685/1.703, allocations: 10.57 MB / 0.9364 GB, free: 14.82 MB / 0.6076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005702/1.709, allocations: 1.671 MB / 0.9381 GB, free: 13.12 MB / 0.6076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002234/1.711, allocations: 99.92 kB / 0.9382 GB, free: 13.02 MB / 0.6076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007568/1.719, allocations: 0.6314 MB / 0.9388 GB, free: 12.39 MB / 0.6076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001262/1.72, allocations: 259.1 kB / 0.939 GB, free: 12.14 MB / 0.6076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000765/1.721, allocations: 195.9 kB / 0.9392 GB, free: 11.95 MB / 0.6076 GB Notification: Performance of sorting global known variables: time 0.01159/1.733, allocations: 5.202 MB / 0.9443 GB, free: 6.777 MB / 0.6076 GB Notification: Performance of sort global known variables: time 2.71e-07/1.733, allocations: 4 kB / 0.9443 GB, free: 6.773 MB / 0.6076 GB Notification: Performance of remove unused functions: time 0.01811/1.751, allocations: 4.807 MB / 0.949 GB, free: 1.977 MB / 0.6076 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002454/1.753, allocations: 0.5829 MB / 0.9496 GB, free: 1.445 MB / 0.6076 GB Notification: Performance of simCode: created initialization part: time 0.0211/1.774, allocations: 11.48 MB / 0.9608 GB, free: 5.938 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-05/1.774, allocations: 6.438 kB / 0.9608 GB, free: 5.93 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.005852/1.78, allocations: 3.2 MB / 0.9639 GB, free: 2.707 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02726/1.808, allocations: 4.482 MB / 0.9683 GB, free: 14.35 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04729/1.855, allocations: 23.56 MB / 0.9913 GB, free: 6.723 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01017/1.865, allocations: 6.099 MB / 0.9973 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3136/2.179, allocations: 0.649 MB / 0.9979 GB, free: 204.3 MB / 0.6544 GB Notification: Performance of SimCode: time 1.944e-06/2.179, allocations: 0 / 0.9979 GB, free: 204.3 MB / 0.6544 GB Notification: Performance of Templates: time 0.2188/2.398, allocations: 152.1 MB / 1.146 GB, free: 92.18 MB / 0.6544 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.sim & ./IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe 2>&1)