Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve") translateModel(Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.642/1.642, allocations: 287.4 MB / 303.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001283/0.001283, allocations: 186.2 kB / 371.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.555/1.555, allocations: 205.4 MB / 0.6304 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008918/0.0008916, allocations: 98.34 kB / 0.7438 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000614/0.0006144, allocations: 15.25 kB / 0.8667 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2211, allocations: 115.3 MB / 0.9793 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve): time 1.539/1.76, allocations: 0.5955 GB / 1.575 GB, free: 36.71 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.142/1.902, allocations: 118.1 MB / 1.69 GB, free: 1.121 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.02737/1.929, allocations: 0.5033 MB / 1.691 GB, free: 0.8281 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.02046/1.95, allocations: 4.701 MB / 1.695 GB, free: 12.52 MB / 0.9636 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Experimental/DHC/Loads/FlowDistribution.mo:186:18-186:29:writable] Warning: 'each' used when modifying non-array element y. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Experimental/DHC/Loads/FlowDistribution.mo:199:18-199:26:writable] Warning: 'each' used when modifying non-array element y. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Experimental/DHC/Loads/FlowDistribution.mo:186:18-186:29:writable] Warning: 'each' used when modifying non-array element y. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Experimental/DHC/Loads/FlowDistribution.mo:199:18-199:26:writable] Warning: 'each' used when modifying non-array element y. Notification: Performance of NFTyping.typeBindings: time 0.04706/1.997, allocations: 12.86 MB / 1.708 GB, free: 1.578 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.02864/2.026, allocations: 8.296 MB / 1.716 GB, free: 9.387 MB / 0.9792 GB Notification: Performance of NFFlatten.flatten: time 0.05955/2.085, allocations: 39 MB / 1.754 GB, free: 2.305 MB / 1.01 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0317/2.117, allocations: 14.08 MB / 1.768 GB, free: 4.086 MB / 1.026 GB Notification: Performance of NFEvalConstants.evaluate: time 0.03038/2.147, allocations: 11.55 MB / 1.779 GB, free: 8.484 MB / 1.042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01796/2.165, allocations: 8.976 MB / 1.788 GB, free: 15.47 MB / 1.057 GB Notification: Performance of NFPackage.collectConstants: time 0.005461/2.171, allocations: 0.4961 MB / 1.788 GB, free: 14.97 MB / 1.057 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02087/2.192, allocations: 5.404 MB / 1.793 GB, free: 9.559 MB / 1.057 GB Notification: Performance of NFScalarize.scalarize: time 0.006617/2.198, allocations: 2.929 MB / 1.796 GB, free: 6.617 MB / 1.057 GB Notification: Performance of NFVerifyModel.verify: time 0.008442/2.207, allocations: 3.24 MB / 1.8 GB, free: 3.363 MB / 1.057 GB Notification: Performance of NFConvertDAE.convert: time 0.03499/2.242, allocations: 25.38 MB / 1.824 GB, free: 9.914 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/2.242, allocations: 4 kB / 1.824 GB, free: 9.91 MB / 1.089 GB Notification: Performance of FrontEnd: time 3.035e-06/2.242, allocations: 0 / 1.824 GB, free: 9.91 MB / 1.089 GB Notification: Performance of Transformations before backend: time 0.0009679/2.243, allocations: 0 / 1.824 GB, free: 9.91 MB / 1.089 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2475 * Number of variables: 2475 Notification: Performance of Generate backend data structure: time 0.03528/2.278, allocations: 13.5 MB / 1.837 GB, free: 12.27 MB / 1.104 GB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/2.278, allocations: 8.031 kB / 1.838 GB, free: 12.27 MB / 1.104 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02507/2.303, allocations: 5.163 MB / 1.843 GB, free: 7.078 MB / 1.104 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.8659/3.169, allocations: 13.95 MB / 1.856 GB, free: 471.3 MB / 1.104 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003541/3.173, allocations: 1.218 MB / 1.857 GB, free: 471 MB / 1.104 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004639/3.178, allocations: 0.9859 MB / 1.858 GB, free: 470.7 MB / 1.104 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04078/3.218, allocations: 13.67 MB / 1.872 GB, free: 465 MB / 1.104 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002923/3.219, allocations: 18.61 kB / 1.872 GB, free: 465 MB / 1.104 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002307/3.221, allocations: 414.7 kB / 1.872 GB, free: 464.7 MB / 1.104 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006668/3.222, allocations: 361.9 kB / 1.872 GB, free: 464.7 MB / 1.104 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0403/3.262, allocations: 13.66 MB / 1.886 GB, free: 460.2 MB / 1.104 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.1086/3.371, allocations: 61.65 MB / 1.946 GB, free: 411.9 MB / 1.104 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01811/3.389, allocations: 8.002 MB / 1.954 GB, free: 407.8 MB / 1.104 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.011/3.4, allocations: 4.786 MB / 1.958 GB, free: 405.4 MB / 1.104 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 evalFunc (simulation): time 0.03768/3.438, allocations: 18.08 MB / 1.976 GB, free: 388.2 MB / 1.104 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01167/3.449, allocations: 4.911 MB / 1.981 GB, free: 383.2 MB / 1.104 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007255/3.457, allocations: 0.7656 MB / 1.982 GB, free: 382.5 MB / 1.104 GB Notification: Performance of pre-optimization done (n=550): time 2.517e-05/3.457, allocations: 0 / 1.982 GB, free: 382.5 MB / 1.104 GB Notification: Performance of matching and sorting (n=550): time 0.03804/3.495, allocations: 14.24 MB / 1.996 GB, free: 368 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/3.495, allocations: 398.4 kB / 1.996 GB, free: 367.6 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02221/3.517, allocations: 10.77 MB / 2.006 GB, free: 356.8 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.001851/3.519, allocations: 149.7 kB / 2.007 GB, free: 356.7 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.007791/3.527, allocations: 6.108 MB / 2.013 GB, free: 350.6 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.003404/3.53, allocations: 1.872 MB / 2.014 GB, free: 348.7 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/3.532, allocations: 140 kB / 2.015 GB, free: 348.6 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.0006299/3.533, allocations: 0.5681 MB / 2.015 GB, free: 348 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01126/3.544, allocations: 4.089 MB / 2.019 GB, free: 343.9 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01307/3.557, allocations: 6.358 MB / 2.025 GB, free: 336.6 MB / 1.104 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02054/3.578, allocations: 10.03 MB / 2.035 GB, free: 325.8 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.681e-05/3.578, allocations: 16 kB / 2.035 GB, free: 325.8 MB / 1.104 GB Notification: Performance of matching and sorting (n=903) (initialization): time 0.03095/3.609, allocations: 11.94 MB / 2.047 GB, free: 313.7 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009461/3.61, allocations: 1.703 MB / 2.048 GB, free: 311.3 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/3.61, allocations: 55.94 kB / 2.048 GB, free: 311.2 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001615/3.612, allocations: 0.6022 MB / 2.049 GB, free: 310.6 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009103/3.621, allocations: 1.895 MB / 2.051 GB, free: 308.7 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009397/3.63, allocations: 11.71 MB / 2.062 GB, free: 296.2 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01308/3.643, allocations: 1.169 MB / 2.064 GB, free: 295 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001987/3.645, allocations: 359.8 kB / 2.064 GB, free: 294.7 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/3.645, allocations: 4 kB / 2.064 GB, free: 294.7 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02744/3.673, allocations: 10.78 MB / 2.074 GB, free: 283.8 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001509/3.673, allocations: 52 kB / 2.074 GB, free: 283.7 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/3.675, allocations: 0.6032 MB / 2.075 GB, free: 283.1 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008494/3.683, allocations: 1.864 MB / 2.077 GB, free: 281.2 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009064/3.692, allocations: 11.71 MB / 2.088 GB, free: 268.7 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01223/3.704, allocations: 1.119 MB / 2.089 GB, free: 267.6 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/3.706, allocations: 355.8 kB / 2.09 GB, free: 267.2 MB / 1.104 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 237 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition3,$PRE.bui.intGai.nextTimeEvent,bui.disFloCoo.conVal.fixMod.y,bui.disFloHea.conVal.fixMod.y,bui.disFloCoo.conVal.conTSup.con1.y,bui.disFloHea.conVal.conTSup.con1.y,bui.terUni.conCoo.con1.y,bui.terUni.conHea.con1.y,$whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,bui.intGai.nextTimeEvent,$PRE.bui.intGai.nextTimeEventScaled,bui.intGai.nextTimeEventScaled,bui.terUni.hexHea.flowRegime,bui.terUni.hexCoo.flowRegime,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile,bui.terUni.hexHea.flowRegime_nominal,bui.terUni.hexCoo.flowRegime_nominal,bui.disFloCoo.conVal.conTSup.cheYMinMax.y,bui.disFloHea.conVal.conTSup.cheYMinMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (857): * Single equations (assignments): 848 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 9,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(2,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009108/3.715, allocations: 3.456 MB / 2.093 GB, free: 263.8 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0038/3.719, allocations: 1.096 MB / 2.094 GB, free: 262.7 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03089/3.75, allocations: 10.88 MB / 2.105 GB, free: 251.7 MB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02178/3.772, allocations: 8.446 MB / 2.113 GB, free: 243.1 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.933e-05/3.772, allocations: 4 kB / 2.113 GB, free: 243.1 MB / 1.104 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008581/3.781, allocations: 2.497 MB / 2.115 GB, free: 240.5 MB / 1.104 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00504/3.786, allocations: 108 kB / 2.116 GB, free: 240.4 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01164/3.797, allocations: 0.9859 MB / 2.117 GB, free: 239.5 MB / 1.104 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001452/3.799, allocations: 379.9 kB / 2.117 GB, free: 239.1 MB / 1.104 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02843/3.827, allocations: 10.23 MB / 2.127 GB, free: 228.8 MB / 1.104 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.03388/3.861, allocations: 15.53 MB / 2.142 GB, free: 213.2 MB / 1.104 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.009536/3.871, allocations: 4.357 MB / 2.146 GB, free: 208.8 MB / 1.104 GB Notification: Performance of sorting global known variables: time 0.01508/3.886, allocations: 7.341 MB / 2.153 GB, free: 201.5 MB / 1.104 GB Notification: Performance of Backend: time 1.593e-06/3.886, allocations: 3.938 kB / 2.153 GB, free: 201.5 MB / 1.104 GB Notification: Performance of simCode: created initialization part: time 0.04552/3.932, allocations: 16.39 MB / 2.169 GB, free: 185.8 MB / 1.104 GB Notification: Performance of SimCode: time 0.06065/3.992, allocations: 29.47 MB / 2.198 GB, free: 156.4 MB / 1.104 GB Notification: Performance of Templates: time 0.8067/4.799, allocations: 258.4 MB / 2.451 GB, free: 400.5 MB / 1.104 GB make -j1 -f Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.makefile (rm -f Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.pipe ; mkfifo Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.pipe >> ../files/Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.sim & ./Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.pipe 2>&1)