Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.418/1.418, allocations: 285.5 MB / 292.8 MB, free: 9.918 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.001014/0.001014, allocations: 177.2 kB / 361.1 MB, free: 380 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.187/1.187, allocations: 205.1 MB / 0.6195 GB, free: 2.926 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008872/0.0008871, allocations: 89.8 kB / 0.7326 GB, free: 1.125 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.4064/0.4073, allocations: 121.4 MB / 0.8511 GB, free: 151.6 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.581, allocations: 115.3 MB / 0.9638 GB, free: 56.3 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7183/1.299, allocations: 423.1 MB / 1.377 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/1.3, allocations: 86.08 kB / 1.377 GB, free: 12.81 MB / 0.8855 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.915/3.215, allocations: 0.6158 GB / 1.993 GB, free: 143.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/3.215, allocations: 7.75 kB / 1.993 GB, free: 143.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001967/3.217, allocations: 420 kB / 1.993 GB, free: 143.6 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003512/3.221, allocations: 1.31 MB / 1.995 GB, free: 143.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006309/3.221, allocations: 184.9 kB / 1.995 GB, free: 143.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002916/3.221, allocations: 68.81 kB / 1.995 GB, free: 143.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001626/3.223, allocations: 0.7547 MB / 1.996 GB, free: 142.9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/3.225, allocations: 0.9019 MB / 1.996 GB, free: 142.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/3.225, allocations: 7.875 kB / 1.996 GB, free: 142.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/3.225, allocations: 3.094 kB / 1.996 GB, free: 142.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/3.225, allocations: 22.53 kB / 1.996 GB, free: 142.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008166/3.233, allocations: 4.63 MB / 2.001 GB, free: 139.5 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009257/3.234, allocations: 0.5841 MB / 2.002 GB, free: 139.2 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004538/3.235, allocations: 321 kB / 2.002 GB, free: 139.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009763/3.236, allocations: 1.069 MB / 2.003 GB, free: 138 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000576/3.236, allocations: 399.3 kB / 2.003 GB, free: 137.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=73): time 3.446e-06/3.236, allocations: 0 / 2.003 GB, free: 137.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=73): time 0.002204/3.239, allocations: 0.825 MB / 2.004 GB, free: 137.5 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/3.239, allocations: 194.5 kB / 2.004 GB, free: 137.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/3.24, allocations: 0.8572 MB / 2.005 GB, free: 136.9 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001434/3.24, allocations: 25.7 kB / 2.005 GB, free: 136.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/3.24, allocations: 412 kB / 2.006 GB, free: 136.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/3.241, allocations: 238.8 kB / 2.006 GB, free: 136.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/3.241, allocations: 0 / 2.006 GB, free: 136.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.346e-05/3.241, allocations: 350.4 kB / 2.006 GB, free: 136 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004765/3.241, allocations: 311.3 kB / 2.006 GB, free: 135.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006359/3.242, allocations: 0.5853 MB / 2.007 GB, free: 135.5 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/3.243, allocations: 473.3 kB / 2.007 GB, free: 135.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/3.243, allocations: 0 / 2.007 GB, free: 135.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.00227/3.245, allocations: 1.079 MB / 2.008 GB, free: 134.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003025/3.246, allocations: 1.591 MB / 2.01 GB, free: 133.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/3.246, allocations: 6.094 kB / 2.01 GB, free: 133.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/3.246, allocations: 10.75 kB / 2.01 GB, free: 133.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/3.247, allocations: 319.7 kB / 2.01 GB, free: 133.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005778/3.248, allocations: 1.213 MB / 2.012 GB, free: 132 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/3.249, allocations: 187.8 kB / 2.012 GB, free: 132 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/3.25, allocations: 51.42 kB / 2.012 GB, free: 132 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.344e-06/3.25, allocations: 7.5 kB / 2.012 GB, free: 132 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001934/3.252, allocations: 0.9172 MB / 2.013 GB, free: 131.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/3.252, allocations: 3.75 kB / 2.013 GB, free: 131.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/3.252, allocations: 10.62 kB / 2.013 GB, free: 131.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/3.253, allocations: 293.6 kB / 2.013 GB, free: 131.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/3.253, allocations: 11.72 kB / 2.013 GB, free: 131.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/3.254, allocations: 172.4 kB / 2.013 GB, free: 131.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/3.254, allocations: 53.64 kB / 2.013 GB, free: 131.6 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.0002701/3.255, allocations: 131.3 kB / 2.013 GB, free: 131.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002963/3.255, allocations: 137.1 kB / 2.013 GB, free: 131.4 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002594/3.257, allocations: 1.12 MB / 2.015 GB, free: 131 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/3.258, allocations: 13.59 kB / 2.015 GB, free: 131 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/3.258, allocations: 3.938 kB / 2.015 GB, free: 131 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/3.258, allocations: 8.172 kB / 2.015 GB, free: 131 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004445/3.262, allocations: 2.234 MB / 2.017 GB, free: 130 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/3.262, allocations: 2.938 kB / 2.017 GB, free: 130 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/3.263, allocations: 244.2 kB / 2.017 GB, free: 130 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.835e-05/3.263, allocations: 5.719 kB / 2.017 GB, free: 130 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.972e-05/3.263, allocations: 17.95 kB / 2.017 GB, free: 130 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004196/3.264, allocations: 1.195 MB / 2.018 GB, free: 128.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/3.264, allocations: 2.281 kB / 2.018 GB, free: 128.8 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002904/3.267, allocations: 1.675 MB / 2.02 GB, free: 127.7 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004029/3.271, allocations: 2.589 MB / 2.022 GB, free: 126 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007773/3.272, allocations: 344.7 kB / 2.023 GB, free: 125.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003361/3.272, allocations: 3.875 kB / 2.023 GB, free: 125.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/3.273, allocations: 134.4 kB / 2.023 GB, free: 125.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/3.273, allocations: 62.44 kB / 2.023 GB, free: 125.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/3.274, allocations: 44.09 kB / 2.023 GB, free: 125.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0012/3.275, allocations: 0.631 MB / 2.023 GB, free: 125.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004971/3.28, allocations: 1.079 MB / 2.025 GB, free: 124.9 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.002547/3.282, allocations: 0.9124 MB / 2.025 GB, free: 124.5 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003467/3.286, allocations: 1.513 MB / 2.027 GB, free: 123.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/3.286, allocations: 0 / 2.027 GB, free: 123.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009491/3.287, allocations: 474.2 kB / 2.027 GB, free: 123.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/3.289, allocations: 462.2 kB / 2.028 GB, free: 123.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004754/3.294, allocations: 1.868 MB / 2.03 GB, free: 122.5 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/3.296, allocations: 1.349 MB / 2.031 GB, free: 121.5 MB / 0.948 GB Notification: Performance of SimCode: time 2.81e-07/3.296, allocations: 0 / 2.031 GB, free: 121.5 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1)