Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.612/1.612, allocations: 289.8 MB / 297.1 MB, free: 6.75 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 185.2 kB / 366.3 MB, free: 2.027 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.596/1.596, allocations: 205.1 MB / 0.6256 GB, free: 7.492 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009499/0.0009499, allocations: 88.03 kB / 0.7395 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3094/0.3104, allocations: 122.4 MB / 0.8591 GB, free: 13.54 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7841/1.095, allocations: 116.3 MB / 0.9726 GB, free: 76.12 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.011/2.106, allocations: 424.1 MB / 1.387 GB, free: 132.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/2.106, allocations: 87.23 kB / 1.387 GB, free: 132.5 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 2.379/4.485, allocations: 0.6158 GB / 2.003 GB, free: 165.9 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/4.485, allocations: 7.75 kB / 2.003 GB, free: 165.9 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001749/4.487, allocations: 415.9 kB / 2.003 GB, free: 165.8 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002945/4.49, allocations: 1.321 MB / 2.004 GB, free: 165.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006182/4.491, allocations: 183.8 kB / 2.005 GB, free: 165.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/4.491, allocations: 67.09 kB / 2.005 GB, free: 165.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001366/4.492, allocations: 0.7569 MB / 2.005 GB, free: 165.4 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/4.494, allocations: 0.9052 MB / 2.006 GB, free: 165.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/4.494, allocations: 0.75 kB / 2.006 GB, free: 165.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.104e-05/4.494, allocations: 0 / 2.006 GB, free: 165.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/4.494, allocations: 22.69 kB / 2.006 GB, free: 165.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007048/4.501, allocations: 4.615 MB / 2.011 GB, free: 163.3 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009218/4.502, allocations: 0.5783 MB / 2.011 GB, free: 163.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004613/4.502, allocations: 323.6 kB / 2.012 GB, free: 163.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001045/4.503, allocations: 1.07 MB / 2.013 GB, free: 162.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006267/4.504, allocations: 406.8 kB / 2.013 GB, free: 162.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=73): time 4.378e-06/4.504, allocations: 2.406 kB / 2.013 GB, free: 162.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=73): time 0.002038/4.506, allocations: 0.8141 MB / 2.014 GB, free: 162 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/4.506, allocations: 197 kB / 2.014 GB, free: 161.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/4.507, allocations: 0.8535 MB / 2.015 GB, free: 161.6 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.392e-05/4.507, allocations: 31.17 kB / 2.015 GB, free: 161.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003149/4.508, allocations: 414.3 kB / 2.015 GB, free: 161.4 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/4.508, allocations: 240.8 kB / 2.016 GB, free: 161.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.292e-05/4.508, allocations: 0 / 2.016 GB, free: 161.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.464e-05/4.508, allocations: 346.6 kB / 2.016 GB, free: 161 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005044/4.509, allocations: 311.2 kB / 2.016 GB, free: 161 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007192/4.509, allocations: 0.5948 MB / 2.017 GB, free: 160.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/4.511, allocations: 471.6 kB / 2.017 GB, free: 160.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/4.511, allocations: 0.5625 kB / 2.017 GB, free: 160.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002291/4.513, allocations: 1.083 MB / 2.018 GB, free: 160.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004623/4.513, allocations: 1.584 MB / 2.02 GB, free: 158.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/4.513, allocations: 10.47 kB / 2.02 GB, free: 158.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.406e-05/4.513, allocations: 7.844 kB / 2.02 GB, free: 158.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/4.515, allocations: 312.8 kB / 2.02 GB, free: 158.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006627/4.516, allocations: 1.214 MB / 2.021 GB, free: 157.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001625/4.517, allocations: 182.5 kB / 2.022 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/4.518, allocations: 57.53 kB / 2.022 GB, free: 157.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/4.518, allocations: 3.156 kB / 2.022 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002175/4.52, allocations: 0.9089 MB / 2.022 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/4.52, allocations: 13.27 kB / 2.022 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/4.52, allocations: 7.125 kB / 2.023 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/4.521, allocations: 294.5 kB / 2.023 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.567e-06/4.521, allocations: 8.719 kB / 2.023 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/4.523, allocations: 171.9 kB / 2.023 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/4.523, allocations: 56.91 kB / 2.023 GB, free: 157.7 MB / 0.948 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 (121): * Single equations (assignments): 116 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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.00034/4.523, allocations: 129.9 kB / 2.023 GB, free: 157.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003035/4.523, allocations: 136.4 kB / 2.023 GB, free: 157.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002746/4.526, allocations: 1.125 MB / 2.024 GB, free: 157.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/4.526, allocations: 14.92 kB / 2.024 GB, free: 157.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/4.526, allocations: 3.906 kB / 2.024 GB, free: 157.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/4.526, allocations: 10.58 kB / 2.024 GB, free: 157.4 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004246/4.53, allocations: 2.244 MB / 2.027 GB, free: 157.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/4.53, allocations: 0 / 2.027 GB, free: 157.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/4.532, allocations: 235.3 kB / 2.027 GB, free: 157.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.428e-05/4.532, allocations: 6.969 kB / 2.027 GB, free: 157.1 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.456e-05/4.532, allocations: 23.36 kB / 2.027 GB, free: 157.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004919/4.532, allocations: 1.193 MB / 2.028 GB, free: 155.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/4.532, allocations: 6.75 kB / 2.028 GB, free: 155.9 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003002/4.535, allocations: 1.67 MB / 2.03 GB, free: 155.5 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004073/4.539, allocations: 2.587 MB / 2.032 GB, free: 154.7 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/4.54, allocations: 346.7 kB / 2.032 GB, free: 154.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004434/4.541, allocations: 12.91 kB / 2.033 GB, free: 154.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/4.542, allocations: 120.8 kB / 2.033 GB, free: 154.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/4.543, allocations: 69.2 kB / 2.033 GB, free: 154.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/4.543, allocations: 37.31 kB / 2.033 GB, free: 154.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001385/4.544, allocations: 0.6324 MB / 2.033 GB, free: 154.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.006245/4.55, allocations: 1.09 MB / 2.034 GB, free: 154.2 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (temSen.T,val.filter.x[1],val.filter.x[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 (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.003208/4.554, allocations: 0.8913 MB / 2.035 GB, free: 154 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003846/4.558, allocations: 1.516 MB / 2.037 GB, free: 153.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/4.558, allocations: 1.906 kB / 2.037 GB, free: 153.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001042/4.559, allocations: 482.2 kB / 2.037 GB, free: 153.8 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003055/4.562, allocations: 451 kB / 2.038 GB, free: 153.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005911/4.568, allocations: 1.863 MB / 2.039 GB, free: 153.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001664/4.569, allocations: 1.348 MB / 2.041 GB, free: 152.6 MB / 0.948 GB Notification: Performance of SimCode: time 9.02e-07/4.569, allocations: 4.406 kB / 2.041 GB, free: 152.6 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1)