Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.279/2.279, allocations: 248.5 MB / 261.1 MB, free: 6.004 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00155/0.001549, allocations: 179 kB / 320.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.894/1.894, allocations: 205.2 MB / 0.571 GB, free: 11.84 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 93.88 kB / 0.6754 GB, free: 0.9297 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.293e-05/4.31e-05, allocations: 7.984 kB / 0.7869 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.1988, allocations: 106.3 MB / 0.8907 GB, free: 7.477 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.922/2.121, allocations: 435.3 MB / 1.316 GB, free: 254.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003905/2.121, allocations: 98.56 kB / 1.316 GB, free: 254.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.466/5.587, allocations: 0.6743 GB / 1.99 GB, free: 162.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.194e-06/5.587, allocations: 0 / 1.99 GB, free: 162.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0002869/5.587, allocations: 37.03 kB / 1.99 GB, free: 162.2 MB / 0.8698 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.00518/5.593, allocations: 1.715 MB / 1.992 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/5.593, allocations: 10.06 kB / 1.992 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000372/5.593, allocations: 135.7 kB / 1.992 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00282/5.596, allocations: 341.8 kB / 1.992 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02902/5.625, allocations: 8.388 MB / 2.001 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/5.625, allocations: 69.12 kB / 2.001 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002539/5.625, allocations: 89.06 kB / 2.001 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002521/5.628, allocations: 0.9615 MB / 2.002 GB, free: 160.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.884e-05/5.628, allocations: 2.344 kB / 2.002 GB, free: 160.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/5.628, allocations: 39.91 kB / 2.002 GB, free: 160.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/5.628, allocations: 18.25 kB / 2.002 GB, free: 160.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/5.63, allocations: 0.6554 MB / 2.002 GB, free: 160.4 MB / 0.8698 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.008843/5.639, allocations: 4.736 MB / 2.007 GB, free: 158.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/5.64, allocations: 432.7 kB / 2.007 GB, free: 158.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/5.641, allocations: 242.2 kB / 2.008 GB, free: 158.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003132/5.644, allocations: 1.684 MB / 2.009 GB, free: 157 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007576/5.645, allocations: 379.6 kB / 2.01 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005854/5.645, allocations: 81.72 kB / 2.01 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 3.567e-06/5.645, allocations: 0 / 2.01 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.001758/5.647, allocations: 0.6714 MB / 2.01 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/5.647, allocations: 116.8 kB / 2.01 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002058/5.649, allocations: 1.094 MB / 2.012 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001206/5.649, allocations: 38.42 kB / 2.012 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006965/5.65, allocations: 0.6517 MB / 2.012 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/5.65, allocations: 156.8 kB / 2.012 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.887e-05/5.65, allocations: 13.69 kB / 2.012 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.146e-05/5.65, allocations: 327.2 kB / 2.013 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005293/5.651, allocations: 208.6 kB / 2.013 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007033/5.652, allocations: 494.2 kB / 2.013 GB, free: 155.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006197/5.652, allocations: 299.5 kB / 2.014 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/5.652, allocations: 7.703 kB / 2.014 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002215/5.654, allocations: 0.9009 MB / 2.015 GB, free: 155.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006057/5.655, allocations: 2.782 MB / 2.017 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/5.655, allocations: 10.16 kB / 2.017 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005219/5.656, allocations: 98.25 kB / 2.017 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/5.657, allocations: 152.8 kB / 2.017 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007325/5.658, allocations: 1.12 MB / 2.019 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/5.659, allocations: 86.03 kB / 2.019 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/5.659, allocations: 52.75 kB / 2.019 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/5.659, allocations: 5.875 kB / 2.019 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001878/5.661, allocations: 0.751 MB / 2.019 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/5.661, allocations: 9.094 kB / 2.019 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004011/5.662, allocations: 78.38 kB / 2.02 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009936/5.663, allocations: 160.5 kB / 2.02 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006585/5.663, allocations: 1.128 MB / 2.021 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001445/5.665, allocations: 77.08 kB / 2.021 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/5.665, allocations: 43.14 kB / 2.021 GB, free: 150.3 MB / 0.8698 GB 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 (70): * Single equations (assignments): 66 * 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.0003242/5.665, allocations: 179.5 kB / 2.021 GB, free: 150.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/5.666, allocations: 143.4 kB / 2.021 GB, free: 150.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/5.668, allocations: 0.8931 MB / 2.022 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/5.668, allocations: 13.47 kB / 2.022 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/5.668, allocations: 0 / 2.022 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/5.668, allocations: 3.375 kB / 2.022 GB, free: 149.9 MB / 0.8698 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.004206/5.672, allocations: 1.989 MB / 2.024 GB, free: 149.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/5.672, allocations: 0 / 2.024 GB, free: 149.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008719/5.673, allocations: 100.7 kB / 2.024 GB, free: 149.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004117/5.674, allocations: 74.78 kB / 2.024 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.409e-05/5.674, allocations: 25.39 kB / 2.024 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006464/5.674, allocations: 1.109 MB / 2.025 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/5.674, allocations: 6.062 kB / 2.025 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/5.676, allocations: 1.058 MB / 2.026 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007328/5.677, allocations: 300.6 kB / 2.027 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/5.677, allocations: 15.3 kB / 2.027 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/5.679, allocations: 83.41 kB / 2.027 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/5.679, allocations: 38.55 kB / 2.027 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-05/5.679, allocations: 33.91 kB / 2.027 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001684/5.681, allocations: 0.8582 MB / 2.028 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.293e-06/5.681, allocations: 0 / 2.028 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003188/5.684, allocations: 0.7604 MB / 2.028 GB, free: 147.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (45): * 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: 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.004442/5.688, allocations: 2.808 MB / 2.031 GB, free: 146.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00265/5.691, allocations: 1.116 MB / 2.032 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/5.691, allocations: 0 / 2.032 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007716/5.692, allocations: 373.7 kB / 2.033 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004795/5.697, allocations: 0.621 MB / 2.033 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006297/5.703, allocations: 2.016 MB / 2.035 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008451/5.704, allocations: 1.239 MB / 2.036 GB, free: 144.5 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.003127/5.707, allocations: 431.9 kB / 2.037 GB, free: 144.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009527/5.708, allocations: 0.5067 MB / 2.037 GB, free: 144.5 MB / 0.8698 GB Notification: Performance of SimCode: time 1.143e-06/5.708, allocations: 2.188 kB / 2.037 GB, free: 144.5 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1239/5.832, allocations: 48.96 MB / 2.085 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002625/5.832, allocations: 254 kB / 2.085 GB, free: 141.9 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.592/10.42, allocations: 0 / 2.085 GB, free: 141.9 MB / 0.8698 GB