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.001047/0.001047, allocations: 99.8 kB / 16.35 MB, free: 5.828 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.0009728/0.0009729, allocations: 193.4 kB / 17.29 MB, free: 5.484 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.249/1.249, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001939/0.001939, allocations: 297.8 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8843/0.8843, allocations: 169.3 MB / 0.4989 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 95.33 kB / 0.5967 GB, free: 14.4 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1735, allocations: 86.98 MB / 0.6816 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.3572/0.5308, allocations: 55.97 MB / 0.7363 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02261/0.5534, allocations: 17.94 MB / 0.7538 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005108/0.5586, allocations: 77.72 kB / 0.7538 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003168/0.5619, allocations: 0.8937 MB / 0.7547 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006787/0.5687, allocations: 2.504 MB / 0.7572 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003741/0.5724, allocations: 1.528 MB / 0.7587 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01949/0.5919, allocations: 21.28 MB / 0.7794 GB, free: 10.55 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01187/0.6039, allocations: 10.67 MB / 0.7899 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01203/0.6159, allocations: 7.147 MB / 0.7968 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01076/0.6267, allocations: 6.362 MB / 0.8031 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.003731/0.6305, allocations: 0.9375 MB / 0.804 GB, free: 1.301 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00742/0.6379, allocations: 1.702 MB / 0.8056 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.004142/0.6421, allocations: 2.341 MB / 0.8079 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.008991/0.6511, allocations: 4.707 MB / 0.8125 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01596/0.6671, allocations: 13.19 MB / 0.8254 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.6671, allocations: 0 / 0.8254 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.964e-06/0.6672, allocations: 0 / 0.8254 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0004629/0.6676, allocations: 0 / 0.8254 GB, free: 11.3 MB / 0.5919 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.02053/0.6882, allocations: 8.523 MB / 0.8337 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.6882, allocations: 8.031 kB / 0.8337 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003181/0.6914, allocations: 0.8586 MB / 0.8346 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01281/0.7042, allocations: 6.707 MB / 0.8411 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/0.7046, allocations: 456.6 kB / 0.8416 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001436/0.706, allocations: 0.6013 MB / 0.8421 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0154/0.7214, allocations: 9.024 MB / 0.851 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.7216, allocations: 23.86 kB / 0.851 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006692/0.7223, allocations: 260 kB / 0.8512 GB, free: 376 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001638/0.7224, allocations: 184 kB / 0.8514 GB, free: 192 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01242/0.7349, allocations: 7.453 MB / 0.8587 GB, free: 8.727 MB / 0.6231 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.05262/0.7875, allocations: 36 MB / 0.8938 GB, free: 2.66 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007493/0.795, allocations: 4.287 MB / 0.898 GB, free: 14.38 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00552/0.8006, allocations: 3.304 MB / 0.9013 GB, free: 11.07 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001401/0.802, allocations: 0.9544 MB / 0.9022 GB, free: 9.93 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004538/0.8066, allocations: 2.386 MB / 0.9045 GB, free: 7.508 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002515/0.8091, allocations: 379.6 kB / 0.9049 GB, free: 7.133 MB / 0.67 GB Notification: Performance of pre-optimization done (n=317): time 1.08e-05/0.8092, allocations: 0 / 0.9049 GB, free: 7.133 MB / 0.67 GB Notification: Performance of matching and sorting (n=317): time 0.01396/0.8231, allocations: 7.125 MB / 0.9118 GB, free: 15.91 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.8232, allocations: 89.89 kB / 0.9119 GB, free: 15.81 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009428/0.8327, allocations: 5.674 MB / 0.9175 GB, free: 10.16 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0006828/0.8334, allocations: 85.7 kB / 0.9175 GB, free: 10.07 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.002961/0.8363, allocations: 3.196 MB / 0.9207 GB, free: 6.844 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001554/0.8379, allocations: 1.121 MB / 0.9218 GB, free: 5.707 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001583/0.8395, allocations: 0.8503 MB / 0.9226 GB, free: 4.844 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.8396, allocations: 309.1 kB / 0.9229 GB, free: 4.539 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003179/0.8428, allocations: 2.16 MB / 0.925 GB, free: 2.371 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004195/0.847, allocations: 3.697 MB / 0.9286 GB, free: 13.97 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007853/0.8549, allocations: 6.327 MB / 0.9348 GB, free: 6.922 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.733e-05/0.8549, allocations: 12 kB / 0.9348 GB, free: 6.91 MB / 0.7012 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01102/0.8659, allocations: 6.776 MB / 0.9414 GB, free: 84 kB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 7.838e-05/0.866, allocations: 53.7 kB / 0.9415 GB, free: 24 kB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.249e-05/0.8661, allocations: 48.05 kB / 0.9415 GB, free: 15.97 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000985/0.8671, allocations: 441.3 kB / 0.9419 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003406/0.8705, allocations: 1.002 MB / 0.9429 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005763/0.8763, allocations: 5.696 MB / 0.9485 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/0.8806, allocations: 287.4 kB / 0.9487 GB, free: 8.281 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005543/0.8812, allocations: 220 kB / 0.949 GB, free: 8.066 MB / 0.7169 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.004018/0.8852, allocations: 2.487 MB / 0.9514 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001458/0.8867, allocations: 0.521 MB / 0.9519 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3/1.187, allocations: 5.261 MB / 0.957 GB, free: 228.5 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.931e-05/1.187, allocations: 32.89 kB / 0.9571 GB, free: 228.5 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.906e-05/1.187, allocations: 3.812 kB / 0.9571 GB, free: 228.5 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009105/1.196, allocations: 4.529 MB / 0.9615 GB, free: 227.6 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02919/1.225, allocations: 11.97 MB / 0.9732 GB, free: 223.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/1.225, allocations: 1.406 kB / 0.9732 GB, free: 223.1 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003123/1.228, allocations: 0.6416 MB / 0.9738 GB, free: 223.1 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008772/1.229, allocations: 377.3 kB / 0.9742 GB, free: 223 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004609/1.23, allocations: 85.08 kB / 0.9742 GB, free: 222.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004775/1.235, allocations: 5.611 MB / 0.9797 GB, free: 218.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/1.235, allocations: 2.156 kB / 0.9797 GB, free: 218.8 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/1.246, allocations: 7.772 MB / 0.9873 GB, free: 216 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003243/1.249, allocations: 1.16 MB / 0.9885 GB, free: 215.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001248/1.251, allocations: 65.34 kB / 0.9885 GB, free: 215.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003193/1.254, allocations: 188.5 kB / 0.9887 GB, free: 215.5 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004492/1.254, allocations: 202.2 kB / 0.9889 GB, free: 215.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000347/1.255, allocations: 147.5 kB / 0.989 GB, free: 215.5 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.006675/1.261, allocations: 3.961 MB / 0.9929 GB, free: 214.1 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.62e-07/1.261, allocations: 0 / 0.9929 GB, free: 214.1 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.007301/1.269, allocations: 2.008 MB / 0.9949 GB, free: 213.9 MB / 0.7169 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.001459/1.27, allocations: 496.8 kB / 0.9953 GB, free: 213.7 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.007677/1.278, allocations: 5.445 MB / 1.001 GB, free: 211.7 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/1.278, allocations: 3.875 kB / 1.001 GB, free: 211.7 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.003163/1.281, allocations: 2.542 MB / 1.003 GB, free: 210.6 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01332/1.294, allocations: 3.392 MB / 1.006 GB, free: 209.1 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01829/1.313, allocations: 13.89 MB / 1.02 GB, free: 198.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002979/1.316, allocations: 4.63 MB / 1.025 GB, free: 193.8 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.00505/1.321, allocations: 2.078 MB / 1.027 GB, free: 191.8 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/1.322, allocations: 463.3 kB / 1.027 GB, free: 191.3 MB / 0.7169 GB Notification: Performance of SimCode: time 8.21e-07/1.322, allocations: 0 / 1.027 GB, free: 191.3 MB / 0.7169 GB Notification: Performance of Templates: time 0.1374/1.46, allocations: 114.9 MB / 1.139 GB, free: 77.73 MB / 0.7169 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)