Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01258/0.01258, allocations: 222.7 kB / 15.17 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001137/0.001137, allocations: 177.8 kB / 16.06 MB, free: 5.828 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.991/3.991, allocations: 389.1 MB / 405.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 3.825/3.825, allocations: 472.3 MB / 0.9018 GB, free: 9.199 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.000491/0.0004912, allocations: 17.58 kB / 1.008 GB, free: 138.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1323, allocations: 98.72 MB / 1.104 GB, free: 42.11 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation): time 0.05566/0.1881, allocations: 52.18 MB / 1.155 GB, free: 5.941 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.5776/0.7657, allocations: 16.07 MB / 1.171 GB, free: 42.61 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002468/0.7682, allocations: 58.31 kB / 1.171 GB, free: 42.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003149/0.7714, allocations: 0.806 MB / 1.172 GB, free: 42.61 MB / 0.6198 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:25:17-26:47:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:23:17-24:49:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:25:17-26:47:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:23:17-24:49:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.008994/0.7804, allocations: 2.329 MB / 1.174 GB, free: 42.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.7911, allocations: 2.718 MB / 1.176 GB, free: 42.6 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.006578/0.7977, allocations: 4.385 MB / 1.181 GB, free: 41.97 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002171/0.7999, allocations: 1.019 MB / 1.182 GB, free: 41.85 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003703/0.8036, allocations: 1.188 MB / 1.183 GB, free: 41.56 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003568/0.8073, allocations: 0.9794 MB / 1.184 GB, free: 41.34 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0005502/0.8079, allocations: 53.53 kB / 1.184 GB, free: 41.34 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005255/0.8131, allocations: 1.026 MB / 1.185 GB, free: 41.27 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.001038/0.8142, allocations: 321 kB / 1.185 GB, free: 41.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.001011/0.8153, allocations: 358.9 kB / 1.186 GB, free: 41.13 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.005978/0.8213, allocations: 2.283 MB / 1.188 GB, free: 40.99 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 9.011e-06/0.8214, allocations: 2.875 kB / 1.188 GB, free: 40.99 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.267e-06/0.8214, allocations: 0 / 1.188 GB, free: 40.99 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.269e-05/0.8214, allocations: 1.594 kB / 1.188 GB, free: 40.99 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.006914/0.8284, allocations: 1.82 MB / 1.19 GB, free: 39.94 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.8285, allocations: 10.41 kB / 1.19 GB, free: 39.94 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003934/0.8324, allocations: 400.6 kB / 1.19 GB, free: 39.85 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006314/0.8388, allocations: 1.519 MB / 1.191 GB, free: 39.46 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001344/0.8402, allocations: 201.8 kB / 1.192 GB, free: 39.46 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003616/0.8406, allocations: 89.66 kB / 1.192 GB, free: 39.46 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005061/0.8457, allocations: 1.099 MB / 1.193 GB, free: 39.31 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.485e-05/0.8458, allocations: 7 kB / 1.193 GB, free: 39.3 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002079/0.846, allocations: 38.92 kB / 1.193 GB, free: 39.3 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.375e-05/0.846, allocations: 19.44 kB / 1.193 GB, free: 39.3 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005622/0.8517, allocations: 0.9409 MB / 1.194 GB, free: 39.29 MB / 0.6198 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.01372/0.8655, allocations: 5.073 MB / 1.199 GB, free: 36.91 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004582/0.8701, allocations: 0.7287 MB / 1.199 GB, free: 36.88 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002124/0.8723, allocations: 365.1 kB / 1.2 GB, free: 36.87 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00472/0.877, allocations: 1.795 MB / 1.202 GB, free: 35.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002423/0.8795, allocations: 483.6 kB / 1.202 GB, free: 35.73 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000936/0.8805, allocations: 70.91 kB / 1.202 GB, free: 35.7 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=42): time 5.924e-06/0.8805, allocations: 0 / 1.202 GB, free: 35.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=42): time 0.007861/0.8884, allocations: 1.117 MB / 1.203 GB, free: 35.57 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.754e-05/0.8886, allocations: 88.45 kB / 1.203 GB, free: 35.47 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004312/0.8929, allocations: 1.288 MB / 1.205 GB, free: 35.05 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0002203/0.8932, allocations: 37.17 kB / 1.205 GB, free: 35.01 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001173/0.8944, allocations: 0.6637 MB / 1.205 GB, free: 34.49 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002694/0.8947, allocations: 138.5 kB / 1.205 GB, free: 34.38 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.936e-05/0.8948, allocations: 11.41 kB / 1.205 GB, free: 34.38 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.895, allocations: 338.2 kB / 1.206 GB, free: 34.05 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002447/0.8974, allocations: 359.1 kB / 1.206 GB, free: 33.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002817/0.9003, allocations: 0.6135 MB / 1.207 GB, free: 33.56 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.9025, allocations: 441.3 kB / 1.207 GB, free: 33.41 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-06/0.9026, allocations: 3.031 kB / 1.207 GB, free: 33.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.003256/0.9058, allocations: 1.098 MB / 1.208 GB, free: 33.01 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/0.906, allocations: 324.3 kB / 1.208 GB, free: 32.63 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.9061, allocations: 6.25 kB / 1.208 GB, free: 32.63 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.924e-05/0.9061, allocations: 13.83 kB / 1.208 GB, free: 32.63 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009931/0.9071, allocations: 198.5 kB / 1.209 GB, free: 32.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.866e-05/0.9071, allocations: 15.94 kB / 1.209 GB, free: 32.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.9086, allocations: 119.9 kB / 1.209 GB, free: 32.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.9088, allocations: 38.3 kB / 1.209 GB, free: 32.59 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.9088, allocations: 3.031 kB / 1.209 GB, free: 32.59 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002517/0.9113, allocations: 0.9165 MB / 1.21 GB, free: 32.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.9114, allocations: 6.125 kB / 1.21 GB, free: 32.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.9114, allocations: 14.08 kB / 1.21 GB, free: 32.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008296/0.9123, allocations: 183.6 kB / 1.21 GB, free: 32.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.9123, allocations: 11.28 kB / 1.21 GB, free: 32.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.9137, allocations: 118.4 kB / 1.21 GB, free: 32.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.9138, allocations: 34.45 kB / 1.21 GB, free: 32.25 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QHea.a,QHea.b,QHea.last,$PRE.QHea.nextEvent,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 72 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009122/0.9147, allocations: 0.4893 MB / 1.211 GB, free: 31.88 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000296/0.9151, allocations: 136.3 kB / 1.211 GB, free: 31.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003178/0.9182, allocations: 1.015 MB / 1.212 GB, free: 31.47 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.9183, allocations: 5.562 kB / 1.212 GB, free: 31.47 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.801e-06/0.9183, allocations: 0 / 1.212 GB, free: 31.47 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.9183, allocations: 4.594 kB / 1.212 GB, free: 31.47 MB / 0.6198 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.005174/0.9235, allocations: 2.119 MB / 1.214 GB, free: 30.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.515e-06/0.9236, allocations: 3.031 kB / 1.214 GB, free: 30.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008721/0.9245, allocations: 131.6 kB / 1.214 GB, free: 30.48 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.469e-06/0.9245, allocations: 3.594 kB / 1.214 GB, free: 30.48 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.436e-05/0.9246, allocations: 20.67 kB / 1.214 GB, free: 30.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.9246, allocations: 1.328 kB / 1.214 GB, free: 30.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.299e-06/0.9246, allocations: 3.719 kB / 1.214 GB, free: 30.47 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003019/0.9276, allocations: 1.036 MB / 1.215 GB, free: 30.01 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007637/0.9284, allocations: 303.8 kB / 1.215 GB, free: 29.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/0.9287, allocations: 13.91 kB / 1.215 GB, free: 29.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.9299, allocations: 123.9 kB / 1.215 GB, free: 29.76 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.93, allocations: 30.41 kB / 1.215 GB, free: 29.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.839e-05/0.9301, allocations: 25.59 kB / 1.215 GB, free: 29.75 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001574/0.9317, allocations: 0.8868 MB / 1.216 GB, free: 29.38 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9.42e-07/0.9317, allocations: 1.406 kB / 1.216 GB, free: 29.38 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00255/0.9343, allocations: 0.6683 MB / 1.217 GB, free: 29.25 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001104/0.9354, allocations: 431.6 kB / 1.217 GB, free: 29.12 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.004149/0.9396, allocations: 1.472 MB / 1.219 GB, free: 28.6 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.346e-06/0.9396, allocations: 0 / 1.219 GB, free: 28.6 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.9412, allocations: 491.2 kB / 1.219 GB, free: 28.41 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003487/0.9447, allocations: 0.6193 MB / 1.22 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005471/0.9502, allocations: 2.729 MB / 1.222 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009423/0.9511, allocations: 1.232 MB / 1.224 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.001821/0.953, allocations: 294 kB / 1.224 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/0.9534, allocations: 100.5 kB / 1.224 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of SimCode: time 1.829e-06/0.9534, allocations: 0.7188 kB / 1.224 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of Templates: time 0.06113/1.015, allocations: 25.65 MB / 1.249 GB, free: 13.74 MB / 0.6198 GB