Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|subSta.Q_flow|subSta.m_flow|subSta.sta_b.T|subSta.sta_a.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation") translateModel(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|subSta.Q_flow|subSta.m_flow|subSta.sta_b.T|subSta.sta_a.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.436/1.436, allocations: 249.5 MB / 257 MB, free: 6.863 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.001079/0.001079, allocations: 187.6 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0009056/0.0009055, allocations: 93.89 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.468e-05/1.471e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2009, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.476/1.677, allocations: 435.7 MB / 1.311 GB, free: 258.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/1.677, allocations: 94.98 kB / 1.311 GB, free: 258.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.227/3.904, allocations: 0.671 GB / 1.982 GB, free: 163 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.375e-06/3.904, allocations: 1.969 kB / 1.982 GB, free: 163 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001701/3.904, allocations: 42.03 kB / 1.982 GB, free: 163 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.003009/3.907, allocations: 1.707 MB / 1.983 GB, free: 162.2 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/3.907, allocations: 10.91 kB / 1.983 GB, free: 162.2 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/3.909, allocations: 347.3 kB / 1.984 GB, free: 162.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01655/3.925, allocations: 8.362 MB / 1.992 GB, free: 161.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.005e-05/3.925, allocations: 31.34 kB / 1.992 GB, free: 161.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/3.925, allocations: 52.09 kB / 1.992 GB, free: 161.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001077/3.926, allocations: 0.6194 MB / 1.993 GB, free: 161.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/3.928, allocations: 0.8508 MB / 1.994 GB, free: 161.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/3.928, allocations: 6.25 kB / 1.994 GB, free: 161.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.315e-05/3.928, allocations: 0 / 1.994 GB, free: 161.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/3.928, allocations: 20.84 kB / 1.994 GB, free: 161.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.005001/3.933, allocations: 4.576 MB / 1.998 GB, free: 159.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/3.933, allocations: 455.3 kB / 1.998 GB, free: 159.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/3.934, allocations: 231.9 kB / 1.999 GB, free: 159.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001784/3.935, allocations: 1.645 MB / 2 GB, free: 158 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/3.936, allocations: 358.3 kB / 2.001 GB, free: 157.9 MB / 0.8698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002779/3.936, allocations: 66.88 kB / 2.001 GB, free: 157.9 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 2.114e-06/3.936, allocations: 0 / 2.001 GB, free: 157.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.001619/3.938, allocations: 0.7147 MB / 2.001 GB, free: 157.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/3.938, allocations: 114.4 kB / 2.001 GB, free: 157.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/3.939, allocations: 0.9617 MB / 2.002 GB, free: 157.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.436e-05/3.939, allocations: 31.7 kB / 2.002 GB, free: 157.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000418/3.939, allocations: 0.6642 MB / 2.003 GB, free: 157.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 9.669e-05/3.94, allocations: 150.5 kB / 2.003 GB, free: 157.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/3.94, allocations: 1.688 kB / 2.003 GB, free: 157.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.832e-05/3.94, allocations: 331.4 kB / 2.004 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/3.94, allocations: 206 kB / 2.004 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003626/3.94, allocations: 490 kB / 2.004 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008729/3.941, allocations: 343 kB / 2.005 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/3.941, allocations: 0 / 2.005 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001628/3.943, allocations: 0.9015 MB / 2.005 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004944/3.943, allocations: 2.766 MB / 2.008 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/3.943, allocations: 6.125 kB / 2.008 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/3.944, allocations: 76.05 kB / 2.008 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006085/3.944, allocations: 156.8 kB / 2.008 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005708/3.945, allocations: 1.137 MB / 2.009 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000766/3.946, allocations: 66.97 kB / 2.01 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.273e-05/3.946, allocations: 47.78 kB / 2.01 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-06/3.946, allocations: 3.875 kB / 2.01 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00146/3.947, allocations: 0.7209 MB / 2.01 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/3.947, allocations: 7.938 kB / 2.01 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00017/3.947, allocations: 78.25 kB / 2.01 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000531/3.948, allocations: 149.4 kB / 2.011 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005124/3.948, allocations: 1.148 MB / 2.012 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006706/3.949, allocations: 67.59 kB / 2.012 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-05/3.949, allocations: 44.05 kB / 2.012 GB, free: 151.4 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.0001848/3.949, allocations: 164.3 kB / 2.012 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/3.949, allocations: 132.2 kB / 2.012 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/3.951, allocations: 0.8541 MB / 2.013 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/3.951, allocations: 10.44 kB / 2.013 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/3.951, allocations: 0 / 2.013 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/3.951, allocations: 3.906 kB / 2.013 GB, free: 151.1 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.002662/3.954, allocations: 1.84 MB / 2.015 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/3.954, allocations: 0 / 2.015 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/3.954, allocations: 104.1 kB / 2.015 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001699/3.955, allocations: 65.66 kB / 2.015 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.929e-05/3.955, allocations: 15.19 kB / 2.015 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005367/3.955, allocations: 1.129 MB / 2.016 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/3.955, allocations: 6.594 kB / 2.016 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/3.956, allocations: 1.024 MB / 2.017 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003402/3.957, allocations: 294.9 kB / 2.017 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/3.957, allocations: 3.875 kB / 2.017 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007418/3.958, allocations: 75.8 kB / 2.017 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.979e-05/3.958, allocations: 43.52 kB / 2.017 GB, free: 149 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.168e-05/3.958, allocations: 33.42 kB / 2.017 GB, free: 149 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001006/3.959, allocations: 0.7428 MB / 2.018 GB, free: 148.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.8e-07/3.959, allocations: 0 / 2.018 GB, free: 148.9 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002547/3.961, allocations: 0.7331 MB / 2.019 GB, free: 148.8 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.001568/3.963, allocations: 0.9769 MB / 2.02 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001576/3.965, allocations: 1.08 MB / 2.021 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/3.965, allocations: 2.938 kB / 2.021 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005607/3.965, allocations: 370.5 kB / 2.021 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.002281/3.968, allocations: 0.5371 MB / 2.022 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/3.97, allocations: 1.605 MB / 2.023 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006426/3.971, allocations: 1.238 MB / 2.024 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001732/3.973, allocations: 408 kB / 2.025 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/3.973, allocations: 81.14 kB / 2.025 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of SimCode: time 7.02e-07/3.973, allocations: 0 / 2.025 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of Templates: time 0.04187/4.015, allocations: 27.91 MB / 2.052 GB, free: 145.8 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.makefile (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & ./Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation.csv","../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches