Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.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.PlateHeatExchangerEffectivenessNTUPControl,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.PlateHeatExchangerEffectivenessNTUPControl") translateModel(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,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.PlateHeatExchangerEffectivenessNTUPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001626/0.001626, allocations: 180.4 kB / 492.3 MB, free: 0.625 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.66/1.66, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0009764/0.0009764, allocations: 95.88 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.738e-05/4.748e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4218, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.44/1.862, allocations: 423.4 MB / 1.626 GB, free: 6.855 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/1.862, allocations: 89.36 kB / 1.626 GB, free: 6.812 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 3.039/4.902, allocations: 0.6279 GB / 2.254 GB, free: 246.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.274e-06/4.902, allocations: 3.219 kB / 2.254 GB, free: 246.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002932/4.902, allocations: 40.09 kB / 2.254 GB, free: 246.4 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.006418/4.908, allocations: 1.818 MB / 2.256 GB, free: 245.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/4.908, allocations: 11.12 kB / 2.256 GB, free: 245.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002277/4.911, allocations: 390 kB / 2.256 GB, free: 245.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02908/4.94, allocations: 13.68 MB / 2.269 GB, free: 244.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006749/4.941, allocations: 214.5 kB / 2.27 GB, free: 244.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002545/4.941, allocations: 98.06 kB / 2.27 GB, free: 244.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/4.943, allocations: 0.9998 MB / 2.271 GB, free: 244.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/4.943, allocations: 2.625 kB / 2.271 GB, free: 244.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.274e-05/4.943, allocations: 33.12 kB / 2.271 GB, free: 244.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.717e-05/4.943, allocations: 41 kB / 2.271 GB, free: 244.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/4.944, allocations: 0.8043 MB / 2.272 GB, free: 244.7 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.008111/4.952, allocations: 4.832 MB / 2.276 GB, free: 242.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000973/4.953, allocations: 0.6434 MB / 2.277 GB, free: 242.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/4.954, allocations: 344.4 kB / 2.277 GB, free: 242.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009603/4.955, allocations: 1.06 MB / 2.278 GB, free: 241.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006882/4.955, allocations: 428.5 kB / 2.279 GB, free: 241.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=74): time 3.607e-06/4.955, allocations: 0 / 2.279 GB, free: 241.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=74): time 0.001704/4.957, allocations: 0.7752 MB / 2.279 GB, free: 241.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/4.957, allocations: 120.2 kB / 2.28 GB, free: 241.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/4.959, allocations: 1.026 MB / 2.281 GB, free: 241.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001457/4.959, allocations: 46.36 kB / 2.281 GB, free: 241.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004581/4.959, allocations: 0.5885 MB / 2.281 GB, free: 240.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/4.959, allocations: 253.5 kB / 2.281 GB, free: 240.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.132e-05/4.959, allocations: 23.16 kB / 2.281 GB, free: 240.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.552e-05/4.96, allocations: 344.7 kB / 2.282 GB, free: 240.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004966/4.96, allocations: 317.7 kB / 2.282 GB, free: 240.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006729/4.961, allocations: 0.5768 MB / 2.283 GB, free: 240.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005827/4.961, allocations: 398.5 kB / 2.283 GB, free: 240.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/4.961, allocations: 3.781 kB / 2.283 GB, free: 240.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001785/4.963, allocations: 1.06 MB / 2.284 GB, free: 239.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003753/4.964, allocations: 1.623 MB / 2.286 GB, free: 238.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/4.964, allocations: 3.281 kB / 2.286 GB, free: 238.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.255e-05/4.964, allocations: 11.78 kB / 2.286 GB, free: 238.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/4.965, allocations: 310.6 kB / 2.286 GB, free: 238.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005432/4.966, allocations: 1.198 MB / 2.287 GB, free: 237.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/4.967, allocations: 212.8 kB / 2.287 GB, free: 237.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/4.967, allocations: 57.52 kB / 2.287 GB, free: 237.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/4.967, allocations: 5.406 kB / 2.287 GB, free: 237.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001474/4.969, allocations: 0.9181 MB / 2.288 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/4.969, allocations: 3.875 kB / 2.288 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/4.969, allocations: 13.89 kB / 2.288 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/4.97, allocations: 292.8 kB / 2.289 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/4.97, allocations: 13.94 kB / 2.289 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/4.972, allocations: 198.2 kB / 2.289 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/4.972, allocations: 56.75 kB / 2.289 GB, free: 237 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (120): * Single equations (assignments): 117 * 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.0003149/4.972, allocations: 160.9 kB / 2.289 GB, free: 236.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000285/4.972, allocations: 143.5 kB / 2.289 GB, free: 236.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00199/4.974, allocations: 1.074 MB / 2.29 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.715e-05/4.974, allocations: 14.92 kB / 2.29 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/4.974, allocations: 0 / 2.29 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/4.974, allocations: 4.828 kB / 2.29 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003486/4.978, allocations: 2.338 MB / 2.292 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/4.978, allocations: 3.938 kB / 2.292 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/4.979, allocations: 238 kB / 2.293 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.274e-05/4.979, allocations: 3.281 kB / 2.293 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.527e-05/4.979, allocations: 27.92 kB / 2.293 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004037/4.98, allocations: 1.192 MB / 2.294 GB, free: 235.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/4.98, allocations: 3.844 kB / 2.294 GB, free: 235.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/4.982, allocations: 1.659 MB / 2.296 GB, free: 234.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007557/4.982, allocations: 359.4 kB / 2.296 GB, free: 234.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/4.983, allocations: 24.05 kB / 2.296 GB, free: 234.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/4.984, allocations: 137.5 kB / 2.296 GB, free: 234.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/4.984, allocations: 72.69 kB / 2.296 GB, free: 234.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.399e-05/4.984, allocations: 37.42 kB / 2.296 GB, free: 234.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001111/4.985, allocations: 0.779 MB / 2.297 GB, free: 234.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.41e-07/4.985, allocations: 3.031 kB / 2.297 GB, free: 234.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002822/4.988, allocations: 0.845 MB / 2.298 GB, free: 234.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001876/4.99, allocations: 0.8453 MB / 2.299 GB, free: 234 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002833/4.993, allocations: 1.533 MB / 2.3 GB, free: 233.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/4.993, allocations: 3.906 kB / 2.3 GB, free: 233.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007946/4.994, allocations: 491.4 kB / 2.301 GB, free: 233.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003312/4.997, allocations: 0.5723 MB / 2.301 GB, free: 233.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004554/5.001, allocations: 1.851 MB / 2.303 GB, free: 233.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009554/5.002, allocations: 1.195 MB / 2.304 GB, free: 232.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002686/5.005, allocations: 426.4 kB / 2.304 GB, free: 232.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003585/5.005, allocations: 102.9 kB / 2.305 GB, free: 232.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.142e-06/5.005, allocations: 0 / 2.305 GB, free: 232.5 MB / 1.151 GB Notification: Performance of Templates: time 0.0579/5.063, allocations: 33.21 MB / 2.337 GB, free: 231.7 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches