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.0008286/0.0008285, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005325/0.005325, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.348/1.348, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001854/0.001854, allocations: 266.6 kB / 291.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9609/0.9609, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004862/0.0004862, allocations: 17.69 kB / 0.5986 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1765, allocations: 88.54 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05156/0.2281, allocations: 54.53 MB / 0.7384 GB, free: 8.383 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02184/0.25, allocations: 17.72 MB / 0.7557 GB, free: 6.613 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.2528, allocations: 67.62 kB / 0.7557 GB, free: 6.547 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.255, allocations: 0.7185 MB / 0.7564 GB, free: 5.824 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006968/0.262, allocations: 2.328 MB / 0.7587 GB, free: 3.488 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004422/0.2665, allocations: 1.383 MB / 0.7601 GB, free: 2.113 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.3665/0.633, allocations: 27.8 MB / 0.7872 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01277/0.6458, allocations: 8.418 MB / 0.7954 GB, free: 24.66 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01173/0.6576, allocations: 5.208 MB / 0.8005 GB, free: 23.6 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01107/0.6687, allocations: 5.794 MB / 0.8062 GB, free: 22.25 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001751/0.6705, allocations: 348.9 kB / 0.8065 GB, free: 22.24 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006033/0.6765, allocations: 1.029 MB / 0.8075 GB, free: 22.06 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001864/0.6784, allocations: 1.586 MB / 0.8091 GB, free: 21.4 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.007399/0.6858, allocations: 3.895 MB / 0.8129 GB, free: 19.98 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01229/0.6981, allocations: 12.31 MB / 0.8249 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.6981, allocations: 0 / 0.8249 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.374e-06/0.6982, allocations: 0 / 0.8249 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0003894/0.6986, allocations: 0 / 0.8249 GB, free: 11.18 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.01536/0.7139, allocations: 6.889 MB / 0.8316 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.714, allocations: 12.03 kB / 0.8316 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00359/0.7176, allocations: 0.8655 MB / 0.8325 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.7291, allocations: 6.611 MB / 0.8389 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003302/0.7295, allocations: 459.8 kB / 0.8394 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001286/0.7307, allocations: 0.6014 MB / 0.8399 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/0.7476, allocations: 9.033 MB / 0.8488 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/0.7478, allocations: 15.88 kB / 0.8488 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006921/0.7485, allocations: 263.1 kB / 0.849 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001697/0.7487, allocations: 183.9 kB / 0.8492 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01458/0.7633, allocations: 7.453 MB / 0.8565 GB, free: 10.56 MB / 0.5919 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.05603/0.8194, allocations: 36 MB / 0.8916 GB, free: 4.789 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007118/0.8265, allocations: 4.297 MB / 0.8958 GB, free: 0.5039 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005108/0.8317, allocations: 3.335 MB / 0.8991 GB, free: 13.18 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001281/0.833, allocations: 0.98 MB / 0.9001 GB, free: 12.03 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003775/0.8368, allocations: 2.386 MB / 0.9024 GB, free: 9.605 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002958/0.8397, allocations: 447.8 kB / 0.9028 GB, free: 9.164 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 8.436e-06/0.8398, allocations: 0 / 0.9028 GB, free: 9.164 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.01282/0.8526, allocations: 7.132 MB / 0.9098 GB, free: 1.945 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.308e-05/0.8527, allocations: 93.89 kB / 0.9099 GB, free: 1.84 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008058/0.8608, allocations: 5.463 MB / 0.9152 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.000668/0.8615, allocations: 85.7 kB / 0.9153 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.002936/0.8644, allocations: 3.198 MB / 0.9184 GB, free: 9.094 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001496/0.8659, allocations: 1.114 MB / 0.9195 GB, free: 7.988 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004796/0.8664, allocations: 363.3 kB / 0.9198 GB, free: 7.625 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.282e-05/0.8665, allocations: 303.1 kB / 0.9201 GB, free: 7.328 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003297/0.8698, allocations: 2.16 MB / 0.9222 GB, free: 5.16 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004179/0.874, allocations: 3.692 MB / 0.9258 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008209/0.8822, allocations: 6.316 MB / 0.932 GB, free: 9.754 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.191e-05/0.8823, allocations: 16 kB / 0.932 GB, free: 9.738 MB / 0.67 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01116/0.8935, allocations: 6.764 MB / 0.9386 GB, free: 2.922 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.158e-05/0.8936, allocations: 53.73 kB / 0.9387 GB, free: 2.863 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.928e-05/0.8936, allocations: 52 kB / 0.9387 GB, free: 2.812 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009958/0.8946, allocations: 438.7 kB / 0.9391 GB, free: 2.379 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003521/0.8982, allocations: 1.019 MB / 0.9401 GB, free: 1.359 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005702/0.9039, allocations: 5.252 MB / 0.9453 GB, free: 11.85 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006482/0.9104, allocations: 474.8 kB / 0.9457 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006686/0.9111, allocations: 216 kB / 0.9459 GB, free: 11.18 MB / 0.6856 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.004854/0.9159, allocations: 2.493 MB / 0.9484 GB, free: 8.676 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001345/0.9173, allocations: 0.521 MB / 0.9489 GB, free: 8.148 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008643/0.9259, allocations: 5.25 MB / 0.954 GB, free: 2.855 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.612e-05/0.926, allocations: 32 kB / 0.954 GB, free: 2.824 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.926, allocations: 4 kB / 0.954 GB, free: 2.82 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006351/0.9324, allocations: 4.54 MB / 0.9585 GB, free: 14.18 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 postOpt removeSimpleEquations (simulation): time 0.02081/0.9532, allocations: 11.98 MB / 0.9702 GB, free: 2.086 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.9533, allocations: 11.92 kB / 0.9702 GB, free: 2.074 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002825/0.9561, allocations: 0.6516 MB / 0.9708 GB, free: 1.422 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008585/0.957, allocations: 379.9 kB / 0.9712 GB, free: 1.047 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002269/0.9572, allocations: 83.95 kB / 0.9713 GB, free: 0.9648 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005321/0.9625, allocations: 5.17 MB / 0.9763 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.9625, allocations: 3.938 kB / 0.9763 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/0.9741, allocations: 7.624 MB / 0.9838 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003283/0.9774, allocations: 1.221 MB / 0.985 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009214/0.9783, allocations: 67.98 kB / 0.985 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003965/0.9823, allocations: 472.3 kB / 0.9855 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004331/0.9828, allocations: 198.2 kB / 0.9857 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003087/0.9831, allocations: 139.9 kB / 0.9858 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.006152/0.9892, allocations: 3.807 MB / 0.9895 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9893, allocations: 0 / 0.9895 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.006397/0.9957, allocations: 1.983 MB / 0.9914 GB, free: 11.93 MB / 0.7325 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.001287/0.997, allocations: 0.5064 MB / 0.9919 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.008384/1.005, allocations: 5.382 MB / 0.9972 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/1.005, allocations: 4 kB / 0.9972 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003644/1.009, allocations: 2.518 MB / 0.9997 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01837/1.027, allocations: 3.222 MB / 1.003 GB, free: 312 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03146/1.059, allocations: 16.68 MB / 1.019 GB, free: 15.6 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004617/1.064, allocations: 4.624 MB / 1.024 GB, free: 10.95 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.006916/1.071, allocations: 1.999 MB / 1.026 GB, free: 8.969 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/1.072, allocations: 463.2 kB / 1.026 GB, free: 8.516 MB / 0.7637 GB Notification: Performance of SimCode: time 8.51e-07/1.072, allocations: 0 / 1.026 GB, free: 8.516 MB / 0.7637 GB Notification: Performance of Templates: time 0.5329/1.605, allocations: 115 MB / 1.138 GB, free: 228.5 MB / 0.7794 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)