Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.244/1.244, allocations: 249.4 MB / 256.7 MB, free: 7.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001078, allocations: 173.3 kB / 316 MB, free: 3.543 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.134/1.134, allocations: 205.2 MB / 0.5667 GB, free: 15.75 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000795/0.0007948, allocations: 92.11 kB / 0.671 GB, free: 4.879 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3165/0.3173, allocations: 112.5 MB / 0.7808 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.4733, allocations: 106.3 MB / 0.8847 GB, free: 10.32 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9643/1.438, allocations: 416 MB / 1.291 GB, free: 317.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/1.438, allocations: 87.53 kB / 1.291 GB, free: 317.9 MB / 0.8698 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 1.412/2.85, allocations: 0.599 GB / 1.89 GB, free: 48.56 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/2.85, allocations: 8 kB / 1.89 GB, free: 48.55 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/2.851, allocations: 417.6 kB / 1.89 GB, free: 48.14 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/2.854, allocations: 1.317 MB / 1.892 GB, free: 46.8 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005893/2.854, allocations: 185.8 kB / 1.892 GB, free: 46.62 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/2.854, allocations: 60 kB / 1.892 GB, free: 46.56 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001196/2.855, allocations: 0.7537 MB / 1.893 GB, free: 45.81 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/2.857, allocations: 0.8994 MB / 1.894 GB, free: 44.85 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/2.857, allocations: 3.938 kB / 1.894 GB, free: 44.85 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/2.857, allocations: 3.906 kB / 1.894 GB, free: 44.84 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/2.857, allocations: 24 kB / 1.894 GB, free: 44.82 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005591/2.862, allocations: 4.629 MB / 1.898 GB, free: 39.99 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007697/2.863, allocations: 0.5825 MB / 1.899 GB, free: 39.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003794/2.864, allocations: 321.9 kB / 1.899 GB, free: 39.09 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008702/2.864, allocations: 1.072 MB / 1.9 GB, free: 37.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005177/2.865, allocations: 407 kB / 1.9 GB, free: 37.39 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=73): time 3.407e-06/2.865, allocations: 0 / 1.9 GB, free: 37.39 MB / 0.8698 GB Notification: Performance of matching and sorting (n=73): time 0.001826/2.867, allocations: 0.8222 MB / 1.901 GB, free: 36.56 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/2.867, allocations: 192.6 kB / 1.901 GB, free: 36.32 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008984/2.868, allocations: 0.85 MB / 1.902 GB, free: 35.47 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.903e-05/2.868, allocations: 37.7 kB / 1.902 GB, free: 35.43 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/2.868, allocations: 401.1 kB / 1.903 GB, free: 35.02 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000147/2.868, allocations: 240.4 kB / 1.903 GB, free: 34.79 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.891e-05/2.868, allocations: 3.938 kB / 1.903 GB, free: 34.78 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.722e-05/2.868, allocations: 350.9 kB / 1.903 GB, free: 34.43 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/2.869, allocations: 313.9 kB / 1.904 GB, free: 34.13 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005842/2.869, allocations: 0.5932 MB / 1.904 GB, free: 33.43 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/2.871, allocations: 468.9 kB / 1.905 GB, free: 32.97 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/2.871, allocations: 4 kB / 1.905 GB, free: 32.97 MB / 0.8698 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001994/2.873, allocations: 1.076 MB / 1.906 GB, free: 31.89 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003204/2.873, allocations: 1.582 MB / 1.907 GB, free: 30.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/2.873, allocations: 8 kB / 1.907 GB, free: 30.18 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/2.873, allocations: 8 kB / 1.907 GB, free: 30.18 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/2.875, allocations: 315.6 kB / 1.907 GB, free: 29.87 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005801/2.875, allocations: 1.211 MB / 1.909 GB, free: 28.61 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001309/2.876, allocations: 183.1 kB / 1.909 GB, free: 28.43 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/2.877, allocations: 63.86 kB / 1.909 GB, free: 28.37 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.592e-06/2.877, allocations: 4 kB / 1.909 GB, free: 28.36 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001756/2.878, allocations: 0.9113 MB / 1.91 GB, free: 27.45 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/2.878, allocations: 4 kB / 1.91 GB, free: 27.45 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/2.878, allocations: 8 kB / 1.91 GB, free: 27.44 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/2.879, allocations: 292.2 kB / 1.91 GB, free: 27.16 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/2.879, allocations: 15.94 kB / 1.91 GB, free: 27.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/2.881, allocations: 167.2 kB / 1.91 GB, free: 26.98 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.655e-05/2.881, allocations: 63.84 kB / 1.91 GB, free: 26.91 MB / 0.8698 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.0002215/2.881, allocations: 132.7 kB / 1.91 GB, free: 26.78 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/2.881, allocations: 126.4 kB / 1.911 GB, free: 26.65 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/2.883, allocations: 1.137 MB / 1.912 GB, free: 25.5 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/2.883, allocations: 12 kB / 1.912 GB, free: 25.49 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/2.883, allocations: 0 / 1.912 GB, free: 25.49 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.088e-06/2.883, allocations: 3.984 kB / 1.912 GB, free: 25.48 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003295/2.887, allocations: 2.248 MB / 1.914 GB, free: 23.21 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/2.887, allocations: 4 kB / 1.914 GB, free: 23.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/2.888, allocations: 231.8 kB / 1.914 GB, free: 22.98 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/2.888, allocations: 4 kB / 1.914 GB, free: 22.97 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.211e-05/2.888, allocations: 23.97 kB / 1.914 GB, free: 22.95 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003598/2.888, allocations: 1.199 MB / 1.915 GB, free: 21.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/2.888, allocations: 0 / 1.915 GB, free: 21.7 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002223/2.891, allocations: 1.677 MB / 1.917 GB, free: 19.95 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002932/2.893, allocations: 2.592 MB / 1.919 GB, free: 17.28 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005197/2.894, allocations: 343 kB / 1.92 GB, free: 16.92 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/2.894, allocations: 8 kB / 1.92 GB, free: 16.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/2.895, allocations: 131.8 kB / 1.92 GB, free: 16.79 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/2.895, allocations: 60.56 kB / 1.92 GB, free: 16.73 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-05/2.896, allocations: 35.97 kB / 1.92 GB, free: 16.69 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0007338/2.896, allocations: 0.634 MB / 1.921 GB, free: 16.05 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003962/2.9, allocations: 1.084 MB / 1.922 GB, free: 14.97 MB / 0.8698 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.00158/2.902, allocations: 0.8935 MB / 1.923 GB, free: 14.13 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002496/2.904, allocations: 1.511 MB / 1.924 GB, free: 12.59 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/2.904, allocations: 4 kB / 1.924 GB, free: 12.59 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006728/2.905, allocations: 470.3 kB / 1.925 GB, free: 12.13 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/2.907, allocations: 465.8 kB / 1.925 GB, free: 11.68 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003275/2.91, allocations: 1.841 MB / 1.927 GB, free: 9.789 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008244/2.911, allocations: 1.356 MB / 1.928 GB, free: 8.398 MB / 0.8698 GB Notification: Performance of SimCode: time 4.81e-07/2.911, allocations: 0 / 1.928 GB, free: 8.398 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1)