Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus.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.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tow.PFan|PFan_EP.y|tow.Q_flow|Q_flow_EP.y|tow.TLvg|TLvg_EP.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus") translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tow.PFan|PFan_EP.y|tow.Q_flow|Q_flow_EP.y|tow.TLvg|TLvg_EP.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009749/0.0009749, allocations: 99.55 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.0009754/0.0009755, allocations: 177.3 kB / 15.94 MB, free: 228 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.415/1.415, allocations: 223.2 MB / 239.9 MB, free: 5.242 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.388/2.388, allocations: 390.3 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.0003479, allocations: 8 kB / 0.8145 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7431/0.7434, allocations: 142.3 MB / 0.9535 GB, free: 8.328 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus): time 0.1905/0.934, allocations: 153.1 MB / 1.103 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02077/0.9548, allocations: 11.35 MB / 1.114 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002081/0.957, allocations: 27.81 kB / 1.114 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002258/0.9592, allocations: 473.6 kB / 1.115 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007468/0.9667, allocations: 1.893 MB / 1.116 GB, free: 9.125 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004053/0.9708, allocations: 1.195 MB / 1.118 GB, free: 7.953 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003685/0.9745, allocations: 1.471 MB / 1.119 GB, free: 6.48 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.9758, allocations: 0.614 MB / 1.12 GB, free: 5.855 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.9773, allocations: 0.6539 MB / 1.12 GB, free: 5.199 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008185/0.9781, allocations: 0.4977 MB / 1.121 GB, free: 4.699 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.9782, allocations: 40 kB / 1.121 GB, free: 4.66 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004116/0.9823, allocations: 1.611 MB / 1.122 GB, free: 3.047 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003596/0.9827, allocations: 271 kB / 1.123 GB, free: 2.781 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004344/0.9832, allocations: 245.1 kB / 1.123 GB, free: 2.535 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.003462/0.9867, allocations: 1.878 MB / 1.125 GB, free: 0.6523 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.9867, allocations: 0 / 1.125 GB, free: 0.6523 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.655e-06/0.9867, allocations: 0 / 1.125 GB, free: 0.6523 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.71e-05/0.9867, allocations: 3.938 kB / 1.125 GB, free: 0.6484 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.00307/0.9898, allocations: 1.588 MB / 1.126 GB, free: 15 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.9898, allocations: 8.031 kB / 1.126 GB, free: 14.99 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009975/0.9908, allocations: 246.2 kB / 1.126 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.9936, allocations: 1.794 MB / 1.128 GB, free: 12.9 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.334e-05/0.9937, allocations: 45.31 kB / 1.128 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.9938, allocations: 60 kB / 1.128 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.9952, allocations: 0.7402 MB / 1.129 GB, free: 12.03 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.9952, allocations: 0 / 1.129 GB, free: 12.03 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.631e-05/0.9953, allocations: 28 kB / 1.129 GB, free: 12 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.673e-05/0.9954, allocations: 19.98 kB / 1.129 GB, free: 11.98 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.9967, allocations: 0.7194 MB / 1.13 GB, free: 11.27 MB / 0.8887 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.004711/1.001, allocations: 3.199 MB / 1.133 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/1.003, allocations: 0.7141 MB / 1.134 GB, free: 7.203 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00451/1.008, allocations: 3.619 MB / 1.137 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008216/1.008, allocations: 361.3 kB / 1.137 GB, free: 2.656 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=52): time 3.607e-06/1.008, allocations: 0 / 1.137 GB, free: 2.656 MB / 0.8887 GB Notification: Performance of matching and sorting (n=52): time 0.005376/1.014, allocations: 1.46 MB / 1.139 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/1.014, allocations: 85.55 kB / 1.139 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002752/1.017, allocations: 2.075 MB / 1.141 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.629e-05/1.017, allocations: 41.7 kB / 1.141 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004771/1.017, allocations: 0.5007 MB / 1.142 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/1.017, allocations: 177.5 kB / 1.142 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/1.017, allocations: 16 kB / 1.142 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002471/1.018, allocations: 326 kB / 1.142 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006123/1.018, allocations: 297.2 kB / 1.142 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000839/1.019, allocations: 0.5696 MB / 1.143 GB, free: 13 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006581/1.02, allocations: 346 kB / 1.143 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/1.02, allocations: 0 / 1.143 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002066/1.022, allocations: 0.9639 MB / 1.144 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004882/1.022, allocations: 0.9796 MB / 1.145 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/1.022, allocations: 0 / 1.145 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703/2.726, allocations: 193.5 MB / 1.334 GB, free: 218.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/2.726, allocations: 133.3 kB / 1.334 GB, free: 218.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/2.728, allocations: 1.282 MB / 1.335 GB, free: 217.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/2.729, allocations: 103.9 kB / 1.336 GB, free: 217.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-05/2.729, allocations: 33.48 kB / 1.336 GB, free: 217.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/2.729, allocations: 7.781 kB / 1.336 GB, free: 217.5 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001694/2.731, allocations: 0.8374 MB / 1.336 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/2.731, allocations: 4 kB / 1.336 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12/3.851, allocations: 193.5 MB / 1.525 GB, free: 23.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005551/3.851, allocations: 132.4 kB / 1.526 GB, free: 23.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/3.852, allocations: 1.286 MB / 1.527 GB, free: 21.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009226/3.853, allocations: 101.6 kB / 1.527 GB, free: 21.79 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.468e-05/3.853, allocations: 31.55 kB / 1.527 GB, free: 21.77 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.datRea.nextTimeEvent,datRea.nextTimeEvent,$PRE.datRea.nextTimeEventScaled,datRea.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * 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 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004927/3.854, allocations: 375.9 kB / 1.527 GB, free: 21.43 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/3.854, allocations: 123.8 kB / 1.527 GB, free: 21.37 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/3.856, allocations: 0.9216 MB / 1.528 GB, free: 20.45 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/3.856, allocations: 7.938 kB / 1.528 GB, free: 20.45 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/3.856, allocations: 4 kB / 1.528 GB, free: 20.44 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00125/3.857, allocations: 0.957 MB / 1.529 GB, free: 19.41 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/3.861, allocations: 2.082 MB / 1.531 GB, free: 17.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/3.861, allocations: 3.938 kB / 1.531 GB, free: 17.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/3.861, allocations: 87.84 kB / 1.531 GB, free: 17.21 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.5949/4.456, allocations: 96.83 MB / 1.626 GB, free: 280 kB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/4.456, allocations: 19.98 kB / 1.626 GB, free: 260 kB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/4.457, allocations: 0.7405 MB / 1.627 GB, free: 15.49 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/4.458, allocations: 7.969 kB / 1.627 GB, free: 15.48 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/4.461, allocations: 1.485 MB / 1.628 GB, free: 13.98 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006117/4.462, allocations: 311.1 kB / 1.628 GB, free: 13.66 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/4.462, allocations: 12 kB / 1.628 GB, free: 13.65 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006017/4.463, allocations: 52.02 kB / 1.628 GB, free: 13.6 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.854e-05/4.463, allocations: 36.39 kB / 1.629 GB, free: 13.56 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.762e-05/4.463, allocations: 27.97 kB / 1.629 GB, free: 13.54 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001608/4.464, allocations: 1.548 MB / 1.63 GB, free: 11.98 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.71e-07/4.464, allocations: 0 / 1.63 GB, free: 11.98 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.001852/4.466, allocations: 0.7243 MB / 1.631 GB, free: 11.34 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (tow.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,datRea.nextTimeEvent,datRea.nextTimeEventScaled) * Number of discrete states: 2 (datRea.nextTimeEvent,datRea.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002037/4.468, allocations: 0.9498 MB / 1.632 GB, free: 10.68 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002394/4.471, allocations: 1.155 MB / 1.633 GB, free: 9.531 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/4.471, allocations: 0 / 1.633 GB, free: 9.531 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0006667/4.471, allocations: 350.4 kB / 1.633 GB, free: 9.191 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002164/4.474, allocations: 478.4 kB / 1.634 GB, free: 8.727 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003118/4.477, allocations: 2.304 MB / 1.636 GB, free: 6.383 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005948/4.477, allocations: 1.12 MB / 1.637 GB, free: 5.234 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0009552/4.478, allocations: 287 kB / 1.637 GB, free: 4.957 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/4.478, allocations: 103.4 kB / 1.637 GB, free: 4.855 MB / 1.092 GB Notification: Performance of SimCode: time 6.52e-07/4.478, allocations: 0 / 1.637 GB, free: 4.855 MB / 1.092 GB Notification: Performance of Templates: time 0.04038/4.519, allocations: 26.76 MB / 1.663 GB, free: 10.45 MB / 1.123 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_CoolingTowers_Validation_MerkelEnergyPlus.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Validation.MerkelEnergyPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches