Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading") translateModel(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001971/0.001971, allocations: 196.2 kB / 16.26 MB, free: 6.629 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.511/1.511, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00264/0.00264, allocations: 294.3 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.158/1.158, allocations: 178.6 MB / 0.507 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002863/0.002863, allocations: 100.8 kB / 0.6059 GB, free: 25.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1667, allocations: 89.16 MB / 0.693 GB, free: 4.766 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05965/0.2264, allocations: 55.51 MB / 0.7472 GB, free: 13.06 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.3583/0.5847, allocations: 17.79 MB / 0.7646 GB, free: 7.77 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003516/0.5883, allocations: 68.91 kB / 0.7646 GB, free: 7.77 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002714/0.5911, allocations: 0.7578 MB / 0.7654 GB, free: 7.77 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.007378/0.5985, allocations: 2.328 MB / 0.7676 GB, free: 7.73 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003718/0.6022, allocations: 1.401 MB / 0.769 GB, free: 7.699 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.02316/0.6254, allocations: 21.35 MB / 0.7899 GB, free: 5.348 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01421/0.6396, allocations: 10.59 MB / 0.8002 GB, free: 17.12 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01867/0.6583, allocations: 7.217 MB / 0.8072 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01264/0.671, allocations: 6.545 MB / 0.8136 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.002659/0.6737, allocations: 0.9283 MB / 0.8145 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007323/0.681, allocations: 1.697 MB / 0.8162 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.003798/0.6849, allocations: 2.327 MB / 0.8185 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.01516/0.7, allocations: 4.7 MB / 0.8231 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.02622/0.7263, allocations: 13 MB / 0.8358 GB, free: 9.605 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.7264, allocations: 0 / 0.8358 GB, free: 9.605 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.775e-06/0.7264, allocations: 4 kB / 0.8358 GB, free: 9.602 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.000563/0.727, allocations: 4 kB / 0.8358 GB, free: 9.598 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.03283/0.7598, allocations: 8.504 MB / 0.8441 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/0.7599, allocations: 15.12 kB / 0.8441 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005711/0.7656, allocations: 0.8508 MB / 0.8449 GB, free: 200 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01497/0.7806, allocations: 6.62 MB / 0.8514 GB, free: 9.664 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005518/0.7812, allocations: 459.5 kB / 0.8518 GB, free: 9.215 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002485/0.7837, allocations: 0.6014 MB / 0.8524 GB, free: 8.613 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02453/0.8083, allocations: 9.02 MB / 0.8612 GB, free: 15.28 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002823/0.8086, allocations: 23.78 kB / 0.8612 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002013/0.8106, allocations: 258.7 kB / 0.8615 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002712/0.8109, allocations: 183.9 kB / 0.8617 GB, free: 14.83 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.8296, allocations: 7.449 MB / 0.8689 GB, free: 7.371 MB / 0.6075 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.06259/0.8923, allocations: 35.91 MB / 0.904 GB, free: 1.695 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008788/0.9011, allocations: 4.288 MB / 0.9082 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006228/0.9074, allocations: 3.321 MB / 0.9114 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001654/0.9091, allocations: 0.9539 MB / 0.9124 GB, free: 8.98 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005416/0.9145, allocations: 2.386 MB / 0.9147 GB, free: 6.559 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003926/0.9185, allocations: 407.9 kB / 0.9151 GB, free: 6.156 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=317): time 1.496e-05/0.9185, allocations: 0 / 0.9151 GB, free: 6.156 MB / 0.6544 GB Notification: Performance of matching and sorting (n=317): time 0.01634/0.9348, allocations: 7.14 MB / 0.9221 GB, free: 14.93 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.935, allocations: 89.89 kB / 0.9221 GB, free: 14.83 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01201/0.947, allocations: 5.467 MB / 0.9275 GB, free: 9.383 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.000802/0.9478, allocations: 89.7 kB / 0.9276 GB, free: 9.289 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.004198/0.952, allocations: 3.194 MB / 0.9307 GB, free: 6.078 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.002125/0.9542, allocations: 1.111 MB / 0.9318 GB, free: 4.977 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002755/0.957, allocations: 0.858 MB / 0.9326 GB, free: 4.105 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.9571, allocations: 301.1 kB / 0.9329 GB, free: 3.809 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004213/0.9613, allocations: 2.163 MB / 0.935 GB, free: 1.637 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005722/0.9671, allocations: 3.695 MB / 0.9386 GB, free: 13.25 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/0.9775, allocations: 6.328 MB / 0.9448 GB, free: 6.219 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.679e-05/0.9776, allocations: 12 kB / 0.9448 GB, free: 6.207 MB / 0.6856 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01568/0.9933, allocations: 6.772 MB / 0.9514 GB, free: 15.38 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.9935, allocations: 57.95 kB / 0.9515 GB, free: 15.32 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.048e-05/0.9936, allocations: 48 kB / 0.9515 GB, free: 15.27 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.9948, allocations: 446.5 kB / 0.9519 GB, free: 14.84 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004661/0.9994, allocations: 1.002 MB / 0.9529 GB, free: 13.83 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007595/1.007, allocations: 5.693 MB / 0.9585 GB, free: 7.867 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006533/1.014, allocations: 466.8 kB / 0.9589 GB, free: 7.41 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/1.015, allocations: 220 kB / 0.9591 GB, free: 7.195 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 222 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006038/1.021, allocations: 2.486 MB / 0.9616 GB, free: 4.699 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002269/1.023, allocations: 0.5287 MB / 0.9621 GB, free: 4.164 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/1.036, allocations: 5.261 MB / 0.9672 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.572e-05/1.036, allocations: 36.03 kB / 0.9673 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-05/1.036, allocations: 4 kB / 0.9673 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00834/1.045, allocations: 4.537 MB / 0.9717 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02841/1.073, allocations: 11.96 MB / 0.9834 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/1.073, allocations: 3.469 kB / 0.9834 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00326/1.077, allocations: 0.6438 MB / 0.984 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/1.078, allocations: 369.3 kB / 0.9843 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005696/1.078, allocations: 83.95 kB / 0.9844 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00725/1.086, allocations: 5.625 MB / 0.9899 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/1.086, allocations: 4 kB / 0.9899 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0178/1.103, allocations: 7.76 MB / 0.9975 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003772/1.107, allocations: 1.139 MB / 0.9986 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001815/1.109, allocations: 75.98 kB / 0.9987 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004991/1.114, allocations: 459.4 kB / 0.9991 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007177/1.115, allocations: 194.2 kB / 0.9993 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000601/1.115, allocations: 143.9 kB / 0.9994 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.00864/1.124, allocations: 3.803 MB / 1.003 GB, free: 9.484 MB / 0.7481 GB Notification: Performance of sort global known variables: time 6.21e-07/1.124, allocations: 0 / 1.003 GB, free: 9.484 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.008202/1.132, allocations: 1.987 MB / 1.005 GB, free: 7.492 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (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,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U,tan.vol[6].dynBal.U,tan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001908/1.134, allocations: 492.2 kB / 1.006 GB, free: 7.031 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.02487/1.159, allocations: 11.62 MB / 1.017 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/1.159, allocations: 4 kB / 1.017 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.005153/1.164, allocations: 2.548 MB / 1.019 GB, free: 8.777 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01754/1.182, allocations: 3.397 MB / 1.023 GB, free: 5.504 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02958/1.212, allocations: 16.58 MB / 1.039 GB, free: 4.891 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007616/1.219, allocations: 4.629 MB / 1.043 GB, free: 232 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.008133/1.227, allocations: 2.042 MB / 1.045 GB, free: 14.21 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00234/1.23, allocations: 459.2 kB / 1.046 GB, free: 13.76 MB / 0.795 GB Notification: Performance of SimCode: time 1.543e-06/1.23, allocations: 0 / 1.046 GB, free: 13.76 MB / 0.795 GB Notification: Performance of Templates: time 0.471/1.701, allocations: 119.7 MB / 1.163 GB, free: 220.8 MB / 0.795 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)