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.001518/0.001518, allocations: 102.8 kB / 16.4 MB, free: 6.5 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.001618/0.001618, allocations: 189.7 kB / 17.34 MB, free: 5.738 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002166/0.002166, allocations: 284.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9791/0.9791, allocations: 169.2 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 91.84 kB / 0.6821 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4772/0.4793, allocations: 86.98 MB / 0.767 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05752/0.5369, allocations: 55.97 MB / 0.8217 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02844/0.5654, allocations: 17.96 MB / 0.8392 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004432/0.5699, allocations: 75.56 kB / 0.8393 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004019/0.574, allocations: 0.8963 MB / 0.8402 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.009751/0.5837, allocations: 2.514 MB / 0.8426 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004406/0.5882, allocations: 1.531 MB / 0.8441 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.02406/0.6122, allocations: 21.24 MB / 0.8649 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01669/0.629, allocations: 10.69 MB / 0.8753 GB, free: 4.637 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01525/0.6443, allocations: 7.238 MB / 0.8824 GB, free: 13.42 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01127/0.6556, allocations: 6.358 MB / 0.8886 GB, free: 7.039 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.003227/0.6588, allocations: 0.9375 MB / 0.8895 GB, free: 6.102 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006642/0.6655, allocations: 1.702 MB / 0.8912 GB, free: 4.398 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.004153/0.6697, allocations: 2.333 MB / 0.8935 GB, free: 2.059 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.01003/0.6797, allocations: 4.711 MB / 0.8981 GB, free: 13.33 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.01729/0.6971, allocations: 13.2 MB / 0.9109 GB, free: 100 kB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.6971, allocations: 0 / 0.9109 GB, free: 100 kB / 0.67 GB Notification: Performance of FrontEnd: time 1.904e-06/0.6971, allocations: 4 kB / 0.9109 GB, free: 96 kB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0004604/0.6976, allocations: 0 / 0.9109 GB, free: 96 kB / 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.02691/0.7245, allocations: 8.518 MB / 0.9193 GB, free: 7.48 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/0.7246, allocations: 8.031 kB / 0.9193 GB, free: 7.473 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006126/0.7307, allocations: 0.8508 MB / 0.9201 GB, free: 6.613 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02031/0.7511, allocations: 6.7 MB / 0.9266 GB, free: 15.85 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000673/0.7518, allocations: 460.4 kB / 0.9271 GB, free: 15.39 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003227/0.755, allocations: 0.5975 MB / 0.9277 GB, free: 14.8 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02951/0.7846, allocations: 9.032 MB / 0.9365 GB, free: 5.441 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003048/0.7849, allocations: 23.77 kB / 0.9365 GB, free: 5.418 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002156/0.7871, allocations: 260 kB / 0.9368 GB, free: 5.164 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002267/0.7874, allocations: 176 kB / 0.9369 GB, free: 4.992 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01699/0.8044, allocations: 7.453 MB / 0.9442 GB, free: 13.53 MB / 0.7169 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.5176/1.322, allocations: 36 MB / 0.9794 GB, free: 151.9 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005501/1.327, allocations: 4.275 MB / 0.9835 GB, free: 150.2 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003814/1.331, allocations: 3.308 MB / 0.9868 GB, free: 148.6 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001057/1.332, allocations: 0.9552 MB / 0.9877 GB, free: 147.6 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003085/1.336, allocations: 2.39 MB / 0.99 GB, free: 146.2 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002522/1.338, allocations: 366.5 kB / 0.9904 GB, free: 146.1 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=317): time 9.437e-06/1.338, allocations: 0 / 0.9904 GB, free: 146.1 MB / 0.7169 GB Notification: Performance of matching and sorting (n=317): time 0.01091/1.349, allocations: 7.137 MB / 0.9974 GB, free: 142.1 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/1.349, allocations: 85.84 kB / 0.9974 GB, free: 142 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007789/1.357, allocations: 5.665 MB / 1.003 GB, free: 136.4 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0009482/1.358, allocations: 88.05 kB / 1.003 GB, free: 136.3 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.002544/1.36, allocations: 3.206 MB / 1.006 GB, free: 133.1 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.001573/1.362, allocations: 1.104 MB / 1.007 GB, free: 132 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/1.363, allocations: 0.8593 MB / 1.008 GB, free: 131.1 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.403e-05/1.363, allocations: 305.1 kB / 1.008 GB, free: 130.8 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00271/1.366, allocations: 2.16 MB / 1.01 GB, free: 128.6 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003154/1.369, allocations: 3.699 MB / 1.014 GB, free: 124.3 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006205/1.375, allocations: 6.322 MB / 1.02 GB, free: 117.3 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.808e-05/1.375, allocations: 16 kB / 1.02 GB, free: 117.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009473/1.385, allocations: 6.784 MB / 1.027 GB, free: 110.4 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.347e-05/1.385, allocations: 53.7 kB / 1.027 GB, free: 110.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.944e-05/1.385, allocations: 48 kB / 1.027 GB, free: 110.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009031/1.386, allocations: 435.3 kB / 1.027 GB, free: 109.9 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003236/1.389, allocations: 1.006 MB / 1.028 GB, free: 108.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004417/1.394, allocations: 5.698 MB / 1.034 GB, free: 102.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004998/1.399, allocations: 279.4 kB / 1.034 GB, free: 102.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000751/1.399, allocations: 220 kB / 1.034 GB, free: 102.4 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.004091/1.403, allocations: 2.49 MB / 1.037 GB, free: 99.92 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001584/1.405, allocations: 0.5327 MB / 1.037 GB, free: 99.38 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007343/1.412, allocations: 5.268 MB / 1.043 GB, free: 94.07 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.591e-05/1.412, allocations: 32 kB / 1.043 GB, free: 94.04 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/1.412, allocations: 7.938 kB / 1.043 GB, free: 94.03 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005092/1.418, allocations: 4.538 MB / 1.047 GB, free: 89.39 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02142/1.439, allocations: 11.96 MB / 1.059 GB, free: 77.37 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/1.439, allocations: 0 / 1.059 GB, free: 77.37 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002571/1.442, allocations: 0.6438 MB / 1.059 GB, free: 76.72 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007616/1.442, allocations: 369.3 kB / 1.06 GB, free: 76.36 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002715/1.443, allocations: 87.95 kB / 1.06 GB, free: 76.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004254/1.447, allocations: 5.617 MB / 1.065 GB, free: 70.39 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.447, allocations: 4 kB / 1.065 GB, free: 70.38 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/1.457, allocations: 7.765 MB / 1.073 GB, free: 62.52 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003757/1.461, allocations: 1.155 MB / 1.074 GB, free: 61.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00161/1.463, allocations: 71.98 kB / 1.074 GB, free: 61.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003508/1.466, allocations: 191 kB / 1.074 GB, free: 61.09 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004221/1.467, allocations: 202.2 kB / 1.074 GB, free: 60.89 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003232/1.467, allocations: 146.9 kB / 1.075 GB, free: 60.75 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00577/1.473, allocations: 3.959 MB / 1.078 GB, free: 56.81 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.02e-07/1.473, allocations: 0 / 1.078 GB, free: 56.81 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.007936/1.481, allocations: 2.012 MB / 1.08 GB, free: 54.82 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.001495/1.482, allocations: 0.4923 MB / 1.081 GB, free: 54.36 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.007375/1.49, allocations: 5.432 MB / 1.086 GB, free: 48.88 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.517e-06/1.49, allocations: 4 kB / 1.086 GB, free: 48.87 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00331/1.493, allocations: 2.556 MB / 1.089 GB, free: 46.29 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01664/1.51, allocations: 3.404 MB / 1.092 GB, free: 42.99 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02067/1.531, allocations: 13.92 MB / 1.106 GB, free: 29.03 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003119/1.534, allocations: 4.546 MB / 1.11 GB, free: 24.46 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002125/1.536, allocations: 495.2 kB / 1.111 GB, free: 23.97 MB / 0.7169 GB Notification: Performance of SimCode: time 6.31e-07/1.536, allocations: 0 / 1.111 GB, free: 23.97 MB / 0.7169 GB Notification: Performance of Templates: time 0.6722/2.208, allocations: 189 MB / 1.295 GB, free: 303.3 MB / 0.8731 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)