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: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_6_0_0_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01813/0.01814, allocations: 222 kB / 15.17 MB, free: 5.992 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.001831/0.001831, allocations: 181.1 kB / 16.06 MB, free: 5.867 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.955/3.955, allocations: 389.1 MB / 405.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.122/4.122, allocations: 472.3 MB / 0.9017 GB, free: 130 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006573/0.0006575, allocations: 12 kB / 1.008 GB, free: 21.47 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6077/0.6084, allocations: 98.71 MB / 1.104 GB, free: 10.65 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation): time 0.07756/0.686, allocations: 52.19 MB / 1.155 GB, free: 6.352 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.03347/0.7195, allocations: 16.09 MB / 1.171 GB, free: 6.23 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002665/0.7223, allocations: 55.62 kB / 1.171 GB, free: 6.176 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.004083/0.7264, allocations: 0.8077 MB / 1.172 GB, free: 5.363 MB / 0.573 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.009661/0.7361, allocations: 2.328 MB / 1.174 GB, free: 3.023 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.01173/0.7479, allocations: 2.725 MB / 1.177 GB, free: 312 kB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.00823/0.7561, allocations: 4.377 MB / 1.181 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002529/0.7587, allocations: 1.014 MB / 1.182 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003552/0.7623, allocations: 1.19 MB / 1.183 GB, free: 9.676 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002481/0.7648, allocations: 0.976 MB / 1.184 GB, free: 8.695 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 0.0003704/0.7652, allocations: 52 kB / 1.184 GB, free: 8.645 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003836/0.769, allocations: 1.033 MB / 1.185 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0007182/0.7698, allocations: 326.6 kB / 1.185 GB, free: 7.293 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0007199/0.7705, allocations: 352.9 kB / 1.186 GB, free: 6.941 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.004501/0.775, allocations: 2.272 MB / 1.188 GB, free: 4.664 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.7751, allocations: 3.938 kB / 1.188 GB, free: 4.66 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.194e-06/0.7751, allocations: 0 / 1.188 GB, free: 4.66 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.867e-05/0.7752, allocations: 0 / 1.188 GB, free: 4.66 MB / 0.5886 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.005161/0.7803, allocations: 1.83 MB / 1.19 GB, free: 2.766 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.7804, allocations: 8.031 kB / 1.19 GB, free: 2.758 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003234/0.7807, allocations: 135.1 kB / 1.19 GB, free: 2.617 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.7838, allocations: 389.7 kB / 1.19 GB, free: 2.234 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005024/0.7888, allocations: 1.527 MB / 1.192 GB, free: 0.6523 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001263/0.7901, allocations: 197.9 kB / 1.192 GB, free: 472 kB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002508/0.7904, allocations: 87.95 kB / 1.192 GB, free: 384 kB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003881/0.7943, allocations: 1.103 MB / 1.193 GB, free: 15.23 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.7944, allocations: 3.938 kB / 1.193 GB, free: 15.22 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.7945, allocations: 36 kB / 1.193 GB, free: 15.19 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.889e-05/0.7946, allocations: 20 kB / 1.193 GB, free: 15.17 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004347/0.7989, allocations: 0.9408 MB / 1.194 GB, free: 14.23 MB / 0.6042 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.01685/0.8158, allocations: 5.076 MB / 1.199 GB, free: 8.855 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006079/0.8219, allocations: 0.7288 MB / 1.2 GB, free: 8.117 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002862/0.8249, allocations: 364.6 kB / 1.2 GB, free: 7.758 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005913/0.8308, allocations: 1.793 MB / 1.202 GB, free: 5.789 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003149/0.8341, allocations: 476.6 kB / 1.202 GB, free: 5.305 MB / 0.6042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009935/0.8351, allocations: 75.41 kB / 1.202 GB, free: 5.23 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=42): time 6.863e-06/0.8352, allocations: 0 / 1.202 GB, free: 5.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=42): time 0.00915/0.8443, allocations: 1.118 MB / 1.203 GB, free: 4.098 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.8445, allocations: 93.11 kB / 1.203 GB, free: 3.988 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004491/0.849, allocations: 1.285 MB / 1.205 GB, free: 2.691 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002557/0.8493, allocations: 45.69 kB / 1.205 GB, free: 2.641 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.8507, allocations: 0.6608 MB / 1.205 GB, free: 1.973 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003775/0.8511, allocations: 142 kB / 1.206 GB, free: 1.832 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.868e-05/0.8512, allocations: 8 kB / 1.206 GB, free: 1.824 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002036/0.8514, allocations: 334 kB / 1.206 GB, free: 1.492 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002976/0.8544, allocations: 361.1 kB / 1.206 GB, free: 1.137 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003395/0.8579, allocations: 0.6117 MB / 1.207 GB, free: 424 kB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/0.861, allocations: 438.2 kB / 1.207 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/0.8611, allocations: 4 kB / 1.207 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.007686/0.8688, allocations: 1.092 MB / 1.208 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004109/0.8693, allocations: 329.8 kB / 1.209 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.88e-05/0.8694, allocations: 11.98 kB / 1.209 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.732e-05/0.8694, allocations: 8 kB / 1.209 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002523/0.872, allocations: 203.6 kB / 1.209 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-05/0.8721, allocations: 11.98 kB / 1.209 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/0.8753, allocations: 124.5 kB / 1.209 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002875/0.8756, allocations: 35.98 kB / 1.209 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.8756, allocations: 8 kB / 1.209 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006049/0.8817, allocations: 0.911 MB / 1.21 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.184e-05/0.8818, allocations: 4 kB / 1.21 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.5e-05/0.8819, allocations: 15.95 kB / 1.21 GB, free: 13.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/0.884, allocations: 188.2 kB / 1.21 GB, free: 12.94 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.355e-05/0.8841, allocations: 8 kB / 1.21 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/0.887, allocations: 112.5 kB / 1.21 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003019/0.8874, allocations: 39.89 kB / 1.21 GB, free: 12.79 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.001881/0.8893, allocations: 498.5 kB / 1.211 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006576/0.89, allocations: 130.4 kB / 1.211 GB, free: 12.15 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007636/0.8976, allocations: 1.019 MB / 1.212 GB, free: 11.12 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.51e-05/0.8977, allocations: 7.984 kB / 1.212 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.8978, allocations: 4 kB / 1.212 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/0.8978, allocations: 7.984 kB / 1.212 GB, free: 11.1 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.01149/0.9093, allocations: 2.118 MB / 1.214 GB, free: 8.914 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/0.9094, allocations: 0 / 1.214 GB, free: 8.914 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/0.9112, allocations: 135.9 kB / 1.214 GB, free: 8.781 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.806e-05/0.9113, allocations: 4 kB / 1.214 GB, free: 8.777 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/0.9114, allocations: 11.98 kB / 1.214 GB, free: 8.766 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-05/0.9114, allocations: 7.938 kB / 1.214 GB, free: 8.758 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.9115, allocations: 3.938 kB / 1.214 GB, free: 8.754 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006522/0.918, allocations: 1.031 MB / 1.215 GB, free: 7.688 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.9194, allocations: 311.1 kB / 1.215 GB, free: 7.363 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/0.9207, allocations: 12 kB / 1.215 GB, free: 7.352 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003366/0.9241, allocations: 115.9 kB / 1.216 GB, free: 7.238 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.9243, allocations: 35.95 kB / 1.216 GB, free: 7.203 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.9245, allocations: 23.98 kB / 1.216 GB, free: 7.18 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.002262/0.9268, allocations: 0.8871 MB / 1.216 GB, free: 6.293 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.51e-07/0.9268, allocations: 0 / 1.216 GB, free: 6.293 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.003218/0.93, allocations: 0.6743 MB / 1.217 GB, free: 5.617 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.006115/0.9362, allocations: 1.878 MB / 1.219 GB, free: 3.707 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006322/0.9426, allocations: 1.482 MB / 1.22 GB, free: 2.203 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/0.9426, allocations: 0 / 1.22 GB, free: 2.203 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002043/0.9447, allocations: 497.3 kB / 1.221 GB, free: 1.707 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005302/0.95, allocations: 0.615 MB / 1.221 GB, free: 1.098 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0333/0.9834, allocations: 8.36 MB / 1.23 GB, free: 8.348 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.9846, allocations: 1.233 MB / 1.231 GB, free: 7.082 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.00224/0.9869, allocations: 290.8 kB / 1.231 GB, free: 6.805 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/0.9883, allocations: 0.5383 MB / 1.232 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of SimCode: time 1.032e-06/0.9883, allocations: 0 / 1.232 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1871/1.175, allocations: 38.61 MB / 1.269 GB, free: 212 kB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004093/1.176, allocations: 267.1 kB / 1.27 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.843/5.019, allocations: 7.047 kB / 1.27 GB, free: 15.86 MB / 0.6823 GB