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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.073/2.073, allocations: 387.2 MB / 394.5 MB, free: 13.6 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.001174/0.001174, allocations: 187.8 kB / 487 MB, free: 5.379 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.587/1.587, allocations: 221.3 MB / 0.7819 GB, free: 1.379 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.0009713/0.0009713, allocations: 91 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6168/0.6178, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.8993, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9879/1.887, allocations: 422.7 MB / 1.618 GB, free: 0.8008 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/1.888, allocations: 88.45 kB / 1.618 GB, free: 0.7578 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.536/4.424, allocations: 0.6299 GB / 2.248 GB, free: 221.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/4.424, allocations: 11.5 kB / 2.248 GB, free: 221.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002192/4.426, allocations: 418.9 kB / 2.248 GB, free: 221.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03396/4.46, allocations: 13.73 MB / 2.262 GB, free: 220.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007013/4.461, allocations: 182.4 kB / 2.262 GB, free: 220.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004809/4.461, allocations: 63.16 kB / 2.262 GB, free: 220.4 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001929/4.463, allocations: 0.7534 MB / 2.263 GB, free: 220.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/4.465, allocations: 0.8809 MB / 2.264 GB, free: 220.3 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/4.465, allocations: 5.781 kB / 2.264 GB, free: 220.3 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/4.465, allocations: 3.781 kB / 2.264 GB, free: 220.3 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.654e-05/4.466, allocations: 43.05 kB / 2.264 GB, free: 220.3 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007829/4.473, allocations: 4.646 MB / 2.268 GB, free: 218.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/4.474, allocations: 0.592 MB / 2.269 GB, free: 218.2 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004671/4.475, allocations: 331.9 kB / 2.269 GB, free: 218.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001098/4.476, allocations: 1.067 MB / 2.27 GB, free: 217.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006373/4.477, allocations: 402.2 kB / 2.271 GB, free: 217.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=74): time 4.238e-06/4.477, allocations: 0 / 2.271 GB, free: 217.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=74): time 0.002496/4.479, allocations: 0.8198 MB / 2.271 GB, free: 216.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/4.479, allocations: 124.1 kB / 2.272 GB, free: 216.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/4.481, allocations: 0.8533 MB / 2.272 GB, free: 216.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001743/4.481, allocations: 33.41 kB / 2.272 GB, free: 216.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004207/4.481, allocations: 397.6 kB / 2.273 GB, free: 216.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002717/4.482, allocations: 243.7 kB / 2.273 GB, free: 216.2 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.278e-05/4.482, allocations: 0 / 2.273 GB, free: 216.2 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001151/4.482, allocations: 349.7 kB / 2.273 GB, free: 215.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/4.482, allocations: 304.2 kB / 2.274 GB, free: 215.9 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000727/4.483, allocations: 0.5495 MB / 2.274 GB, free: 215.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/4.484, allocations: 457.1 kB / 2.275 GB, free: 215.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/4.484, allocations: 0 / 2.275 GB, free: 215.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.00251/4.487, allocations: 1.048 MB / 2.276 GB, free: 215.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004301/4.487, allocations: 1.591 MB / 2.277 GB, free: 213.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/4.487, allocations: 11.12 kB / 2.277 GB, free: 213.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-05/4.487, allocations: 11.34 kB / 2.277 GB, free: 213.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001925/4.489, allocations: 319.1 kB / 2.277 GB, free: 213.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007592/4.49, allocations: 1.218 MB / 2.279 GB, free: 212.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/4.492, allocations: 185.2 kB / 2.279 GB, free: 212.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002015/4.492, allocations: 52.62 kB / 2.279 GB, free: 212.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/4.492, allocations: 3.938 kB / 2.279 GB, free: 212.7 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00228/4.495, allocations: 0.8835 MB / 2.28 GB, free: 212.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/4.495, allocations: 6.469 kB / 2.28 GB, free: 212.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/4.495, allocations: 9.938 kB / 2.28 GB, free: 212.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/4.496, allocations: 303.1 kB / 2.28 GB, free: 212.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/4.496, allocations: 10.5 kB / 2.28 GB, free: 212.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/4.498, allocations: 174.7 kB / 2.28 GB, free: 212.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/4.498, allocations: 56.23 kB / 2.28 GB, free: 212.6 MB / 1.167 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.0003339/4.498, allocations: 132.4 kB / 2.28 GB, free: 212.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002696/4.499, allocations: 127.9 kB / 2.281 GB, free: 212.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002654/4.501, allocations: 1.137 MB / 2.282 GB, free: 212.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/4.501, allocations: 14.34 kB / 2.282 GB, free: 212.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/4.501, allocations: 0 / 2.282 GB, free: 212.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/4.501, allocations: 3.328 kB / 2.282 GB, free: 212.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004019/4.505, allocations: 2.248 MB / 2.284 GB, free: 212 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/4.505, allocations: 3.781 kB / 2.284 GB, free: 212 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/4.506, allocations: 233.1 kB / 2.284 GB, free: 212 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-05/4.506, allocations: 11.81 kB / 2.284 GB, free: 212 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.25e-05/4.507, allocations: 22.31 kB / 2.284 GB, free: 212 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000461/4.507, allocations: 1.198 MB / 2.285 GB, free: 210.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/4.507, allocations: 3.891 kB / 2.285 GB, free: 210.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002723/4.51, allocations: 1.681 MB / 2.287 GB, free: 210.4 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003615/4.513, allocations: 2.585 MB / 2.289 GB, free: 209.6 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007897/4.514, allocations: 348.7 kB / 2.29 GB, free: 209.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/4.514, allocations: 11.95 kB / 2.29 GB, free: 209.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/4.516, allocations: 133.3 kB / 2.29 GB, free: 209.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/4.516, allocations: 58.28 kB / 2.29 GB, free: 209.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.992e-05/4.516, allocations: 39.16 kB / 2.29 GB, free: 209.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.0009055/4.517, allocations: 0.6387 MB / 2.291 GB, free: 209.3 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004102/4.521, allocations: 1.025 MB / 2.292 GB, free: 209.2 MB / 1.167 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.001875/4.523, allocations: 0.8521 MB / 2.292 GB, free: 209 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002769/4.526, allocations: 1.432 MB / 2.294 GB, free: 208.9 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/4.526, allocations: 3.844 kB / 2.294 GB, free: 208.9 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0007768/4.526, allocations: 482.5 kB / 2.294 GB, free: 208.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/4.529, allocations: 452.7 kB / 2.295 GB, free: 208.9 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005284/4.534, allocations: 1.867 MB / 2.297 GB, free: 208.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/4.536, allocations: 1.342 MB / 2.298 GB, free: 207.6 MB / 1.167 GB Notification: Performance of SimCode: time 9.72e-07/4.536, allocations: 3.281 kB / 2.298 GB, free: 207.6 MB / 1.167 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1)