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.178/2.178, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.001201/0.001201, allocations: 184.9 kB / 487.4 MB, free: 5.027 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.617/1.617, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001192, allocations: 103.8 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.473e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2969, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.189/1.486, allocations: 422.8 MB / 1.619 GB, free: 15.6 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/1.487, allocations: 90.11 kB / 1.619 GB, free: 15.55 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 2.703/4.19, allocations: 0.6248 GB / 2.244 GB, free: 247.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.403e-06/4.19, allocations: 0 / 2.244 GB, free: 247.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000284/4.19, allocations: 39.92 kB / 2.244 GB, free: 247.9 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.006383/4.197, allocations: 1.818 MB / 2.246 GB, free: 247.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/4.197, allocations: 9.469 kB / 2.246 GB, free: 247.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002369/4.199, allocations: 394.4 kB / 2.246 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03358/4.233, allocations: 13.65 MB / 2.259 GB, free: 246.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006867/4.234, allocations: 165.2 kB / 2.259 GB, free: 246.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004953/4.234, allocations: 59.09 kB / 2.259 GB, free: 246.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001976/4.236, allocations: 0.7495 MB / 2.26 GB, free: 246.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/4.238, allocations: 0.8875 MB / 2.261 GB, free: 246.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.684e-05/4.238, allocations: 0 / 2.261 GB, free: 246.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001192/4.238, allocations: 0 / 2.261 GB, free: 246.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-05/4.238, allocations: 39.22 kB / 2.261 GB, free: 246.2 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.009218/4.248, allocations: 4.63 MB / 2.266 GB, free: 244.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009962/4.249, allocations: 0.6082 MB / 2.266 GB, free: 244.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004612/4.249, allocations: 324.4 kB / 2.266 GB, free: 244.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001031/4.25, allocations: 1.063 MB / 2.268 GB, free: 243.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006872/4.251, allocations: 412 kB / 2.268 GB, free: 243.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=74): time 3.206e-06/4.251, allocations: 3 kB / 2.268 GB, free: 243.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=74): time 0.002369/4.253, allocations: 0.8132 MB / 2.269 GB, free: 243 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/4.253, allocations: 113.6 kB / 2.269 GB, free: 242.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/4.255, allocations: 0.8573 MB / 2.27 GB, free: 242.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001726/4.255, allocations: 30.52 kB / 2.27 GB, free: 242.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005687/4.256, allocations: 0.5844 MB / 2.27 GB, free: 242.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002386/4.256, allocations: 244.3 kB / 2.271 GB, free: 242.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.539e-05/4.256, allocations: 0 / 2.271 GB, free: 242.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001278/4.256, allocations: 349 kB / 2.271 GB, free: 242 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005137/4.257, allocations: 306.5 kB / 2.271 GB, free: 242 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006622/4.257, allocations: 0.5488 MB / 2.272 GB, free: 241.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/4.258, allocations: 447.4 kB / 2.272 GB, free: 241.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/4.259, allocations: 3.656 kB / 2.272 GB, free: 241.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002389/4.261, allocations: 1.047 MB / 2.273 GB, free: 241.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003939/4.261, allocations: 1.616 MB / 2.275 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/4.261, allocations: 3.75 kB / 2.275 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.406e-05/4.261, allocations: 7.375 kB / 2.275 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/4.263, allocations: 318.4 kB / 2.275 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007588/4.264, allocations: 1.218 MB / 2.276 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/4.266, allocations: 173 kB / 2.276 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/4.266, allocations: 52.17 kB / 2.276 GB, free: 238.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/4.266, allocations: 6.969 kB / 2.276 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00234/4.268, allocations: 0.8864 MB / 2.277 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/4.268, allocations: 7.031 kB / 2.277 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/4.268, allocations: 7.562 kB / 2.277 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/4.269, allocations: 293.7 kB / 2.278 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.963e-05/4.27, allocations: 18.02 kB / 2.278 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/4.271, allocations: 157.5 kB / 2.278 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/4.272, allocations: 57.53 kB / 2.278 GB, free: 238.7 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.000467/4.272, allocations: 128.1 kB / 2.278 GB, free: 238.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005785/4.273, allocations: 133.6 kB / 2.278 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00314/4.276, allocations: 1.066 MB / 2.279 GB, free: 238.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/4.276, allocations: 14.36 kB / 2.279 GB, free: 238.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/4.276, allocations: 0 / 2.279 GB, free: 238.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/4.276, allocations: 7.234 kB / 2.279 GB, free: 238.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00553/4.282, allocations: 2.236 MB / 2.281 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/4.282, allocations: 3.938 kB / 2.281 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/4.283, allocations: 233.9 kB / 2.282 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.782e-05/4.283, allocations: 3.688 kB / 2.282 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.341e-05/4.283, allocations: 18.77 kB / 2.282 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004469/4.283, allocations: 1.196 MB / 2.283 GB, free: 236.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/4.283, allocations: 3.969 kB / 2.283 GB, free: 236.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002882/4.286, allocations: 1.637 MB / 2.284 GB, free: 236.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/4.287, allocations: 355.3 kB / 2.285 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004536/4.288, allocations: 3.906 kB / 2.285 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/4.289, allocations: 119.2 kB / 2.285 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/4.289, allocations: 76 kB / 2.285 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/4.289, allocations: 36.72 kB / 2.285 GB, free: 236.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001134/4.291, allocations: 0.6402 MB / 2.286 GB, free: 236.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.01e-07/4.291, allocations: 0 / 2.286 GB, free: 236.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003198/4.294, allocations: 0.8124 MB / 2.286 GB, free: 236 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.001708/4.296, allocations: 0.8473 MB / 2.287 GB, free: 235.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002429/4.298, allocations: 1.464 MB / 2.289 GB, free: 235.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/4.298, allocations: 3.031 kB / 2.289 GB, free: 235.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006596/4.299, allocations: 469.1 kB / 2.289 GB, free: 235.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/4.301, allocations: 460.3 kB / 2.289 GB, free: 235.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003272/4.304, allocations: 1.787 MB / 2.291 GB, free: 235.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005036/4.305, allocations: 1.195 MB / 2.292 GB, free: 234.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001769/4.307, allocations: 401.2 kB / 2.293 GB, free: 234.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002563/4.307, allocations: 108.8 kB / 2.293 GB, free: 234.3 MB / 1.151 GB Notification: Performance of SimCode: time 8.72e-07/4.307, allocations: 3.281 kB / 2.293 GB, free: 234.3 MB / 1.151 GB Notification: Performance of Templates: time 0.03995/4.347, allocations: 26.81 MB / 2.319 GB, free: 233.9 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