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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.016/2.016, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.001167/0.001167, allocations: 188.2 kB / 487 MB, free: 5.395 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.444/1.444, allocations: 221.3 MB / 0.7819 GB, free: 1.391 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.0009905/0.0009905, allocations: 97.06 kB / 0.9213 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.044e-05/1.046e-05, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.2996, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.035/1.335, allocations: 422.7 MB / 1.618 GB, free: 0.6562 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/1.335, allocations: 91.92 kB / 1.618 GB, free: 0.6055 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.68/4.015, allocations: 0.6281 GB / 2.246 GB, free: 211.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002836/4.016, allocations: 39.95 kB / 2.246 GB, free: 211.2 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.006397/4.022, allocations: 1.824 MB / 2.248 GB, free: 210.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/4.022, allocations: 8.781 kB / 2.248 GB, free: 210.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002587/4.025, allocations: 416.2 kB / 2.248 GB, free: 210.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03625/4.061, allocations: 13.73 MB / 2.262 GB, free: 209.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000688/4.062, allocations: 182.5 kB / 2.262 GB, free: 209.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004987/4.062, allocations: 64.44 kB / 2.262 GB, free: 209.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002069/4.064, allocations: 0.7418 MB / 2.263 GB, free: 209.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/4.067, allocations: 0.8895 MB / 2.264 GB, free: 209.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/4.067, allocations: 3.906 kB / 2.264 GB, free: 209.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001419/4.067, allocations: 6.094 kB / 2.264 GB, free: 209.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.341e-05/4.067, allocations: 28.5 kB / 2.264 GB, free: 209.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0093/4.076, allocations: 4.657 MB / 2.268 GB, free: 207.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/4.077, allocations: 0.5935 MB / 2.269 GB, free: 207.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/4.078, allocations: 328 kB / 2.269 GB, free: 207.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001015/4.079, allocations: 1.066 MB / 2.27 GB, free: 206.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006951/4.08, allocations: 409.7 kB / 2.271 GB, free: 206.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=74): time 4.789e-06/4.08, allocations: 3.938 kB / 2.271 GB, free: 206.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=74): time 0.002473/4.082, allocations: 0.8231 MB / 2.271 GB, free: 206 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/4.082, allocations: 116.3 kB / 2.271 GB, free: 205.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001769/4.084, allocations: 0.8533 MB / 2.272 GB, free: 205.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001721/4.084, allocations: 25.7 kB / 2.272 GB, free: 205.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/4.085, allocations: 400.9 kB / 2.273 GB, free: 205.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/4.085, allocations: 241.8 kB / 2.273 GB, free: 205.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-05/4.085, allocations: 3.031 kB / 2.273 GB, free: 205.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.782e-05/4.085, allocations: 345 kB / 2.273 GB, free: 205 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005492/4.086, allocations: 302.8 kB / 2.274 GB, free: 205 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007423/4.086, allocations: 0.5551 MB / 2.274 GB, free: 204.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/4.088, allocations: 464.1 kB / 2.274 GB, free: 204.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/4.088, allocations: 0 / 2.274 GB, free: 204.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002599/4.09, allocations: 1.057 MB / 2.276 GB, free: 204.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004032/4.091, allocations: 1.583 MB / 2.277 GB, free: 203 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/4.091, allocations: 3.875 kB / 2.277 GB, free: 203 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.703e-05/4.091, allocations: 10.89 kB / 2.277 GB, free: 203 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/4.092, allocations: 324.7 kB / 2.277 GB, free: 203 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006781/4.093, allocations: 1.211 MB / 2.279 GB, free: 201.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/4.095, allocations: 186.5 kB / 2.279 GB, free: 201.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/4.095, allocations: 53.55 kB / 2.279 GB, free: 201.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/4.095, allocations: 3.469 kB / 2.279 GB, free: 201.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002092/4.097, allocations: 0.8812 MB / 2.28 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/4.097, allocations: 3.875 kB / 2.28 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/4.097, allocations: 7.719 kB / 2.28 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/4.099, allocations: 306.5 kB / 2.28 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/4.099, allocations: 9.562 kB / 2.28 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/4.1, allocations: 180.3 kB / 2.28 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/4.1, allocations: 52.44 kB / 2.28 GB, free: 201.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.0003309/4.101, allocations: 133.5 kB / 2.28 GB, free: 201.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004424/4.101, allocations: 128.2 kB / 2.28 GB, free: 201.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002888/4.104, allocations: 1.14 MB / 2.282 GB, free: 201.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/4.104, allocations: 6.844 kB / 2.282 GB, free: 201.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/4.104, allocations: 2.438 kB / 2.282 GB, free: 201.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/4.104, allocations: 7.266 kB / 2.282 GB, free: 201.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004828/4.109, allocations: 2.255 MB / 2.284 GB, free: 201.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/4.109, allocations: 7.281 kB / 2.284 GB, free: 201.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/4.11, allocations: 235 kB / 2.284 GB, free: 201.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.966e-05/4.11, allocations: 6.719 kB / 2.284 GB, free: 201.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-05/4.11, allocations: 24.81 kB / 2.284 GB, free: 201.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004702/4.111, allocations: 1.195 MB / 2.285 GB, free: 199.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/4.111, allocations: 3.469 kB / 2.285 GB, free: 199.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002893/4.114, allocations: 1.675 MB / 2.287 GB, free: 199.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008545/4.115, allocations: 346.6 kB / 2.287 GB, free: 199.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003982/4.115, allocations: 10.25 kB / 2.287 GB, free: 199.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/4.117, allocations: 123.1 kB / 2.287 GB, free: 199.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/4.117, allocations: 64.41 kB / 2.287 GB, free: 199.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/4.117, allocations: 39.78 kB / 2.287 GB, free: 199.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001229/4.118, allocations: 0.6409 MB / 2.288 GB, free: 199.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003647/4.122, allocations: 0.8162 MB / 2.289 GB, free: 199 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.00244/4.124, allocations: 0.8412 MB / 2.29 GB, free: 198.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0032/4.127, allocations: 1.428 MB / 2.291 GB, free: 198.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/4.127, allocations: 3.25 kB / 2.291 GB, free: 198.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008989/4.128, allocations: 482.4 kB / 2.292 GB, free: 198.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00275/4.131, allocations: 465.2 kB / 2.292 GB, free: 198.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0054/4.136, allocations: 1.854 MB / 2.294 GB, free: 198.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/4.138, allocations: 1.329 MB / 2.295 GB, free: 197.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.453e-06/4.138, allocations: 3.5 kB / 2.295 GB, free: 197.5 MB / 1.151 GB Notification: Performance of Templates: time 0.05875/4.197, allocations: 32.46 MB / 2.327 GB, free: 197 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