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.0007919/0.0007919, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008615/0.0008614, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001763/0.001763, allocations: 263.1 kB / 291.3 MB, free: 1.961 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9379/0.9379, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003988, allocations: 18.06 kB / 0.598 GB, free: 28.52 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1365, allocations: 88.54 MB / 0.6845 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04555/0.1821, allocations: 51.51 MB / 0.7348 GB, free: 11.85 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01932/0.2015, allocations: 16.84 MB / 0.7512 GB, free: 10.97 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001871/0.2034, allocations: 67.56 kB / 0.7513 GB, free: 10.91 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.2051, allocations: 0.6209 MB / 0.7519 GB, free: 10.28 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004795/0.2099, allocations: 1.989 MB / 0.7538 GB, free: 8.281 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002793/0.2127, allocations: 1.093 MB / 0.7549 GB, free: 7.199 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.2942/0.507, allocations: 23.6 MB / 0.7779 GB, free: 12.26 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009698/0.5167, allocations: 7.145 MB / 0.7849 GB, free: 27.24 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01013/0.5269, allocations: 5.301 MB / 0.7901 GB, free: 26.76 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009576/0.5365, allocations: 5.475 MB / 0.7954 GB, free: 25.62 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001181/0.5377, allocations: 346.4 kB / 0.7958 GB, free: 25.62 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004321/0.542, allocations: 0.7868 MB / 0.7965 GB, free: 25.58 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001455/0.5435, allocations: 1.524 MB / 0.798 GB, free: 25.3 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002816/0.5463, allocations: 1.615 MB / 0.7996 GB, free: 25.03 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008546/0.5549, allocations: 10.33 MB / 0.8097 GB, free: 21.35 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.5549, allocations: 0 / 0.8097 GB, free: 21.35 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.094e-06/0.5549, allocations: 0 / 0.8097 GB, free: 21.35 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0002926/0.5552, allocations: 0 / 0.8097 GB, free: 21.35 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: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.01188/0.5671, allocations: 6.955 MB / 0.8165 GB, free: 17.43 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.5671, allocations: 9.906 kB / 0.8165 GB, free: 17.43 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002577/0.5697, allocations: 0.8584 MB / 0.8173 GB, free: 17.01 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009901/0.5796, allocations: 6.464 MB / 0.8237 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002354/0.5799, allocations: 462.3 kB / 0.8241 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009702/0.5809, allocations: 0.5934 MB / 0.8247 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01534/0.5962, allocations: 8.982 MB / 0.8334 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001266/0.5964, allocations: 19.81 kB / 0.8335 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006398/0.597, allocations: 265.3 kB / 0.8337 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/0.5972, allocations: 183.7 kB / 0.8339 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/0.6096, allocations: 7.413 MB / 0.8411 GB, free: 3.414 MB / 0.5606 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.045/0.6546, allocations: 35.97 MB / 0.8763 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006128/0.6608, allocations: 4.289 MB / 0.8804 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004605/0.6654, allocations: 3.391 MB / 0.8838 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001243/0.6666, allocations: 0.9906 MB / 0.8847 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003692/0.6703, allocations: 2.371 MB / 0.887 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002491/0.6729, allocations: 455.7 kB / 0.8875 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=317): time 6.432e-06/0.6729, allocations: 0 / 0.8875 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of matching and sorting (n=317): time 0.01216/0.685, allocations: 7.083 MB / 0.8944 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.6851, allocations: 89.89 kB / 0.8945 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007726/0.6929, allocations: 5.42 MB / 0.8998 GB, free: 5.355 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.000481/0.6934, allocations: 85.7 kB / 0.8998 GB, free: 5.266 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.00286/0.6962, allocations: 3.199 MB / 0.903 GB, free: 2.051 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001237/0.6975, allocations: 1.107 MB / 0.9041 GB, free: 0.9531 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002408/0.6977, allocations: 95.94 kB / 0.9041 GB, free: 0.8594 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002642/0.698, allocations: 487.6 kB / 0.9046 GB, free: 384 kB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003322/0.7013, allocations: 2.148 MB / 0.9067 GB, free: 14.22 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004239/0.7056, allocations: 3.669 MB / 0.9103 GB, free: 9.852 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00423/0.7098, allocations: 2.901 MB / 0.9131 GB, free: 6.934 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.576e-05/0.7099, allocations: 20 kB / 0.9131 GB, free: 6.914 MB / 0.6387 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01082/0.7207, allocations: 6.721 MB / 0.9197 GB, free: 144 kB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 6.518e-05/0.7208, allocations: 61.83 kB / 0.9198 GB, free: 76 kB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-05/0.7208, allocations: 54.62 kB / 0.9198 GB, free: 24 kB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009727/0.7218, allocations: 438.2 kB / 0.9202 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003595/0.7254, allocations: 1.01 MB / 0.9212 GB, free: 14.58 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005373/0.7308, allocations: 5.25 MB / 0.9263 GB, free: 9.078 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004674/0.7355, allocations: 470.2 kB / 0.9268 GB, free: 8.621 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004142/0.7359, allocations: 220 kB / 0.927 GB, free: 8.406 MB / 0.6544 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004253/0.7402, allocations: 2.48 MB / 0.9294 GB, free: 5.914 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/0.7413, allocations: 0.5326 MB / 0.9299 GB, free: 5.375 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008639/0.7499, allocations: 5.244 MB / 0.9351 GB, free: 92 kB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-05/0.75, allocations: 36 kB / 0.9351 GB, free: 56 kB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.75, allocations: 4 kB / 0.9351 GB, free: 52 kB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006467/0.7565, allocations: 4.505 MB / 0.9395 GB, free: 11.44 MB / 0.67 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.02042/0.7769, allocations: 11.97 MB / 0.9512 GB, free: 15.37 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.777, allocations: 0 / 0.9512 GB, free: 15.37 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002802/0.7798, allocations: 0.6555 MB / 0.9518 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008295/0.7806, allocations: 365.3 kB / 0.9522 GB, free: 14.35 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002229/0.7809, allocations: 87.95 kB / 0.9523 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005204/0.7861, allocations: 5.168 MB / 0.9573 GB, free: 8.84 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.7861, allocations: 4 kB / 0.9573 GB, free: 8.836 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0115/0.7976, allocations: 7.604 MB / 0.9647 GB, free: 1.141 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003415/0.8011, allocations: 1.217 MB / 0.9659 GB, free: 15.9 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/0.8023, allocations: 67.98 kB / 0.966 GB, free: 15.83 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003559/0.8058, allocations: 470.3 kB / 0.9664 GB, free: 15.38 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004088/0.8063, allocations: 202.2 kB / 0.9666 GB, free: 15.18 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003123/0.8066, allocations: 143.9 kB / 0.9668 GB, free: 15.04 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.005933/0.8125, allocations: 3.756 MB / 0.9704 GB, free: 11.3 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8125, allocations: 0 / 0.9704 GB, free: 11.3 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.006018/0.8186, allocations: 1.987 MB / 0.9724 GB, free: 9.312 MB / 0.7012 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001069/0.8197, allocations: 474.5 kB / 0.9728 GB, free: 8.867 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.007922/0.8276, allocations: 5.356 MB / 0.9781 GB, free: 3.461 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.8276, allocations: 0 / 0.9781 GB, free: 3.461 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.00347/0.8311, allocations: 2.503 MB / 0.9805 GB, free: 0.9297 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0132/0.8443, allocations: 3.224 MB / 0.9837 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02268/0.867, allocations: 16.15 MB / 0.9994 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00437/0.8714, allocations: 4.626 MB / 1.004 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.006277/0.8777, allocations: 1.997 MB / 1.006 GB, free: 6.969 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00136/0.8791, allocations: 451.3 kB / 1.006 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of SimCode: time 1.022e-06/0.8791, allocations: 7.938 kB / 1.006 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of Templates: time 0.4179/1.297, allocations: 112.1 MB / 1.116 GB, free: 235.5 MB / 0.7637 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)