Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|P.u_s|P.u_m|hex.sta_a1.T|hex.sta_b1.T|hex.sta_a2.T|hex.sta_b2.T|hex.Q1_flow|hex.Q2_flow|hex.m1_flow|hex.m2_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl") translateModel(Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|P.u_s|P.u_m|hex.sta_a1.T|hex.sta_b1.T|hex.sta_a2.T|hex.sta_b2.T|hex.Q1_flow|hex.Q2_flow|hex.m1_flow|hex.m2_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.258/2.258, allocations: 387.1 MB / 399.7 MB, free: 9.508 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 173 kB / 492.3 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.3 MB / 0.7871 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000896/0.0008963, allocations: 94.7 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.987e-05/3.991e-05, allocations: 7.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3095, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.283/6.592, allocations: 2.186 GB / 3.398 GB, free: 92.26 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/6.592, allocations: 95.42 kB / 3.398 GB, free: 92.21 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.718/10.31, allocations: 0.9535 GB / 4.352 GB, free: 7.547 MB / 1.151 GB Notification: Performance of FrontEnd: time 4.439e-06/10.31, allocations: 3.938 kB / 4.352 GB, free: 7.543 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001985/10.31, allocations: 47.92 kB / 4.352 GB, free: 7.496 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.007403/10.32, allocations: 2.08 MB / 4.354 GB, free: 5.359 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/10.32, allocations: 8.031 kB / 4.354 GB, free: 5.352 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003151/10.32, allocations: 0.5442 MB / 4.354 GB, free: 4.805 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003521/10.33, allocations: 1.364 MB / 4.356 GB, free: 3.387 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006103/10.33, allocations: 222.3 kB / 4.356 GB, free: 3.172 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002493/10.33, allocations: 112 kB / 4.356 GB, free: 3.062 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/10.33, allocations: 1.211 MB / 4.357 GB, free: 1.809 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/10.33, allocations: 0 / 4.357 GB, free: 1.809 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/10.33, allocations: 40 kB / 4.357 GB, free: 1.77 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.849e-05/10.33, allocations: 45.98 kB / 4.357 GB, free: 1.727 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/10.33, allocations: 1.039 MB / 4.358 GB, free: 0.6875 MB / 1.151 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.01135/10.34, allocations: 5.526 MB / 4.364 GB, free: 10.86 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/10.34, allocations: 0.7763 MB / 4.365 GB, free: 10.07 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006786/10.34, allocations: 422.3 kB / 4.365 GB, free: 9.66 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001212/10.34, allocations: 0.7554 MB / 4.366 GB, free: 8.758 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009764/10.35, allocations: 0.5136 MB / 4.366 GB, free: 8.23 MB / 1.167 GB Notification: Performance of pre-optimization done (n=82): time 5.52e-06/10.35, allocations: 0 / 4.366 GB, free: 8.23 MB / 1.167 GB Notification: Performance of matching and sorting (n=82): time 0.002731/10.35, allocations: 0.9358 MB / 4.367 GB, free: 7.285 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/10.35, allocations: 115.5 kB / 4.367 GB, free: 7.145 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/10.35, allocations: 1.145 MB / 4.368 GB, free: 5.992 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001528/10.35, allocations: 49.7 kB / 4.368 GB, free: 5.938 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006107/10.35, allocations: 0.6313 MB / 4.369 GB, free: 5.297 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002893/10.35, allocations: 272 kB / 4.369 GB, free: 5.027 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.795e-05/10.35, allocations: 23.94 kB / 4.369 GB, free: 5.004 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001731/10.35, allocations: 357.9 kB / 4.37 GB, free: 4.648 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006962/10.35, allocations: 394.5 kB / 4.37 GB, free: 4.266 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009389/10.35, allocations: 0.6891 MB / 4.371 GB, free: 3.465 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008044/10.35, allocations: 488.4 kB / 4.371 GB, free: 2.984 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/10.35, allocations: 0 / 4.371 GB, free: 2.984 MB / 1.167 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002192/10.36, allocations: 1.247 MB / 4.372 GB, free: 1.723 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.029/11.39, allocations: 1.902 MB / 4.374 GB, free: 211.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-05/11.39, allocations: 4.719 kB / 4.374 GB, free: 211.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.016e-05/11.39, allocations: 14.48 kB / 4.374 GB, free: 211.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002649/11.39, allocations: 347.6 kB / 4.375 GB, free: 211.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007706/11.39, allocations: 1.2 MB / 4.376 GB, free: 210.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002763/11.39, allocations: 248.8 kB / 4.376 GB, free: 210.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000252/11.39, allocations: 54.73 kB / 4.376 GB, free: 210.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/11.39, allocations: 7.859 kB / 4.376 GB, free: 210.3 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002518/11.39, allocations: 1.092 MB / 4.377 GB, free: 210.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/11.39, allocations: 5.094 kB / 4.377 GB, free: 210.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/11.39, allocations: 9.625 kB / 4.377 GB, free: 210.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/11.4, allocations: 338.7 kB / 4.377 GB, free: 210.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.75e-05/11.4, allocations: 14.05 kB / 4.377 GB, free: 210.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002636/11.4, allocations: 228 kB / 4.378 GB, free: 210.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002386/11.4, allocations: 60.81 kB / 4.378 GB, free: 210.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,hex.flowRegime,hex.flowRegime_nominal,P.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006608/11.4, allocations: 175.4 kB / 4.378 GB, free: 210.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008024/11.4, allocations: 156.9 kB / 4.378 GB, free: 210.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003771/11.4, allocations: 1.116 MB / 4.379 GB, free: 210.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.593e-05/11.41, allocations: 11.53 kB / 4.379 GB, free: 210.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/11.41, allocations: 3.609 kB / 4.379 GB, free: 210.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/11.41, allocations: 5.281 kB / 4.379 GB, free: 210.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00806/11.41, allocations: 2.647 MB / 4.382 GB, free: 209.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/11.41, allocations: 4.125 kB / 4.382 GB, free: 209.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/11.42, allocations: 252.8 kB / 4.382 GB, free: 209.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.41e-05/11.42, allocations: 9 kB / 4.382 GB, free: 209.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001406/11.42, allocations: 37.36 kB / 4.382 GB, free: 209.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006642/11.42, allocations: 1.187 MB / 4.383 GB, free: 208.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/11.42, allocations: 3.781 kB / 4.383 GB, free: 208.5 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004436/11.42, allocations: 1.946 MB / 4.385 GB, free: 207.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/11.42, allocations: 385.7 kB / 4.385 GB, free: 207.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002097/11.42, allocations: 23.39 kB / 4.385 GB, free: 207.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/11.42, allocations: 143.7 kB / 4.386 GB, free: 207.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/11.42, allocations: 70.25 kB / 4.386 GB, free: 207.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/11.42, allocations: 46.8 kB / 4.386 GB, free: 207.6 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001591/11.43, allocations: 0.8672 MB / 4.387 GB, free: 207.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.6e-07/11.43, allocations: 0 / 4.387 GB, free: 207.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004293/11.43, allocations: 1.003 MB / 4.388 GB, free: 207.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 4 (temSen.T,val.filter.s[1],val.filter.s[2],P.I.y) * Number of discrete variables: 4 ($whenCondition1,TSet.T_start,TSet.count,hex.flowRegime) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004576/11.43, allocations: 2.095 MB / 4.39 GB, free: 207 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.004285/11.44, allocations: 1.774 MB / 4.391 GB, free: 206.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/11.44, allocations: 0.625 kB / 4.391 GB, free: 206.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001307/11.44, allocations: 0.5285 MB / 4.392 GB, free: 206.8 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004307/11.44, allocations: 0.6685 MB / 4.393 GB, free: 206.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00539/11.45, allocations: 2.071 MB / 4.395 GB, free: 206.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/11.45, allocations: 1.258 MB / 4.396 GB, free: 205.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.003182/11.45, allocations: 0.5065 MB / 4.396 GB, free: 205.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004518/11.45, allocations: 106.6 kB / 4.396 GB, free: 205.4 MB / 1.167 GB Notification: Performance of SimCode: time 2.274e-06/11.45, allocations: 3.656 kB / 4.396 GB, free: 205.4 MB / 1.167 GB Notification: Performance of Templates: time 0.09743/11.55, allocations: 55.56 MB / 4.451 GB, free: 204.6 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUPControl.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches