Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|subSta.Q_flow|subSta.m_flow|subSta.sta_a.T|subSta.sta_b.T",fileNamePrefix="Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation") translateModel(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|subSta.Q_flow|subSta.m_flow|subSta.sta_a.T|subSta.sta_b.T",fileNamePrefix="Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.397/2.397, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003862, allocations: 19.97 kB / 0.8145 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7797/0.7801, allocations: 142.3 MB / 0.9535 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation): time 0.04891/0.829, allocations: 47.96 MB / 1 GB, free: 136 kB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01951/0.8486, allocations: 12.91 MB / 1.013 GB, free: 3.203 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00294/0.8516, allocations: 55.62 kB / 1.013 GB, free: 3.148 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.003319/0.8549, allocations: 0.8436 MB / 1.014 GB, free: 2.301 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.008594/0.8635, allocations: 2.243 MB / 1.016 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005702/0.8693, allocations: 1.865 MB / 1.018 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005215/0.8745, allocations: 2.299 MB / 1.02 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.8763, allocations: 1.028 MB / 1.021 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002618/0.8789, allocations: 1.105 MB / 1.022 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.8803, allocations: 0.6999 MB / 1.023 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000225/0.8805, allocations: 52 kB / 1.023 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002761/0.8833, allocations: 1.084 MB / 1.024 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003802/0.8837, allocations: 310.8 kB / 1.024 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005275/0.8842, allocations: 352.9 kB / 1.025 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003026/0.8872, allocations: 2.299 MB / 1.027 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.8873, allocations: 0 / 1.027 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.285e-06/0.8873, allocations: 0 / 1.027 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.661e-05/0.8873, allocations: 0 / 1.027 GB, free: 4.957 MB / 0.7794 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.003478/0.8908, allocations: 1.826 MB / 1.029 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.8909, allocations: 12.03 kB / 1.029 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/0.8931, allocations: 485.5 kB / 1.029 GB, free: 2.578 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00306/0.8962, allocations: 1.539 MB / 1.031 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006644/0.8969, allocations: 197.9 kB / 1.031 GB, free: 0.793 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.8971, allocations: 91.95 kB / 1.031 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/0.8995, allocations: 1.139 MB / 1.032 GB, free: 15.52 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.8995, allocations: 3.938 kB / 1.032 GB, free: 15.51 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.193e-05/0.8996, allocations: 40 kB / 1.032 GB, free: 15.47 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.8996, allocations: 20 kB / 1.032 GB, free: 15.45 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002879/0.9025, allocations: 1.038 MB / 1.033 GB, free: 14.42 MB / 0.795 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.006978/0.9095, allocations: 5.209 MB / 1.038 GB, free: 8.918 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.9117, allocations: 0.722 MB / 1.039 GB, free: 8.188 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002526/0.9143, allocations: 1.87 MB / 1.041 GB, free: 6.145 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001285/0.9156, allocations: 0.526 MB / 1.041 GB, free: 5.594 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003975/0.916, allocations: 87.28 kB / 1.041 GB, free: 5.508 MB / 0.795 GB Notification: Performance of pre-optimization done (n=44): time 2.324e-06/0.916, allocations: 0 / 1.041 GB, free: 5.508 MB / 0.795 GB Notification: Performance of matching and sorting (n=44): time 0.003646/0.9196, allocations: 1.342 MB / 1.043 GB, free: 4.133 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.9197, allocations: 110.8 kB / 1.043 GB, free: 4 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001774/0.9215, allocations: 1.328 MB / 1.044 GB, free: 2.66 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.9216, allocations: 41.7 kB / 1.044 GB, free: 2.613 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005576/0.9222, allocations: 0.6493 MB / 1.045 GB, free: 1.957 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.9223, allocations: 145.9 kB / 1.045 GB, free: 1.812 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/0.9224, allocations: 19.94 kB / 1.045 GB, free: 1.793 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.9225, allocations: 326 kB / 1.045 GB, free: 1.469 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.9236, allocations: 389.1 kB / 1.046 GB, free: 1.086 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/0.925, allocations: 0.6512 MB / 1.046 GB, free: 328 kB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.9262, allocations: 461.8 kB / 1.047 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.9262, allocations: 0 / 1.047 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002981/0.9292, allocations: 1.197 MB / 1.048 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.001249/0.9305, allocations: 2.799 MB / 1.05 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.9305, allocations: 4 kB / 1.05 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.9305, allocations: 12 kB / 1.051 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009367/0.9315, allocations: 219.7 kB / 1.051 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.9315, allocations: 12 kB / 1.051 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.933, allocations: 136.4 kB / 1.051 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.9331, allocations: 47.97 kB / 1.051 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.9331, allocations: 4 kB / 1.051 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00247/0.9356, allocations: 1.009 MB / 1.052 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.9356, allocations: 12.03 kB / 1.052 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.9356, allocations: 11.94 kB / 1.052 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007661/0.9364, allocations: 199.8 kB / 1.052 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.9364, allocations: 15.92 kB / 1.052 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.9376, allocations: 129.2 kB / 1.052 GB, free: 9.887 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.445e-05/0.9377, allocations: 43.92 kB / 1.052 GB, free: 9.844 MB / 0.8106 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 74 * 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.0008834/0.9386, allocations: 494.6 kB / 1.053 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.9388, allocations: 134.3 kB / 1.053 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002862/0.9417, allocations: 1.14 MB / 1.054 GB, free: 8.07 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.9417, allocations: 8 kB / 1.054 GB, free: 8.062 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.9417, allocations: 3.984 kB / 1.054 GB, free: 8.059 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.9418, allocations: 4.234 kB / 1.054 GB, free: 8.055 MB / 0.8106 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.004621/0.9464, allocations: 2.45 MB / 1.056 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.9464, allocations: 4 kB / 1.056 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000714/0.9471, allocations: 151.9 kB / 1.057 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.854e-06/0.9472, allocations: 4 kB / 1.057 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.638e-05/0.9472, allocations: 19.98 kB / 1.057 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.9472, allocations: 4 kB / 1.057 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.9472, allocations: 3.938 kB / 1.057 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002732/0.95, allocations: 1.297 MB / 1.058 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005948/0.9506, allocations: 343 kB / 1.058 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.9508, allocations: 8 kB / 1.058 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.9518, allocations: 131.9 kB / 1.058 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.952, allocations: 43.88 kB / 1.058 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/0.952, allocations: 31.97 kB / 1.058 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001295/0.9533, allocations: 0.9144 MB / 1.059 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9533, allocations: 0 / 1.059 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002028/0.9554, allocations: 0.7134 MB / 1.06 GB, free: 1.762 MB / 0.8106 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) * 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.000931/0.9563, allocations: 476.2 kB / 1.06 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003825/0.9602, allocations: 1.571 MB / 1.062 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.9602, allocations: 3.938 kB / 1.062 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.9614, allocations: 0.5131 MB / 1.062 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002711/0.9641, allocations: 0.5979 MB / 1.063 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005428/0.9696, allocations: 2.829 MB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009664/0.9706, allocations: 1.237 MB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001817/0.9724, allocations: 314.9 kB / 1.067 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.9728, allocations: 107.4 kB / 1.067 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of SimCode: time 2.004e-06/0.9728, allocations: 0 / 1.067 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of Templates: time 0.04886/1.022, allocations: 26.83 MB / 1.094 GB, free: 15.58 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.makefile (rm -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & ./Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation.csv","../files/Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches