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.333/2.333, allocations: 248.7 MB / 256.2 MB, free: 7.02 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.001547/0.001546, allocations: 176.4 kB / 315.4 MB, free: 4.004 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.3 MB / 0.5662 GB, free: 0.625 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001097, allocations: 95.97 kB / 0.6704 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.265e-05/2.265e-05, allocations: 8 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1888, allocations: 106.3 MB / 0.8841 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.897/2.086, allocations: 435.5 MB / 1.309 GB, free: 259.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004641/2.086, allocations: 90.11 kB / 1.31 GB, free: 259.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.749/5.835, allocations: 0.6709 GB / 1.98 GB, free: 164.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.094e-06/5.835, allocations: 0 / 1.98 GB, free: 164.3 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0003569/5.835, allocations: 34.25 kB / 1.98 GB, free: 164.3 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.006589/5.842, allocations: 1.717 MB / 1.982 GB, free: 163.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/5.842, allocations: 11.58 kB / 1.982 GB, free: 163.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003865/5.846, allocations: 348.6 kB / 1.982 GB, free: 163.4 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02755/5.873, allocations: 8.343 MB / 1.991 GB, free: 162.8 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.67e-05/5.874, allocations: 31.91 kB / 1.991 GB, free: 162.8 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002822/5.874, allocations: 51.72 kB / 1.991 GB, free: 162.8 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00259/5.876, allocations: 0.6209 MB / 1.991 GB, free: 162.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/5.879, allocations: 0.8491 MB / 1.992 GB, free: 162.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.273e-05/5.879, allocations: 3.469 kB / 1.992 GB, free: 162.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/5.879, allocations: 0 / 1.992 GB, free: 162.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/5.879, allocations: 24.06 kB / 1.992 GB, free: 162.6 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.008546/5.887, allocations: 4.574 MB / 1.997 GB, free: 160.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009871/5.888, allocations: 452.6 kB / 1.997 GB, free: 160.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004615/5.889, allocations: 239.8 kB / 1.997 GB, free: 160.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002937/5.892, allocations: 1.642 MB / 1.999 GB, free: 159.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006422/5.893, allocations: 366.9 kB / 1.999 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005072/5.893, allocations: 68.11 kB / 1.999 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 3.627e-06/5.893, allocations: 0 / 1.999 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.002503/5.896, allocations: 0.7108 MB / 2 GB, free: 159.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/5.896, allocations: 116.9 kB / 2 GB, free: 158.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001863/5.898, allocations: 0.9557 MB / 2.001 GB, free: 158.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001856/5.898, allocations: 29.36 kB / 2.001 GB, free: 158.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006914/5.898, allocations: 0.6633 MB / 2.002 GB, free: 158.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002369/5.899, allocations: 148 kB / 2.002 GB, free: 158.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.522e-05/5.899, allocations: 0 / 2.002 GB, free: 158.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001002/5.899, allocations: 336.5 kB / 2.002 GB, free: 158.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005863/5.9, allocations: 204.8 kB / 2.002 GB, free: 158.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006323/5.9, allocations: 493 kB / 2.003 GB, free: 157.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/5.902, allocations: 336.5 kB / 2.003 GB, free: 157.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/5.902, allocations: 3.938 kB / 2.003 GB, free: 157.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002973/5.905, allocations: 0.8941 MB / 2.004 GB, free: 157.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006628/5.905, allocations: 2.769 MB / 2.007 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/5.905, allocations: 10.25 kB / 2.007 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004445/5.906, allocations: 72.59 kB / 2.007 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/5.907, allocations: 157.8 kB / 2.007 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000876/5.908, allocations: 1.135 MB / 2.008 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/5.91, allocations: 71.69 kB / 2.008 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000183/5.91, allocations: 43.88 kB / 2.008 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/5.91, allocations: 9.281 kB / 2.008 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002691/5.913, allocations: 0.7203 MB / 2.009 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/5.913, allocations: 10.22 kB / 2.009 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003524/5.913, allocations: 77.86 kB / 2.009 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/5.914, allocations: 150.8 kB / 2.009 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008901/5.915, allocations: 1.141 MB / 2.01 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/5.917, allocations: 67.28 kB / 2.01 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00022/5.917, allocations: 42.78 kB / 2.01 GB, free: 152.7 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.0003688/5.918, allocations: 167.8 kB / 2.011 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002715/5.92, allocations: 0.7072 MB / 2.011 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000237/5.921, allocations: 127.8 kB / 2.011 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/5.924, allocations: 0.853 MB / 2.012 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/5.924, allocations: 7.625 kB / 2.012 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/5.924, allocations: 0 / 2.012 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/5.924, allocations: 3.703 kB / 2.012 GB, free: 152.3 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.004854/5.929, allocations: 1.843 MB / 2.014 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/5.929, allocations: 7.188 kB / 2.014 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009147/5.929, allocations: 95.91 kB / 2.014 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000321/5.93, allocations: 72.36 kB / 2.014 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.621e-05/5.93, allocations: 10.03 kB / 2.014 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008368/5.931, allocations: 1.134 MB / 2.015 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/5.931, allocations: 3.781 kB / 2.015 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/5.933, allocations: 1.018 MB / 2.016 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008723/5.934, allocations: 300.2 kB / 2.017 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002934/5.935, allocations: 7.5 kB / 2.017 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/5.936, allocations: 73.39 kB / 2.017 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/5.936, allocations: 44.8 kB / 2.017 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/5.936, allocations: 31.19 kB / 2.017 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001492/5.938, allocations: 0.7345 MB / 2.017 GB, free: 150.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.21e-07/5.938, allocations: 3.812 kB / 2.017 GB, free: 150.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003598/5.942, allocations: 0.7404 MB / 2.018 GB, free: 149.9 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.004715/5.946, allocations: 2.746 MB / 2.021 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002521/5.949, allocations: 1.072 MB / 2.022 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/5.949, allocations: 3.25 kB / 2.022 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008372/5.95, allocations: 363.1 kB / 2.022 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004112/5.954, allocations: 0.5395 MB / 2.023 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006123/5.96, allocations: 1.955 MB / 2.025 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008235/5.961, allocations: 1.228 MB / 2.026 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.002966/5.964, allocations: 410.4 kB / 2.026 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008961/5.965, allocations: 0.497 MB / 2.027 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.082e-06/5.965, allocations: 0 / 2.027 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1159/6.081, allocations: 39.94 MB / 2.066 GB, free: 145.3 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003023/6.081, allocations: 215.9 kB / 2.066 GB, free: 145 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.139/10.22, allocations: 0 / 2.066 GB, free: 145 MB / 0.8698 GB