Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_7_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.3/package.mo): time 0.01484/0.01485, allocations: 89.78 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001873/0.001874, allocations: 174.4 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.349/2.349, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.57/2.57, allocations: 252.8 MB / 0.511 GB, free: 8.336 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006585/0.0006587, allocations: 8.125 kB / 0.6243 GB, free: 28.25 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2404, allocations: 106.2 MB / 0.7281 GB, free: 10.13 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation): time 0.09354/0.334, allocations: 48.05 MB / 0.775 GB, free: 9.949 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.04787/0.3819, allocations: 15.36 MB / 0.79 GB, free: 10.56 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003057/0.385, allocations: 55.62 kB / 0.79 GB, free: 10.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.005828/0.3909, allocations: 0.8904 MB / 0.7909 GB, free: 9.609 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.01294/0.4039, allocations: 2.201 MB / 0.7931 GB, free: 7.402 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.01409/0.418, allocations: 2.726 MB / 0.7957 GB, free: 4.672 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.006938/0.425, allocations: 2.276 MB / 0.798 GB, free: 2.395 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002676/0.4277, allocations: 1.01 MB / 0.7989 GB, free: 1.359 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003872/0.4316, allocations: 1.086 MB / 0.8 GB, free: 276 kB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002151/0.4338, allocations: 0.7038 MB / 0.8007 GB, free: 15.56 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0004456/0.4343, allocations: 56 kB / 0.8007 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004327/0.4386, allocations: 1.053 MB / 0.8018 GB, free: 14.45 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0008212/0.4395, allocations: 306.8 kB / 0.8021 GB, free: 14.15 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0008098/0.4403, allocations: 356.8 kB / 0.8024 GB, free: 13.8 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.005182/0.4455, allocations: 2.272 MB / 0.8046 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4456, allocations: 3.938 kB / 0.8046 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.758e-06/0.4456, allocations: 0 / 0.8046 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.819e-05/0.4457, allocations: 4 kB / 0.8046 GB, free: 11.51 MB / 0.6355 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.005706/0.4514, allocations: 1.826 MB / 0.8064 GB, free: 9.621 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.4515, allocations: 12.03 kB / 0.8064 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003509/0.4519, allocations: 127.1 kB / 0.8065 GB, free: 9.477 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00306/0.455, allocations: 401.7 kB / 0.8069 GB, free: 9.082 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004221/0.4592, allocations: 1.453 MB / 0.8083 GB, free: 7.574 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001268/0.4605, allocations: 209.8 kB / 0.8085 GB, free: 7.371 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002613/0.4608, allocations: 80 kB / 0.8086 GB, free: 7.293 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003952/0.4648, allocations: 1.099 MB / 0.8097 GB, free: 6.148 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.553e-05/0.4648, allocations: 3.938 kB / 0.8097 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001544/0.465, allocations: 40 kB / 0.8097 GB, free: 6.105 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-05/0.465, allocations: 20 kB / 0.8098 GB, free: 6.086 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004461/0.4695, allocations: 0.9368 MB / 0.8107 GB, free: 5.152 MB / 0.6355 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.01256/0.4821, allocations: 5.144 MB / 0.8157 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005758/0.4879, allocations: 0.694 MB / 0.8164 GB, free: 15 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007331/0.4953, allocations: 1.832 MB / 0.8182 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003184/0.4986, allocations: 465.5 kB / 0.8186 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001178/0.4998, allocations: 79.41 kB / 0.8187 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=44): time 7.123e-06/0.4999, allocations: 0 / 0.8187 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of matching and sorting (n=44): time 0.006094/0.506, allocations: 1.253 MB / 0.8199 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.5061, allocations: 93.06 kB / 0.82 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00293/0.5091, allocations: 1.332 MB / 0.8213 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001984/0.5093, allocations: 37.64 kB / 0.8213 GB, free: 9.66 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008678/0.5102, allocations: 0.6493 MB / 0.822 GB, free: 9.004 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/0.5104, allocations: 149.9 kB / 0.8221 GB, free: 8.855 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.583e-05/0.5105, allocations: 12 kB / 0.8221 GB, free: 8.844 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.5107, allocations: 334 kB / 0.8224 GB, free: 8.512 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001862/0.5125, allocations: 353.1 kB / 0.8228 GB, free: 8.168 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002078/0.5146, allocations: 0.6117 MB / 0.8234 GB, free: 7.441 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001934/0.5166, allocations: 434.2 kB / 0.8238 GB, free: 7.012 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.5166, allocations: 4 kB / 0.8238 GB, free: 7.008 MB / 0.6511 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.004834/0.5215, allocations: 1.128 MB / 0.8249 GB, free: 5.867 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001275/0.5228, allocations: 2.705 MB / 0.8275 GB, free: 3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.5228, allocations: 8 kB / 0.8275 GB, free: 2.992 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.829e-05/0.5229, allocations: 12 kB / 0.8276 GB, free: 2.98 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/0.5246, allocations: 199.7 kB / 0.8277 GB, free: 2.785 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.747e-05/0.5246, allocations: 19.92 kB / 0.8278 GB, free: 2.766 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/0.5266, allocations: 115.3 kB / 0.8279 GB, free: 2.656 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001793/0.5268, allocations: 47.97 kB / 0.8279 GB, free: 2.609 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.5268, allocations: 4 kB / 0.8279 GB, free: 2.605 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003791/0.5306, allocations: 0.9463 MB / 0.8288 GB, free: 1.648 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.5307, allocations: 8 kB / 0.8289 GB, free: 1.641 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.366e-05/0.5307, allocations: 12 kB / 0.8289 GB, free: 1.629 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.5321, allocations: 184.1 kB / 0.829 GB, free: 1.449 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/0.5321, allocations: 11.94 kB / 0.8291 GB, free: 1.438 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.5339, allocations: 116.5 kB / 0.8292 GB, free: 1.324 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.534, allocations: 43.98 kB / 0.8292 GB, free: 1.281 MB / 0.6511 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 (75): * Single equations (assignments): 73 * 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.001231/0.5353, allocations: 498.5 kB / 0.8297 GB, free: 0.7773 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003225/0.5356, allocations: 134.4 kB / 0.8298 GB, free: 0.6445 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00467/0.5403, allocations: 1.067 MB / 0.8308 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.5403, allocations: 7.938 kB / 0.8309 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.5403, allocations: 0 / 0.8309 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.5404, allocations: 3.984 kB / 0.8309 GB, free: 15.56 MB / 0.6667 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.00719/0.5476, allocations: 2.259 MB / 0.8331 GB, free: 13.21 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.5476, allocations: 0 / 0.8331 GB, free: 13.21 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.5488, allocations: 136 kB / 0.8332 GB, free: 13.08 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.562e-05/0.5489, allocations: 7.953 kB / 0.8332 GB, free: 13.07 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.197e-05/0.549, allocations: 23.98 kB / 0.8332 GB, free: 13.05 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.789e-06/0.549, allocations: 7.938 kB / 0.8332 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.549, allocations: 0 / 0.8332 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00446/0.5535, allocations: 1.142 MB / 0.8344 GB, free: 11.84 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009112/0.5544, allocations: 319.2 kB / 0.8347 GB, free: 11.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/0.5547, allocations: 16 kB / 0.8347 GB, free: 11.49 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/0.5565, allocations: 115.9 kB / 0.8348 GB, free: 11.38 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.5567, allocations: 47.83 kB / 0.8348 GB, free: 11.33 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.5568, allocations: 35.91 kB / 0.8349 GB, free: 11.29 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.002148/0.559, allocations: 0.9145 MB / 0.8358 GB, free: 10.38 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.62e-07/0.559, allocations: 0 / 0.8358 GB, free: 10.38 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002999/0.562, allocations: 0.6899 MB / 0.8364 GB, free: 9.688 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (46): * Single equations (assignments): 41 * 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.006165/0.5682, allocations: 2.313 MB / 0.8387 GB, free: 7.32 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.006049/0.5743, allocations: 1.469 MB / 0.8401 GB, free: 5.824 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.5744, allocations: 0 / 0.8401 GB, free: 5.824 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.002056/0.5764, allocations: 492.2 kB / 0.8406 GB, free: 5.332 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005048/0.5815, allocations: 0.616 MB / 0.8412 GB, free: 4.723 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5924/1.174, allocations: 7.991 MB / 0.849 GB, free: 111.2 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001425/1.175, allocations: 1.234 MB / 0.8502 GB, free: 110.5 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.002414/1.178, allocations: 300 kB / 0.8505 GB, free: 110.5 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00152/1.18, allocations: 0.5401 MB / 0.851 GB, free: 110.5 MB / 0.6667 GB Notification: Performance of SimCode: time 1.383e-06/1.18, allocations: 0 / 0.851 GB, free: 110.5 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1125/1.292, allocations: 38.81 MB / 0.8889 GB, free: 93.95 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003299/1.292, allocations: 268.9 kB / 0.8892 GB, free: 93.59 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.221/5.514, allocations: 0 / 0.8892 GB, free: 93.59 MB / 0.6667 GB