Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) [: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 10.0.0-master/package.mo): time 2.223/2.223, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001176/0.001176, allocations: 173.3 kB / 490.8 MB, free: 1.922 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.526/1.526, allocations: 221.3 MB / 0.7863 GB, free: 13.63 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.001003/0.001003, allocations: 91.61 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7166/0.7176, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/1.01, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.121/2.13, allocations: 423.8 MB / 1.626 GB, free: 7.383 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/2.131, allocations: 84.56 kB / 1.626 GB, free: 7.34 MB / 1.042 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 2.739/4.87, allocations: 0.6299 GB / 2.256 GB, free: 219.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/4.87, allocations: 7.031 kB / 2.256 GB, free: 219.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002236/4.872, allocations: 420.3 kB / 2.256 GB, free: 219.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03317/4.905, allocations: 13.72 MB / 2.269 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007072/4.906, allocations: 186.9 kB / 2.27 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005705/4.906, allocations: 57.31 kB / 2.27 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002164/4.909, allocations: 0.7516 MB / 2.27 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/4.911, allocations: 0.8824 MB / 2.271 GB, free: 218.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/4.911, allocations: 6.969 kB / 2.271 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/4.911, allocations: 0 / 2.271 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-05/4.911, allocations: 43.09 kB / 2.271 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009212/4.92, allocations: 4.654 MB / 2.276 GB, free: 216.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008958/4.921, allocations: 0.5724 MB / 2.276 GB, free: 216.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004366/4.921, allocations: 328.3 kB / 2.277 GB, free: 216.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009696/4.922, allocations: 1.067 MB / 2.278 GB, free: 215.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006334/4.923, allocations: 403 kB / 2.278 GB, free: 215.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=73): time 3.336e-06/4.923, allocations: 0 / 2.278 GB, free: 215.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=73): time 0.002284/4.925, allocations: 0.8186 MB / 2.279 GB, free: 215.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/4.925, allocations: 116.7 kB / 2.279 GB, free: 215.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/4.927, allocations: 0.8596 MB / 2.28 GB, free: 215.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002042/4.927, allocations: 29.42 kB / 2.28 GB, free: 215.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/4.927, allocations: 401.8 kB / 2.28 GB, free: 214.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/4.928, allocations: 245 kB / 2.281 GB, free: 214.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.774e-05/4.928, allocations: 0 / 2.281 GB, free: 214.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.767e-05/4.928, allocations: 346.2 kB / 2.281 GB, free: 214.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005002/4.928, allocations: 309.7 kB / 2.281 GB, free: 214.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006878/4.929, allocations: 0.5469 MB / 2.282 GB, free: 214.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/4.93, allocations: 457.8 kB / 2.282 GB, free: 214.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/4.93, allocations: 3.688 kB / 2.282 GB, free: 214.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002286/4.932, allocations: 1.04 MB / 2.283 GB, free: 214.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003352/4.933, allocations: 1.589 MB / 2.285 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/4.933, allocations: 7.562 kB / 2.285 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.395e-05/4.933, allocations: 7.906 kB / 2.285 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001604/4.934, allocations: 321.2 kB / 2.285 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006254/4.935, allocations: 1.217 MB / 2.286 GB, free: 211.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/4.937, allocations: 186.8 kB / 2.286 GB, free: 211.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/4.937, allocations: 48.62 kB / 2.286 GB, free: 211.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/4.937, allocations: 3.938 kB / 2.286 GB, free: 211.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001954/4.939, allocations: 0.8816 MB / 2.287 GB, free: 211.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/4.939, allocations: 3.906 kB / 2.287 GB, free: 211.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/4.939, allocations: 11.22 kB / 2.287 GB, free: 211.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/4.94, allocations: 304.5 kB / 2.288 GB, free: 211.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/4.94, allocations: 7.781 kB / 2.288 GB, free: 211.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/4.942, allocations: 176.6 kB / 2.288 GB, free: 211.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/4.942, allocations: 53.72 kB / 2.288 GB, free: 211.2 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: 7 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,hex.flowRegime_nominal,P.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * 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.0003008/4.942, allocations: 134.4 kB / 2.288 GB, free: 211.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003526/4.942, allocations: 130.4 kB / 2.288 GB, free: 211 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002734/4.945, allocations: 1.123 MB / 2.289 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/4.945, allocations: 10.41 kB / 2.289 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/4.945, allocations: 0 / 2.289 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.527e-06/4.945, allocations: 3.562 kB / 2.289 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004347/4.95, allocations: 2.25 MB / 2.291 GB, free: 210.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/4.95, allocations: 4.031 kB / 2.291 GB, free: 210.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/4.951, allocations: 239.1 kB / 2.292 GB, free: 210.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/4.951, allocations: 11.78 kB / 2.292 GB, free: 210.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.421e-05/4.951, allocations: 17.03 kB / 2.292 GB, free: 210.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004736/4.951, allocations: 1.196 MB / 2.293 GB, free: 209.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/4.951, allocations: 3.625 kB / 2.293 GB, free: 209.4 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00271/4.954, allocations: 1.669 MB / 2.294 GB, free: 209 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003511/4.958, allocations: 2.584 MB / 2.297 GB, free: 208.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007206/4.958, allocations: 344.6 kB / 2.297 GB, free: 208 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/4.959, allocations: 7.672 kB / 2.297 GB, free: 208 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/4.96, allocations: 141.6 kB / 2.297 GB, free: 208 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/4.96, allocations: 63.86 kB / 2.297 GB, free: 208 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.375e-05/4.96, allocations: 43.05 kB / 2.298 GB, free: 208 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0009099/4.961, allocations: 0.6335 MB / 2.298 GB, free: 207.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004195/4.965, allocations: 1.033 MB / 2.299 GB, free: 207.7 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: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 80 * 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.001749/4.967, allocations: 0.8429 MB / 2.3 GB, free: 207.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002667/4.97, allocations: 1.422 MB / 2.301 GB, free: 207.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/4.97, allocations: 3.719 kB / 2.301 GB, free: 207.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007411/4.97, allocations: 466.5 kB / 2.302 GB, free: 207.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/4.973, allocations: 456.2 kB / 2.302 GB, free: 207.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004058/4.977, allocations: 1.865 MB / 2.304 GB, free: 206.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009796/4.978, allocations: 1.339 MB / 2.305 GB, free: 206.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.142e-06/4.978, allocations: 0 / 2.305 GB, free: 206.2 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1)