Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve") translateModel(Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 101.2 kB / 16.37 MB, free: 6.473 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.001667/0.001668, allocations: 193.8 kB / 17.32 MB, free: 5.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.29/1.29, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.729/1.729, allocations: 292.3 MB / 0.5496 GB, free: 17.66 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 67.91 kB / 0.6729 GB, free: 5.816 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1875, allocations: 114.6 MB / 0.7848 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve): time 1.31/1.498, allocations: 0.6478 GB / 1.433 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.1587/1.657, allocations: 125.5 MB / 1.555 GB, free: 10.69 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.02001/1.677, allocations: 0.5787 MB / 1.556 GB, free: 10.11 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.01849/1.695, allocations: 7.368 MB / 1.563 GB, free: 2.699 MB / 1.123 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4-maint.8.1.x/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.1.4-maint.8.1.x/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.1.4-maint.8.1.x/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/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.6092/2.305, allocations: 17.61 MB / 1.58 GB, free: 11.63 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.02752/2.332, allocations: 13.18 MB / 1.593 GB, free: 11.57 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.04969/2.382, allocations: 36.71 MB / 1.629 GB, free: 11.48 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02975/2.412, allocations: 17.89 MB / 1.646 GB, free: 9.16 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.03594/2.448, allocations: 16.44 MB / 1.662 GB, free: 8.406 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01853/2.466, allocations: 10.76 MB / 1.673 GB, free: 6.582 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.006629/2.473, allocations: 2.076 MB / 1.675 GB, free: 6.582 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02287/2.496, allocations: 10.03 MB / 1.685 GB, free: 6.457 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.007235/2.503, allocations: 4.772 MB / 1.689 GB, free: 5.887 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.01583/2.519, allocations: 9.127 MB / 1.698 GB, free: 3.609 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.04198/2.561, allocations: 32.1 MB / 1.73 GB, free: 8.754 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/2.561, allocations: 0 / 1.73 GB, free: 8.754 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.843e-06/2.561, allocations: 2.375 kB / 1.73 GB, free: 8.754 MB / 1.139 GB Notification: Performance of Transformations before backend: time 0.0007258/2.562, allocations: 0 / 1.73 GB, free: 8.754 MB / 1.139 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.04539/2.607, allocations: 16.66 MB / 1.746 GB, free: 11.98 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/2.607, allocations: 16.03 kB / 1.746 GB, free: 11.96 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02724/2.634, allocations: 4.892 MB / 1.751 GB, free: 7.109 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02999/2.664, allocations: 14.19 MB / 1.764 GB, free: 12.29 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007454/2.665, allocations: 0.7577 MB / 1.765 GB, free: 11.54 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003606/2.669, allocations: 0.9877 MB / 1.766 GB, free: 10.55 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03421/2.703, allocations: 13.65 MB / 1.779 GB, free: 12.56 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002254/2.703, allocations: 19.53 kB / 1.78 GB, free: 12.55 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001469/2.705, allocations: 410.3 kB / 1.78 GB, free: 12.15 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002761/2.705, allocations: 370.6 kB / 1.78 GB, free: 11.79 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03527/2.74, allocations: 13.32 MB / 1.793 GB, free: 14.55 MB / 1.201 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.1009/2.841, allocations: 62.52 MB / 1.854 GB, free: 13.97 MB / 1.264 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0176/2.859, allocations: 7.475 MB / 1.862 GB, free: 6.539 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01042/2.869, allocations: 4.544 MB / 1.866 GB, free: 1.98 MB / 1.264 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.03393/2.903, allocations: 17.51 MB / 1.883 GB, free: 15.87 MB / 1.295 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01152/2.915, allocations: 4.642 MB / 1.888 GB, free: 11.13 MB / 1.295 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004288/2.919, allocations: 0.5017 MB / 1.888 GB, free: 10.62 MB / 1.295 GB Notification: Performance of pre-optimization done (n=543): time 1.296e-05/2.919, allocations: 4 kB / 1.888 GB, free: 10.62 MB / 1.295 GB Notification: Performance of matching and sorting (n=543): time 0.04032/2.96, allocations: 13.54 MB / 1.901 GB, free: 12.81 MB / 1.311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000174/2.96, allocations: 397.3 kB / 1.902 GB, free: 12.34 MB / 1.311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02123/2.981, allocations: 10.98 MB / 1.913 GB, free: 1.41 MB / 1.311 GB Notification: Performance of collectPreVariables (initialization): time 0.001681/2.983, allocations: 153.7 kB / 1.913 GB, free: 1.254 MB / 1.311 GB Notification: Performance of collectInitialEqns (initialization): time 0.006616/2.989, allocations: 6.154 MB / 1.919 GB, free: 11.16 MB / 1.326 GB Notification: Performance of collectInitialBindings (initialization): time 0.002731/2.992, allocations: 1.841 MB / 1.92 GB, free: 9.332 MB / 1.326 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002915/2.995, allocations: 1.544 MB / 1.922 GB, free: 7.781 MB / 1.326 GB Notification: Performance of setup shared object (initialization): time 7.713e-05/2.995, allocations: 305.1 kB / 1.922 GB, free: 7.48 MB / 1.326 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009232/3.004, allocations: 4.005 MB / 1.926 GB, free: 3.469 MB / 1.326 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0112/3.016, allocations: 6.312 MB / 1.932 GB, free: 12.23 MB / 1.342 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02206/3.038, allocations: 9.921 MB / 1.942 GB, free: 1.695 MB / 1.342 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-05/3.038, allocations: 16 kB / 1.942 GB, free: 1.68 MB / 1.342 GB Notification: Performance of matching and sorting (n=916) (initialization): time 0.03574/3.074, allocations: 11.78 MB / 1.954 GB, free: 6.105 MB / 1.357 GB Notification: Performance of prepare postOptimizeDAE: time 0.000135/3.074, allocations: 28 kB / 1.954 GB, free: 6.078 MB / 1.357 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/3.074, allocations: 56 kB / 1.954 GB, free: 6.023 MB / 1.357 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/3.076, allocations: 0.6239 MB / 1.954 GB, free: 5.387 MB / 1.357 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009878/3.085, allocations: 1.849 MB / 1.956 GB, free: 3.641 MB / 1.357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/3.097, allocations: 12.82 MB / 1.969 GB, free: 6.066 MB / 1.373 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01147/3.109, allocations: 0.6963 MB / 1.969 GB, free: 5.375 MB / 1.373 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001907/3.111, allocations: 370.5 kB / 1.97 GB, free: 5.016 MB / 1.373 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01787/3.128, allocations: 6.897 MB / 1.976 GB, free: 14.11 MB / 1.389 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01256/3.141, allocations: 6.199 MB / 1.982 GB, free: 6.988 MB / 1.389 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02262/3.164, allocations: 9.731 MB / 1.992 GB, free: 12.64 MB / 1.404 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.407e-05/3.164, allocations: 16 kB / 1.992 GB, free: 12.62 MB / 1.404 GB Notification: Performance of matching and sorting (n=916) (initialization_lambda0): time 0.03333/3.197, allocations: 11.59 MB / 2.003 GB, free: 1.25 MB / 1.404 GB Notification: Performance of prepare postOptimizeDAE: time 7.273e-05/3.197, allocations: 38.58 kB / 2.003 GB, free: 1.215 MB / 1.404 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.97e-05/3.197, allocations: 56 kB / 2.003 GB, free: 1.16 MB / 1.404 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/3.199, allocations: 0.617 MB / 2.004 GB, free: 0.5312 MB / 1.404 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009093/3.208, allocations: 1.828 MB / 2.006 GB, free: 14.8 MB / 1.42 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/3.22, allocations: 12.83 MB / 2.018 GB, free: 1.227 MB / 1.42 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01177/3.232, allocations: 0.717 MB / 2.019 GB, free: 0.5156 MB / 1.42 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001926/3.234, allocations: 355.9 kB / 2.019 GB, free: 172 kB / 1.42 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 253 * Number of states: 0 () * Number of discrete variables: 25 ($PRE.bui.intGai.nextTimeEvent,$whenCondition3,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,bui.disFloCoo.conVal.conTSup.cheYMinMax.y,bui.disFloHea.conVal.conTSup.cheYMinMax.y,bui.terUni.hexCoo.flowRegime_nominal,bui.terUni.hexHea.flowRegime_nominal,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,bui.terUni.hexCoo.flowRegime,bui.terUni.hexHea.flowRegime,bui.intGai.nextTimeEventScaled,$PRE.bui.intGai.nextTimeEventScaled,bui.intGai.nextTimeEvent,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 861 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,9,100.0%), (1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,4,100.0%), (2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003334/3.237, allocations: 0.6483 MB / 2.02 GB, free: 15.62 MB / 1.436 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003977/3.241, allocations: 1.099 MB / 2.021 GB, free: 14.5 MB / 1.436 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03207/3.273, allocations: 10.36 MB / 2.031 GB, free: 4.055 MB / 1.436 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02118/3.294, allocations: 8.004 MB / 2.039 GB, free: 11.93 MB / 1.451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.231e-05/3.294, allocations: 0 / 2.039 GB, free: 11.93 MB / 1.451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006814/3.301, allocations: 2.33 MB / 2.041 GB, free: 9.566 MB / 1.451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003842/3.305, allocations: 119.8 kB / 2.041 GB, free: 9.449 MB / 1.451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009267/3.314, allocations: 0.5657 MB / 2.042 GB, free: 8.883 MB / 1.451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001253/3.315, allocations: 379.8 kB / 2.042 GB, free: 8.508 MB / 1.451 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02959/3.345, allocations: 9.679 MB / 2.052 GB, free: 14.84 MB / 1.467 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.4021/3.747, allocations: 14.81 MB / 2.066 GB, free: 0.7658 GB / 1.467 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.009005/3.756, allocations: 4.133 MB / 2.07 GB, free: 0.7657 GB / 1.467 GB Notification: Performance of sorting global known variables: time 0.01338/3.77, allocations: 7.515 MB / 2.078 GB, free: 0.7654 GB / 1.467 GB Notification: Performance of Backend: time 7.52e-07/3.77, allocations: 0 / 2.078 GB, free: 0.7654 GB / 1.467 GB Notification: Performance of simCode: created initialization part: time 0.04556/3.815, allocations: 16.21 MB / 2.093 GB, free: 0.7639 GB / 1.467 GB Notification: Performance of SimCode: time 0.05974/3.875, allocations: 25.76 MB / 2.119 GB, free: 0.7541 GB / 1.467 GB Notification: Performance of Templates: time 0.3461/4.221, allocations: 269 MB / 2.381 GB, free: 0.5415 GB / 1.467 GB make -j1 -f Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.makefile (rm -f Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.pipe ; mkfifo Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.pipe ; head -c 1048576 < Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.pipe >> ../files/Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.sim & ./Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Experimental.DHC.Loads.Examples.CouplingRCZ1Valve.pipe 2>&1)