Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",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.0/package.mo): time 2.346/2.346, allocations: 284.8 MB / 292.1 MB, free: 10.77 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.001656/0.001656, allocations: 177.2 kB / 360.3 MB, free: 7.523 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.784/1.784, allocations: 205.1 MB / 0.6187 GB, free: 13.2 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.001367/0.001366, allocations: 86.95 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2701/0.2716, allocations: 121.4 MB / 0.8502 GB, free: 3.922 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6202/0.8918, allocations: 115.2 MB / 0.9627 GB, free: 78.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.499/6.391, allocations: 2.394 GB / 3.356 GB, free: 56.72 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003088/6.392, allocations: 91.16 kB / 3.356 GB, free: 56.68 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1244 * Number of variables: 1244 Notification: Performance of Generate backend data structure: time 12.41/18.8, allocations: 2.683 GB / 6.04 GB, free: 440 kB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/18.81, allocations: 8 kB / 6.04 GB, free: 432 kB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5154/19.32, allocations: 1.537 MB / 6.041 GB, free: 181.5 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03048/19.35, allocations: 7.557 MB / 6.049 GB, free: 180.9 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000403/19.35, allocations: 157.2 kB / 6.049 GB, free: 180.9 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002646/19.35, allocations: 299.2 kB / 6.049 GB, free: 180.9 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01988/19.37, allocations: 5.548 MB / 6.055 GB, free: 180.9 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02285/19.4, allocations: 6.053 MB / 6.061 GB, free: 180.4 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002174/19.4, allocations: 6.656 kB / 6.061 GB, free: 180.4 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00127/19.4, allocations: 7.375 kB / 6.061 GB, free: 180.4 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002656/19.4, allocations: 228.8 kB / 6.061 GB, free: 180.4 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07202/19.47, allocations: 28.54 MB / 6.089 GB, free: 169.8 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007217/19.48, allocations: 2.589 MB / 6.091 GB, free: 169.8 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006837/19.48, allocations: 2.537 MB / 6.094 GB, free: 169.8 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001806/19.49, allocations: 1.089 MB / 6.095 GB, free: 168.6 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006749/19.49, allocations: 2.353 MB / 6.097 GB, free: 168.5 MB / 1.01 GB Notification: Performance of pre-optimization done (n=326): time 8.286e-06/19.49, allocations: 0 / 6.097 GB, free: 168.5 MB / 1.01 GB Notification: Performance of matching and sorting (n=330): time 0.06145/19.56, allocations: 11.47 MB / 6.108 GB, free: 165.7 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/19.56, allocations: 304 kB / 6.109 GB, free: 165.4 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01282/19.57, allocations: 4.245 MB / 6.113 GB, free: 165.1 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.00128/19.57, allocations: 31.77 kB / 6.113 GB, free: 165.1 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.003942/19.57, allocations: 1.767 MB / 6.114 GB, free: 164.4 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.003893/19.58, allocations: 1.103 MB / 6.116 GB, free: 163.7 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004327/19.58, allocations: 3.625 kB / 6.116 GB, free: 163.7 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0003614/19.58, allocations: 439.3 kB / 6.116 GB, free: 163.4 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004922/19.58, allocations: 1.794 MB / 6.118 GB, free: 163.4 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006497/19.59, allocations: 2.695 MB / 6.12 GB, free: 162.5 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007228/19.6, allocations: 2.395 MB / 6.123 GB, free: 162.5 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-05/19.6, allocations: 3.906 kB / 6.123 GB, free: 162.5 MB / 1.01 GB Notification: Performance of matching and sorting (n=424) (initialization): time 0.01762/19.61, allocations: 5.068 MB / 6.128 GB, free: 162.1 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.001505/19.62, allocations: 6.331 MB / 6.134 GB, free: 155.3 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/19.62, allocations: 14.91 kB / 6.134 GB, free: 155.3 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/19.62, allocations: 224.5 kB / 6.134 GB, free: 155.3 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007559/19.63, allocations: 0.7392 MB / 6.135 GB, free: 155.3 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004656/19.63, allocations: 3.354 MB / 6.138 GB, free: 152.9 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01128/19.64, allocations: 491.4 kB / 6.138 GB, free: 152.9 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001225/19.64, allocations: 137.6 kB / 6.139 GB, free: 152.9 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/19.64, allocations: 6.688 kB / 6.139 GB, free: 152.9 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01653/19.66, allocations: 4.509 MB / 6.143 GB, free: 152.8 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001153/19.66, allocations: 17.41 kB / 6.143 GB, free: 152.8 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001976/19.66, allocations: 230.5 kB / 6.143 GB, free: 152.8 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01185/19.67, allocations: 0.7223 MB / 6.144 GB, free: 152.8 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007092/19.68, allocations: 3.929 MB / 6.148 GB, free: 150.2 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01112/19.69, allocations: 467.7 kB / 6.148 GB, free: 150.2 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/19.69, allocations: 140.4 kB / 6.148 GB, free: 150.2 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (399): * Single equations (assignments): 393 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001422/19.69, allocations: 217 kB / 6.149 GB, free: 150 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002117/19.7, allocations: 496 kB / 6.149 GB, free: 149.8 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0173/19.71, allocations: 4.827 MB / 6.154 GB, free: 149.5 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.653e-05/19.71, allocations: 34.81 kB / 6.154 GB, free: 149.5 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-05/19.71, allocations: 7.062 kB / 6.154 GB, free: 149.5 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01176/19.73, allocations: 4.034 MB / 6.158 GB, free: 149.3 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03947/19.77, allocations: 11.56 MB / 6.169 GB, free: 148.4 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.927e-05/19.77, allocations: 3.719 kB / 6.169 GB, free: 148.4 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007638/19.77, allocations: 0.7137 MB / 6.17 GB, free: 148.4 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009001/19.77, allocations: 181.3 kB / 6.17 GB, free: 148.4 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008677/19.77, allocations: 54.38 kB / 6.17 GB, free: 148.4 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004033/19.78, allocations: 3.252 MB / 6.173 GB, free: 146 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.24e-05/19.78, allocations: 5.562 kB / 6.173 GB, free: 146 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02058/19.8, allocations: 8.216 MB / 6.181 GB, free: 144.6 MB / 1.01 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03075/19.83, allocations: 11.75 MB / 6.193 GB, free: 142.8 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0059/19.84, allocations: 1.226 MB / 6.194 GB, free: 142.4 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002316/19.84, allocations: 30.5 kB / 6.194 GB, free: 142.4 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009322/19.85, allocations: 413.1 kB / 6.194 GB, free: 142.4 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001122/19.85, allocations: 170.9 kB / 6.194 GB, free: 142.4 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005627/19.85, allocations: 124.2 kB / 6.195 GB, free: 142.4 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.01007/19.86, allocations: 3.288 MB / 6.198 GB, free: 142.2 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.02721/19.89, allocations: 3.771 MB / 6.201 GB, free: 142.2 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 21 (temSen.T,val.filter.x[1],val.filter.x[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.U,hex.ele[1].vol2.dynBal.mXi[1],hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.U,hex.ele[2].vol2.dynBal.mXi[1],hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.U,hex.ele[3].vol2.dynBal.mXi[1],hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,hex.ele[4].vol2.dynBal.mXi[1],hex.ele[4].mas.T,con.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007663/19.89, allocations: 3.453 MB / 6.205 GB, free: 141 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0202/19.92, allocations: 7.31 MB / 6.212 GB, free: 140.5 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.911e-05/19.92, allocations: 1.062 kB / 6.212 GB, free: 140.5 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.006268/19.92, allocations: 2.322 MB / 6.214 GB, free: 140.4 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02757/19.95, allocations: 2.809 MB / 6.217 GB, free: 140.3 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04053/19.99, allocations: 11.8 MB / 6.228 GB, free: 138.2 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01408/20, allocations: 5.167 MB / 6.234 GB, free: 137.4 MB / 1.01 GB Notification: Performance of SimCode: time 1.994e-06/20, allocations: 1.125 kB / 6.234 GB, free: 137.4 MB / 1.01 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1)