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.006118/0.006119, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001411/0.001411, allocations: 198 kB / 16.68 MB, free: 5.969 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002206/0.002206, allocations: 282.8 kB / 290.8 MB, free: 1.953 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9852/0.9852, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 91.86 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1876, allocations: 86.97 MB / 0.7664 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.4039/0.5916, allocations: 55.98 MB / 0.821 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02738/0.619, allocations: 17.94 MB / 0.8386 GB, free: 14.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00369/0.6227, allocations: 81.06 kB / 0.8386 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00357/0.6263, allocations: 0.8954 MB / 0.8395 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.009574/0.636, allocations: 2.512 MB / 0.842 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004838/0.6408, allocations: 1.529 MB / 0.8435 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.02903/0.6699, allocations: 21.25 MB / 0.8642 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01242/0.6823, allocations: 10.68 MB / 0.8746 GB, free: 4.16 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01419/0.6966, allocations: 7.167 MB / 0.8816 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0115/0.7081, allocations: 6.37 MB / 0.8879 GB, free: 6.621 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.002874/0.711, allocations: 0.9375 MB / 0.8888 GB, free: 5.684 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008252/0.7192, allocations: 1.698 MB / 0.8904 GB, free: 3.984 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.005819/0.7251, allocations: 2.333 MB / 0.8927 GB, free: 1.645 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.01047/0.7356, allocations: 4.711 MB / 0.8973 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01685/0.7525, allocations: 13.24 MB / 0.9102 GB, free: 15.64 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.7525, allocations: 3.938 kB / 0.9103 GB, free: 15.64 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.064e-06/0.7525, allocations: 4 kB / 0.9103 GB, free: 15.63 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0004596/0.753, allocations: 0 / 0.9103 GB, free: 15.63 MB / 0.67 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.02033/0.7733, allocations: 8.721 MB / 0.9188 GB, free: 6.809 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.7734, allocations: 8.031 kB / 0.9188 GB, free: 6.801 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003198/0.7766, allocations: 0.8903 MB / 0.9196 GB, free: 5.906 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/0.7895, allocations: 6.742 MB / 0.9262 GB, free: 15.11 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003865/0.7899, allocations: 464.5 kB / 0.9267 GB, free: 14.65 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001968/0.7919, allocations: 0.6014 MB / 0.9273 GB, free: 14.05 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02398/0.8158, allocations: 9.025 MB / 0.9361 GB, free: 4.703 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003056/0.8162, allocations: 19.83 kB / 0.9361 GB, free: 4.684 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002172/0.8184, allocations: 263.9 kB / 0.9363 GB, free: 4.426 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002896/0.8187, allocations: 176 kB / 0.9365 GB, free: 4.254 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.8363, allocations: 7.445 MB / 0.9438 GB, free: 12.8 MB / 0.7012 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.06167/0.8981, allocations: 36.08 MB / 0.979 GB, free: 6.664 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007814/0.9059, allocations: 4.277 MB / 0.9832 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005522/0.9115, allocations: 3.312 MB / 0.9864 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001468/0.913, allocations: 0.9583 MB / 0.9874 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004925/0.9179, allocations: 2.382 MB / 0.9897 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002976/0.921, allocations: 389 kB / 0.9901 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=317): time 1.523e-05/0.921, allocations: 0 / 0.9901 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of matching and sorting (n=317): time 0.01566/0.9367, allocations: 7.159 MB / 0.9971 GB, free: 3.891 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/0.9368, allocations: 81.91 kB / 0.9971 GB, free: 3.797 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01219/0.949, allocations: 5.671 MB / 1.003 GB, free: 14.15 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0008834/0.9499, allocations: 85.7 kB / 1.003 GB, free: 14.06 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.004097/0.954, allocations: 3.275 MB / 1.006 GB, free: 10.76 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001989/0.956, allocations: 1.162 MB / 1.007 GB, free: 9.586 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002832/0.9589, allocations: 0.8663 MB / 1.008 GB, free: 8.707 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.959, allocations: 309.1 kB / 1.008 GB, free: 8.402 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004166/0.9632, allocations: 2.163 MB / 1.01 GB, free: 6.23 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005293/0.9685, allocations: 3.697 MB / 1.014 GB, free: 1.832 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009611/0.9781, allocations: 6.327 MB / 1.02 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.441e-05/0.9782, allocations: 16 kB / 1.02 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01513/0.9934, allocations: 6.798 MB / 1.027 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.9935, allocations: 55.58 kB / 1.027 GB, free: 3.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.62e-05/0.9936, allocations: 51.98 kB / 1.027 GB, free: 3.812 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.9948, allocations: 434 kB / 1.027 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004192/0.999, allocations: 1.014 MB / 1.028 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006406/1.005, allocations: 5.696 MB / 1.034 GB, free: 12.4 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005648/1.011, allocations: 287.7 kB / 1.034 GB, free: 12.12 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001081/1.012, allocations: 220 kB / 1.034 GB, free: 11.9 MB / 0.795 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.005971/1.018, allocations: 2.48 MB / 1.037 GB, free: 9.41 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002327/1.021, allocations: 0.5473 MB / 1.037 GB, free: 8.859 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/1.033, allocations: 5.27 MB / 1.042 GB, free: 3.543 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.707e-05/1.033, allocations: 36.03 kB / 1.042 GB, free: 3.508 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.932e-05/1.033, allocations: 4 kB / 1.042 GB, free: 3.504 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008122/1.041, allocations: 4.539 MB / 1.047 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02925/1.07, allocations: 11.98 MB / 1.059 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/1.07, allocations: 0 / 1.059 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003193/1.074, allocations: 0.6438 MB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009983/1.075, allocations: 371.4 kB / 1.06 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005596/1.075, allocations: 87.95 kB / 1.06 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005576/1.081, allocations: 5.616 MB / 1.065 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.081, allocations: 7.984 kB / 1.065 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01409/1.095, allocations: 7.795 MB / 1.073 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003452/1.098, allocations: 1.173 MB / 1.074 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001703/1.1, allocations: 75.92 kB / 1.074 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004178/1.104, allocations: 191.9 kB / 1.074 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006662/1.105, allocations: 210.2 kB / 1.074 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005624/1.106, allocations: 135.9 kB / 1.075 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.008327/1.114, allocations: 3.959 MB / 1.078 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.21e-07/1.114, allocations: 0 / 1.078 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.009199/1.123, allocations: 2.02 MB / 1.08 GB, free: 12.08 MB / 0.8419 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.002067/1.125, allocations: 0.4936 MB / 1.081 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01121/1.136, allocations: 5.444 MB / 1.086 GB, free: 6.094 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/1.136, allocations: 4 kB / 1.086 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.004659/1.141, allocations: 2.541 MB / 1.089 GB, free: 3.52 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01684/1.158, allocations: 3.399 MB / 1.092 GB, free: 220 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7022/1.86, allocations: 14.08 MB / 1.106 GB, free: 266.6 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005043/1.865, allocations: 4.63 MB / 1.11 GB, free: 265 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.007176/1.872, allocations: 2.081 MB / 1.112 GB, free: 264.8 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00151/1.874, allocations: 460.4 kB / 1.113 GB, free: 264.7 MB / 0.8419 GB Notification: Performance of SimCode: time 7.41e-07/1.874, allocations: 0 / 1.113 GB, free: 264.7 MB / 0.8419 GB Notification: Performance of Templates: time 0.1448/2.019, allocations: 116.6 MB / 1.227 GB, free: 176.6 MB / 0.8419 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)