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.0007785/0.0007786, allocations: 98.81 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008575/0.0008574, allocations: 185.5 kB / 16.92 MB, free: 6.754 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.479/1.479, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8587/0.8587, allocations: 115.5 MB / 407.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004909/0.0004911, allocations: 8 kB / 495.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2561, allocations: 77.53 MB / 0.5599 GB, free: 9.066 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Storage.Examples.Stratified): time 0.3643/0.6205, allocations: 54.72 MB / 0.6134 GB, free: 3.305 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02241/0.643, allocations: 17.32 MB / 0.6303 GB, free: 6.895 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002629/0.6456, allocations: 65 kB / 0.6304 GB, free: 6.871 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002229/0.6479, allocations: 0.7892 MB / 0.6311 GB, free: 6.438 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006751/0.6546, allocations: 2.28 MB / 0.6333 GB, free: 4.926 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00503/0.6597, allocations: 1.601 MB / 0.6349 GB, free: 3.734 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.03747/0.6972, allocations: 38.33 MB / 0.6723 GB, free: 3.668 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01789/0.7151, allocations: 11.43 MB / 0.6835 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01545/0.7306, allocations: 7.088 MB / 0.6904 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01533/0.746, allocations: 7.981 MB / 0.6982 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.003313/0.7493, allocations: 472 kB / 0.6987 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00988/0.7592, allocations: 1.556 MB / 0.7002 GB, free: 6.973 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.006736/0.766, allocations: 2.194 MB / 0.7023 GB, free: 4.77 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.01618/0.7822, allocations: 5.358 MB / 0.7076 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.02602/0.8083, allocations: 17.14 MB / 0.7243 GB, free: 14.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.8083, allocations: 4 kB / 0.7243 GB, free: 14.17 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.615e-06/0.8083, allocations: 0 / 0.7243 GB, free: 14.17 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0006759/0.809, allocations: 0 / 0.7243 GB, free: 14.17 MB / 0.545 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.02276/0.8318, allocations: 9.468 MB / 0.7335 GB, free: 4.602 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.8319, allocations: 8.031 kB / 0.7336 GB, free: 4.594 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008583/0.8405, allocations: 1.175 MB / 0.7347 GB, free: 3.406 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01903/0.8595, allocations: 9.208 MB / 0.7437 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006827/0.8603, allocations: 0.6101 MB / 0.7443 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002624/0.8629, allocations: 0.8163 MB / 0.7451 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03015/0.8931, allocations: 12.53 MB / 0.7573 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003888/0.8935, allocations: 27.77 kB / 0.7573 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002427/0.8959, allocations: 356 kB / 0.7577 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002797/0.8962, allocations: 247.9 kB / 0.7579 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02309/0.9193, allocations: 10.43 MB / 0.7681 GB, free: 0.7188 MB / 0.5762 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.08194/1.001, allocations: 48.91 MB / 0.8159 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/1.012, allocations: 6.271 MB / 0.822 GB, free: 6.793 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008759/1.021, allocations: 4.966 MB / 0.8268 GB, free: 1.812 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001608/1.023, allocations: 0.8477 MB / 0.8277 GB, free: 0.8164 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.6942/1.717, allocations: 3.425 MB / 0.831 GB, free: 208.7 MB / 0.6388 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004819/1.722, allocations: 0.4979 MB / 0.8315 GB, free: 208.7 MB / 0.6388 GB Notification: Performance of pre-optimization done (n=449): time 2.195e-05/1.722, allocations: 3.844 kB / 0.8315 GB, free: 208.7 MB / 0.6388 GB Notification: Performance of matching and sorting (n=449): time 0.01957/1.741, allocations: 8.888 MB / 0.8402 GB, free: 206.8 MB / 0.6388 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/1.742, allocations: 160.5 kB / 0.8403 GB, free: 206.7 MB / 0.6388 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01861/1.76, allocations: 7.424 MB / 0.8476 GB, free: 204.3 MB / 0.6388 GB Notification: Performance of collectPreVariables (initialization): time 0.001573/1.762, allocations: 115 kB / 0.8477 GB, free: 204.2 MB / 0.6388 GB Notification: Performance of collectInitialEqns (initialization): time 0.00531/1.767, allocations: 4.33 MB / 0.8519 GB, free: 201 MB / 0.6388 GB Notification: Performance of collectInitialBindings (initialization): time 0.002851/1.77, allocations: 1.558 MB / 0.8534 GB, free: 199.8 MB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/1.771, allocations: 483.3 kB / 0.8539 GB, free: 199.6 MB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 7.246e-05/1.771, allocations: 306 kB / 0.8542 GB, free: 199.3 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005736/1.777, allocations: 3.011 MB / 0.8571 GB, free: 198.2 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006678/1.784, allocations: 4.904 MB / 0.8619 GB, free: 194.9 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01163/1.795, allocations: 8.601 MB / 0.8703 GB, free: 189.9 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.831e-05/1.795, allocations: 18.34 kB / 0.8703 GB, free: 189.9 MB / 0.6388 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01698/1.812, allocations: 8.889 MB / 0.879 GB, free: 185.9 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 0.001016/1.813, allocations: 1.907 MB / 0.8809 GB, free: 183.3 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.018e-05/1.814, allocations: 56 kB / 0.8809 GB, free: 183.2 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001137/1.814, allocations: 89.31 kB / 0.881 GB, free: 183.1 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005187/1.819, allocations: 1.361 MB / 0.8824 GB, free: 181.8 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001163/1.819, allocations: 127.6 kB / 0.8825 GB, free: 181.6 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008964/1.828, allocations: 0.6193 MB / 0.8831 GB, free: 181 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001398/1.829, allocations: 280 kB / 0.8834 GB, free: 180.7 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/1.829, allocations: 7.938 kB / 0.8834 GB, free: 180.7 MB / 0.6388 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01547/1.845, allocations: 8.29 MB / 0.8915 GB, free: 172.4 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001678/1.845, allocations: 60 kB / 0.8915 GB, free: 172.4 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.044e-05/1.845, allocations: 88.91 kB / 0.8916 GB, free: 172.3 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005178/1.85, allocations: 1.361 MB / 0.8929 GB, free: 170.9 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000157/1.851, allocations: 128.2 kB / 0.893 GB, free: 170.8 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008595/1.859, allocations: 0.5962 MB / 0.8936 GB, free: 170.2 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001512/1.861, allocations: 276 kB / 0.8939 GB, free: 169.9 MB / 0.6388 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.008878/1.87, allocations: 3.597 MB / 0.8974 GB, free: 166.3 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003378/1.873, allocations: 0.7256 MB / 0.8981 GB, free: 165.6 MB / 0.6388 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01493/1.888, allocations: 7.125 MB / 0.9051 GB, free: 158.4 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.463e-05/1.888, allocations: 44 kB / 0.9051 GB, free: 158.4 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/1.888, allocations: 0 / 0.9051 GB, free: 158.4 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008803/1.897, allocations: 5.848 MB / 0.9108 GB, free: 152.5 MB / 0.6388 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.03671/1.934, allocations: 16.55 MB / 0.927 GB, free: 135.9 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/1.934, allocations: 0 / 0.927 GB, free: 135.9 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004152/1.938, allocations: 0.9441 MB / 0.9279 GB, free: 135 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.445e-05/1.938, allocations: 16 kB / 0.9279 GB, free: 135 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007545/1.939, allocations: 119.9 kB / 0.928 GB, free: 134.8 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.895e-05/1.939, allocations: 19.94 kB / 0.9281 GB, free: 134.8 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.939, allocations: 1.125 kB / 0.9281 GB, free: 134.8 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/1.954, allocations: 10.59 MB / 0.9384 GB, free: 124.2 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004604/1.959, allocations: 1.675 MB / 0.94 GB, free: 122.5 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001845/1.96, allocations: 92.17 kB / 0.9401 GB, free: 122.4 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006497/1.967, allocations: 0.6411 MB / 0.9407 GB, free: 121.8 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006781/1.968, allocations: 256.4 kB / 0.941 GB, free: 121.5 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000495/1.968, allocations: 199.8 kB / 0.9412 GB, free: 121.3 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.008595/1.977, allocations: 5.198 MB / 0.9463 GB, free: 116.1 MB / 0.6388 GB Notification: Performance of sort global known variables: time 7.61e-07/1.977, allocations: 0 / 0.9463 GB, free: 116.1 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.01694/1.994, allocations: 4.805 MB / 0.9509 GB, free: 111.3 MB / 0.6388 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.002187/1.996, allocations: 0.5777 MB / 0.9515 GB, free: 110.8 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.01936/2.015, allocations: 11.48 MB / 0.9627 GB, free: 99.32 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/2.015, allocations: 4.562 kB / 0.9627 GB, free: 99.31 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.004876/2.02, allocations: 3.204 MB / 0.9659 GB, free: 96.09 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02673/2.047, allocations: 4.473 MB / 0.9702 GB, free: 91.75 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0363/2.083, allocations: 23.45 MB / 0.9931 GB, free: 68.26 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008073/2.091, allocations: 6.141 MB / 0.9991 GB, free: 62.08 MB / 0.6388 GB Notification: Performance of simCode: alias equations: time 0.01498/2.106, allocations: 4.255 MB / 1.003 GB, free: 57.82 MB / 0.6388 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003394/2.11, allocations: 0.6086 MB / 1.004 GB, free: 57.21 MB / 0.6388 GB Notification: Performance of SimCode: time 1.443e-06/2.11, allocations: 0 / 1.004 GB, free: 57.21 MB / 0.6388 GB Notification: Performance of Templates: time 0.6257/2.736, allocations: 157.7 MB / 1.158 GB, free: 148.7 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)