Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.547/1.547, allocations: 289.8 MB / 297.1 MB, free: 6.609 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.001135/0.001135, allocations: 181.2 kB / 366.3 MB, free: 1.934 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.537/1.537, allocations: 205.1 MB / 0.6256 GB, free: 5.801 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.001105/0.001105, allocations: 94.92 kB / 0.7396 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.304/0.3051, allocations: 122.4 MB / 0.8591 GB, free: 13.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7803/1.085, allocations: 116.3 MB / 0.9726 GB, free: 68.49 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.283/6.368, allocations: 2.395 GB / 3.367 GB, free: 54.7 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/6.368, allocations: 96.95 kB / 3.367 GB, free: 54.6 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 10.05/16.41, allocations: 2.684 GB / 6.051 GB, free: 12.82 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/16.41, allocations: 8 kB / 6.051 GB, free: 12.81 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01262/16.43, allocations: 1.533 MB / 6.052 GB, free: 11.27 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0244/16.45, allocations: 7.565 MB / 6.06 GB, free: 3.629 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003649/16.45, allocations: 164 kB / 6.06 GB, free: 3.469 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002658/16.45, allocations: 299.9 kB / 6.06 GB, free: 3.176 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5994/17.05, allocations: 5.545 MB / 6.066 GB, free: 169.4 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01537/17.07, allocations: 6.049 MB / 6.072 GB, free: 169 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000135/17.07, allocations: 6.719 kB / 6.072 GB, free: 169 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005849/17.07, allocations: 7.75 kB / 6.072 GB, free: 169 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001923/17.07, allocations: 228.2 kB / 6.072 GB, free: 169 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04615/17.12, allocations: 28.55 MB / 6.1 GB, free: 158.6 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004351/17.12, allocations: 2.579 MB / 6.102 GB, free: 158.6 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003727/17.13, allocations: 2.537 MB / 6.105 GB, free: 158.5 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001215/17.13, allocations: 1.093 MB / 6.106 GB, free: 157.4 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003943/17.13, allocations: 2.346 MB / 6.108 GB, free: 157.2 MB / 1.026 GB Notification: Performance of pre-optimization done (n=326): time 7.344e-06/17.13, allocations: 0 / 6.108 GB, free: 157.2 MB / 1.026 GB Notification: Performance of matching and sorting (n=330): time 0.03543/17.17, allocations: 11.47 MB / 6.119 GB, free: 154.5 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/17.17, allocations: 297.9 kB / 6.12 GB, free: 154.1 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01248/17.18, allocations: 4.244 MB / 6.124 GB, free: 153.9 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.001651/17.18, allocations: 32.14 kB / 6.124 GB, free: 153.8 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.004168/17.18, allocations: 1.771 MB / 6.125 GB, free: 153.2 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.003623/17.19, allocations: 1.104 MB / 6.127 GB, free: 152.6 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009224/17.19, allocations: 0 / 6.127 GB, free: 152.6 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0004993/17.19, allocations: 439.9 kB / 6.127 GB, free: 152.3 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003896/17.19, allocations: 1.793 MB / 6.129 GB, free: 152.3 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004682/17.2, allocations: 2.698 MB / 6.131 GB, free: 151.4 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005246/17.2, allocations: 2.39 MB / 6.134 GB, free: 151.4 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.988e-05/17.2, allocations: 3.938 kB / 6.134 GB, free: 151.4 MB / 1.026 GB Notification: Performance of matching and sorting (n=424) (initialization): time 0.01262/17.22, allocations: 5.075 MB / 6.139 GB, free: 151 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.001702/17.22, allocations: 6.333 MB / 6.145 GB, free: 144.2 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.555e-05/17.22, allocations: 14.06 kB / 6.145 GB, free: 144.2 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007628/17.22, allocations: 230.6 kB / 6.145 GB, free: 144.2 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003907/17.22, allocations: 0.7376 MB / 6.146 GB, free: 144.2 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003488/17.23, allocations: 3.357 MB / 6.149 GB, free: 141.8 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007788/17.23, allocations: 483.6 kB / 6.15 GB, free: 141.8 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009564/17.23, allocations: 139.3 kB / 6.15 GB, free: 141.8 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/17.23, allocations: 5.75 kB / 6.15 GB, free: 141.8 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01029/17.25, allocations: 4.505 MB / 6.154 GB, free: 141.7 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-05/17.25, allocations: 16.62 kB / 6.154 GB, free: 141.7 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007035/17.25, allocations: 222.9 kB / 6.154 GB, free: 141.7 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003624/17.25, allocations: 0.7346 MB / 6.155 GB, free: 141.7 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004562/17.25, allocations: 3.929 MB / 6.159 GB, free: 139.1 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007846/17.26, allocations: 468.8 kB / 6.159 GB, free: 139.1 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009886/17.26, allocations: 137.2 kB / 6.159 GB, free: 139.1 MB / 1.026 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.001828/17.26, allocations: 220.5 kB / 6.16 GB, free: 138.9 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002343/17.27, allocations: 496.9 kB / 6.16 GB, free: 138.7 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/17.28, allocations: 4.826 MB / 6.165 GB, free: 138.5 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.768e-05/17.28, allocations: 32.19 kB / 6.165 GB, free: 138.5 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.187e-05/17.28, allocations: 2.312 kB / 6.165 GB, free: 138.5 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007013/17.29, allocations: 4.039 MB / 6.169 GB, free: 138.2 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02897/17.32, allocations: 11.56 MB / 6.18 GB, free: 137.3 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-05/17.32, allocations: 8.438 kB / 6.18 GB, free: 137.3 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00402/17.32, allocations: 0.7086 MB / 6.181 GB, free: 137.3 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005895/17.32, allocations: 174.2 kB / 6.181 GB, free: 137.3 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005551/17.32, allocations: 52.91 kB / 6.181 GB, free: 137.3 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002689/17.32, allocations: 3.253 MB / 6.184 GB, free: 134.9 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/17.32, allocations: 4.438 kB / 6.184 GB, free: 134.9 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01503/17.34, allocations: 8.214 MB / 6.192 GB, free: 133.5 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01835/17.36, allocations: 11.74 MB / 6.204 GB, free: 131.7 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005625/17.36, allocations: 1.223 MB / 6.205 GB, free: 131.4 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002627/17.37, allocations: 35.5 kB / 6.205 GB, free: 131.4 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006474/17.37, allocations: 416.2 kB / 6.205 GB, free: 131.3 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005692/17.37, allocations: 180.2 kB / 6.205 GB, free: 131.3 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005642/17.37, allocations: 120.8 kB / 6.206 GB, free: 131.3 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.007911/17.38, allocations: 3.288 MB / 6.209 GB, free: 131.2 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.02383/17.4, allocations: 3.771 MB / 6.212 GB, free: 131.2 MB / 1.026 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.007106/17.41, allocations: 3.457 MB / 6.216 GB, free: 130 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.01423/17.43, allocations: 7.305 MB / 6.223 GB, free: 129.5 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-05/17.43, allocations: 4.719 kB / 6.223 GB, free: 129.5 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.004185/17.43, allocations: 2.32 MB / 6.225 GB, free: 129.4 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01777/17.45, allocations: 2.82 MB / 6.228 GB, free: 129.3 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04006/17.49, allocations: 11.8 MB / 6.24 GB, free: 127.3 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01161/17.5, allocations: 5.168 MB / 6.245 GB, free: 126.4 MB / 1.026 GB Notification: Performance of SimCode: time 1.362e-06/17.5, allocations: 0 / 6.245 GB, free: 126.4 MB / 1.026 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1)