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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 4.414/4.414, allocations: 433.2 MB / 440.7 MB, free: 10.55 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.886e-05/2.899e-05, allocations: 4 kB / 0.5325 GB, free: 1.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.656/0.656, allocations: 98.71 MB / 0.6289 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.264/1.92, allocations: 426 MB / 1.045 GB, free: 0.6836 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003561/1.92, allocations: 95.31 kB / 1.045 GB, free: 0.6328 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 3.531/5.451, allocations: 0.6648 GB / 1.71 GB, free: 46.48 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.214e-06/5.451, allocations: 4 kB / 1.71 GB, free: 46.47 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0002391/5.451, allocations: 37.94 kB / 1.71 GB, free: 46.44 MB / 0.823 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.004821/5.456, allocations: 1.717 MB / 1.712 GB, free: 44.68 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/5.456, allocations: 12.02 kB / 1.712 GB, free: 44.66 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003588/5.46, allocations: 390.4 kB / 1.712 GB, free: 44.28 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02741/5.487, allocations: 8.305 MB / 1.72 GB, free: 35.95 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.577e-05/5.487, allocations: 28 kB / 1.72 GB, free: 35.92 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002923/5.487, allocations: 52 kB / 1.72 GB, free: 35.87 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001742/5.489, allocations: 0.6093 MB / 1.721 GB, free: 35.26 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/5.491, allocations: 0.84 MB / 1.722 GB, free: 34.37 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.023e-05/5.491, allocations: 0 / 1.722 GB, free: 34.37 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/5.491, allocations: 11.94 kB / 1.722 GB, free: 34.36 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/5.491, allocations: 20 kB / 1.722 GB, free: 34.34 MB / 0.823 GB Warning: The model contains alias variables with conflicting start and/or 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.008782/5.5, allocations: 4.551 MB / 1.726 GB, free: 29.54 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/5.501, allocations: 451.2 kB / 1.726 GB, free: 29.09 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004267/5.502, allocations: 233.2 kB / 1.727 GB, free: 28.86 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002865/5.505, allocations: 1.607 MB / 1.728 GB, free: 27.07 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006017/5.505, allocations: 355.8 kB / 1.729 GB, free: 26.7 MB / 0.823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005029/5.506, allocations: 59.5 kB / 1.729 GB, free: 26.64 MB / 0.823 GB Notification: Performance of pre-optimization done (n=45): time 3.326e-06/5.506, allocations: 0 / 1.729 GB, free: 26.64 MB / 0.823 GB Notification: Performance of matching and sorting (n=45): time 0.002424/5.508, allocations: 0.6659 MB / 1.729 GB, free: 25.96 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/5.508, allocations: 106.8 kB / 1.729 GB, free: 25.83 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00174/5.51, allocations: 0.9698 MB / 1.73 GB, free: 24.85 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001273/5.51, allocations: 25.7 kB / 1.73 GB, free: 24.82 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000683/5.511, allocations: 0.6682 MB / 1.731 GB, free: 24.14 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/5.511, allocations: 145.9 kB / 1.731 GB, free: 24 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-05/5.511, allocations: 4 kB / 1.731 GB, free: 23.99 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.986e-05/5.511, allocations: 334 kB / 1.731 GB, free: 23.66 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/5.512, allocations: 193.5 kB / 1.732 GB, free: 23.47 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005807/5.512, allocations: 481 kB / 1.732 GB, free: 22.88 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/5.514, allocations: 341.2 kB / 1.732 GB, free: 22.54 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/5.514, allocations: 4 kB / 1.732 GB, free: 22.54 MB / 0.823 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.003133/5.517, allocations: 0.8407 MB / 1.733 GB, free: 21.68 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006548/5.518, allocations: 2.776 MB / 1.736 GB, free: 18.73 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/5.518, allocations: 8 kB / 1.736 GB, free: 18.72 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004584/5.518, allocations: 77.69 kB / 1.736 GB, free: 18.64 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/5.519, allocations: 155.8 kB / 1.736 GB, free: 18.49 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008877/5.52, allocations: 1.144 MB / 1.737 GB, free: 17.29 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/5.522, allocations: 75.83 kB / 1.737 GB, free: 17.22 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/5.522, allocations: 43.98 kB / 1.737 GB, free: 17.18 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/5.522, allocations: 4 kB / 1.737 GB, free: 17.17 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002355/5.524, allocations: 0.6614 MB / 1.738 GB, free: 16.5 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/5.525, allocations: 11.94 kB / 1.738 GB, free: 16.49 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003005/5.525, allocations: 81.62 kB / 1.738 GB, free: 16.41 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009937/5.526, allocations: 147.8 kB / 1.738 GB, free: 16.26 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007805/5.527, allocations: 1.136 MB / 1.739 GB, free: 15.07 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/5.528, allocations: 64.05 kB / 1.739 GB, free: 15.01 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/5.528, allocations: 43.98 kB / 1.74 GB, free: 14.97 MB / 0.823 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: subSta.pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 65 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003704/5.529, allocations: 174.9 kB / 1.74 GB, free: 14.79 MB / 0.823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002279/5.531, allocations: 0.6348 MB / 1.74 GB, free: 14.14 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/5.531, allocations: 130.4 kB / 1.74 GB, free: 14.01 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/5.534, allocations: 0.7858 MB / 1.741 GB, free: 13.21 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/5.534, allocations: 8 kB / 1.741 GB, free: 13.2 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/5.534, allocations: 3.953 kB / 1.741 GB, free: 13.2 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/5.534, allocations: 4 kB / 1.741 GB, free: 13.2 MB / 0.823 GB Warning: The model contains alias variables with conflicting start and/or 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.004613/5.539, allocations: 1.74 MB / 1.743 GB, free: 11.39 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.619e-06/5.539, allocations: 0 / 1.743 GB, free: 11.39 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008538/5.539, allocations: 95.86 kB / 1.743 GB, free: 11.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003066/5.54, allocations: 73.69 kB / 1.743 GB, free: 11.22 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-05/5.54, allocations: 19.92 kB / 1.743 GB, free: 11.2 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008147/5.541, allocations: 1.128 MB / 1.744 GB, free: 10.02 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/5.541, allocations: 3.938 kB / 1.744 GB, free: 10.02 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/5.543, allocations: 0.9124 MB / 1.745 GB, free: 9.051 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007316/5.544, allocations: 283.3 kB / 1.745 GB, free: 8.754 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/5.544, allocations: 7.984 kB / 1.745 GB, free: 8.746 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/5.546, allocations: 75.88 kB / 1.745 GB, free: 8.672 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/5.546, allocations: 39.89 kB / 1.745 GB, free: 8.633 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/5.546, allocations: 31.97 kB / 1.746 GB, free: 8.602 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.001444/5.547, allocations: 0.7409 MB / 1.746 GB, free: 7.859 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.042e-06/5.547, allocations: 0 / 1.746 GB, free: 7.859 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.003658/5.551, allocations: 0.7288 MB / 1.747 GB, free: 7.129 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.004665/5.556, allocations: 2.502 MB / 1.749 GB, free: 4.574 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.002376/5.558, allocations: 1.067 MB / 1.75 GB, free: 3.488 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/5.558, allocations: 0 / 1.75 GB, free: 3.488 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0007297/5.559, allocations: 363.5 kB / 1.751 GB, free: 3.121 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004204/5.563, allocations: 0.5392 MB / 1.751 GB, free: 2.586 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005701/5.569, allocations: 1.915 MB / 1.753 GB, free: 0.6133 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.7172/6.286, allocations: 1.231 MB / 1.754 GB, free: 126.4 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.003785/6.29, allocations: 399.5 kB / 1.755 GB, free: 126.3 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/6.291, allocations: 0.5019 MB / 1.755 GB, free: 126.3 MB / 0.823 GB Notification: Performance of SimCode: time 1.372e-06/6.291, allocations: 0 / 1.755 GB, free: 126.3 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1266/6.418, allocations: 39.87 MB / 1.794 GB, free: 125.7 MB / 0.823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002859/6.418, allocations: 217.4 kB / 1.794 GB, free: 125.4 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.392/10.81, allocations: 7.875 kB / 1.794 GB, free: 125.4 MB / 0.823 GB