Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.212/1.212, allocations: 249.4 MB / 256.7 MB, free: 0.8125 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00096/0.0009601, allocations: 177.3 kB / 316 MB, free: 8.973 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.153/1.153, allocations: 205.1 MB / 0.5667 GB, free: 13.44 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009679/0.0009681, allocations: 86.25 kB / 0.671 GB, free: 51.66 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1959/0.197, allocations: 112.5 MB / 0.7808 GB, free: 9.879 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5216/0.7186, allocations: 106.3 MB / 0.8846 GB, free: 89.09 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.141/4.86, allocations: 2.511 GB / 3.395 GB, free: 197.9 MB / 0.8777 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/4.86, allocations: 91.95 kB / 3.395 GB, free: 197.8 MB / 0.8777 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1252 * Number of variables: 1252 Notification: Performance of Generate backend data structure: time 7.384/12.24, allocations: 2.614 GB / 6.01 GB, free: 6.047 MB / 0.9402 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/12.24, allocations: 8 kB / 6.01 GB, free: 6.039 MB / 0.9402 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01143/12.26, allocations: 1.551 MB / 6.011 GB, free: 4.48 MB / 0.9402 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4169/12.67, allocations: 7.587 MB / 6.018 GB, free: 165.2 MB / 0.9402 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/12.67, allocations: 155.9 kB / 6.019 GB, free: 165.2 MB / 0.9402 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/12.68, allocations: 302.1 kB / 6.019 GB, free: 165.2 MB / 0.9402 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01174/12.69, allocations: 5.567 MB / 6.024 GB, free: 165.1 MB / 0.9402 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01502/12.7, allocations: 6.076 MB / 6.03 GB, free: 164.7 MB / 0.9402 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000135/12.7, allocations: 6.688 kB / 6.03 GB, free: 164.7 MB / 0.9402 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005861/12.7, allocations: 7.406 kB / 6.03 GB, free: 164.7 MB / 0.9402 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001623/12.7, allocations: 237.2 kB / 6.031 GB, free: 164.7 MB / 0.9402 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04002/12.74, allocations: 28.59 MB / 6.058 GB, free: 154.2 MB / 0.9402 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003394/12.75, allocations: 2.597 MB / 6.061 GB, free: 154.2 MB / 0.9402 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002862/12.75, allocations: 2.525 MB / 6.063 GB, free: 154.1 MB / 0.9402 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009305/12.75, allocations: 1.091 MB / 6.064 GB, free: 153 MB / 0.9402 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002918/12.75, allocations: 2.354 MB / 6.067 GB, free: 152.9 MB / 0.9402 GB Notification: Performance of pre-optimization done (n=326): time 5.671e-06/12.75, allocations: 0 / 6.067 GB, free: 152.9 MB / 0.9402 GB Notification: Performance of matching and sorting (n=330): time 0.02592/12.78, allocations: 11.45 MB / 6.078 GB, free: 150.1 MB / 0.9402 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.791e-05/12.78, allocations: 301.2 kB / 6.078 GB, free: 149.7 MB / 0.9402 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008266/12.79, allocations: 4.273 MB / 6.082 GB, free: 149.5 MB / 0.9402 GB Notification: Performance of collectPreVariables (initialization): time 0.0009933/12.79, allocations: 32.61 kB / 6.082 GB, free: 149.4 MB / 0.9402 GB Notification: Performance of collectInitialEqns (initialization): time 0.00234/12.79, allocations: 1.784 MB / 6.084 GB, free: 148.8 MB / 0.9402 GB Notification: Performance of collectInitialBindings (initialization): time 0.002681/12.79, allocations: 1.098 MB / 6.085 GB, free: 148.2 MB / 0.9402 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002714/12.79, allocations: 0 / 6.085 GB, free: 148.2 MB / 0.9402 GB Notification: Performance of setup shared object (initialization): time 0.0002383/12.79, allocations: 442.6 kB / 6.086 GB, free: 147.8 MB / 0.9402 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/12.8, allocations: 1.786 MB / 6.087 GB, free: 147.8 MB / 0.9402 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003008/12.8, allocations: 2.682 MB / 6.09 GB, free: 147 MB / 0.9402 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003424/12.8, allocations: 2.377 MB / 6.092 GB, free: 146.9 MB / 0.9402 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/12.8, allocations: 3.812 kB / 6.092 GB, free: 146.9 MB / 0.9402 GB Notification: Performance of matching and sorting (n=424) (initialization): time 0.008062/12.81, allocations: 5.053 MB / 6.097 GB, free: 146.5 MB / 0.9402 GB Notification: Performance of prepare postOptimizeDAE: time 0.000995/12.81, allocations: 6.331 MB / 6.103 GB, free: 139.7 MB / 0.9402 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.225e-05/12.81, allocations: 15.34 kB / 6.104 GB, free: 139.7 MB / 0.9402 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005794/12.81, allocations: 222.1 kB / 6.104 GB, free: 139.7 MB / 0.9402 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003294/12.82, allocations: 0.7366 MB / 6.104 GB, free: 139.7 MB / 0.9402 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/12.82, allocations: 3.362 MB / 6.108 GB, free: 137.3 MB / 0.9402 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006473/12.83, allocations: 489 kB / 6.108 GB, free: 137.3 MB / 0.9402 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006402/12.83, allocations: 139.1 kB / 6.108 GB, free: 137.3 MB / 0.9402 GB Notification: Performance of prepare postOptimizeDAE: time 8.997e-06/12.83, allocations: 3.531 kB / 6.108 GB, free: 137.3 MB / 0.9402 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006967/12.83, allocations: 4.483 MB / 6.113 GB, free: 137.2 MB / 0.9402 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/12.83, allocations: 20.45 kB / 6.113 GB, free: 137.2 MB / 0.9402 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005831/12.83, allocations: 223.5 kB / 6.113 GB, free: 137.2 MB / 0.9402 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002993/12.84, allocations: 0.7227 MB / 6.114 GB, free: 137.2 MB / 0.9402 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004061/12.84, allocations: 3.931 MB / 6.117 GB, free: 134.6 MB / 0.9402 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006565/12.85, allocations: 476.4 kB / 6.118 GB, free: 134.6 MB / 0.9402 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007379/12.85, allocations: 140.4 kB / 6.118 GB, free: 134.6 MB / 0.9402 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.001425/12.85, allocations: 219.7 kB / 6.118 GB, free: 134.4 MB / 0.9402 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001817/12.85, allocations: 498.1 kB / 6.119 GB, free: 134.2 MB / 0.9402 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/12.86, allocations: 4.799 MB / 6.123 GB, free: 134 MB / 0.9402 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.511e-05/12.86, allocations: 37.81 kB / 6.123 GB, free: 134 MB / 0.9402 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/12.86, allocations: 7.406 kB / 6.123 GB, free: 134 MB / 0.9402 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006011/12.87, allocations: 4.008 MB / 6.127 GB, free: 133.7 MB / 0.9402 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0218/12.89, allocations: 11.55 MB / 6.139 GB, free: 132.8 MB / 0.9402 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.806e-05/12.89, allocations: 3.906 kB / 6.139 GB, free: 132.8 MB / 0.9402 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003369/12.89, allocations: 0.7124 MB / 6.139 GB, free: 132.8 MB / 0.9402 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005074/12.89, allocations: 173.2 kB / 6.14 GB, free: 132.8 MB / 0.9402 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000356/12.89, allocations: 56.36 kB / 6.14 GB, free: 132.8 MB / 0.9402 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/12.9, allocations: 3.248 MB / 6.143 GB, free: 130.4 MB / 0.9402 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.687e-06/12.9, allocations: 10.69 kB / 6.143 GB, free: 130.4 MB / 0.9402 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01158/12.91, allocations: 8.172 MB / 6.151 GB, free: 129 MB / 0.9402 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01448/12.92, allocations: 11.69 MB / 6.162 GB, free: 127.2 MB / 0.9402 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004036/12.93, allocations: 1.242 MB / 6.163 GB, free: 126.8 MB / 0.9402 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001865/12.93, allocations: 32.02 kB / 6.163 GB, free: 126.8 MB / 0.9402 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005604/12.93, allocations: 426 kB / 6.164 GB, free: 126.8 MB / 0.9402 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004046/12.93, allocations: 179.5 kB / 6.164 GB, free: 126.8 MB / 0.9402 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003918/12.93, allocations: 120.5 kB / 6.164 GB, free: 126.8 MB / 0.9402 GB Notification: Performance of sort global known variables: time 0.00841/12.94, allocations: 3.311 MB / 6.167 GB, free: 126.6 MB / 0.9402 GB Notification: Performance of remove unused functions: time 0.0181/12.96, allocations: 3.778 MB / 6.171 GB, free: 126.6 MB / 0.9402 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.00571/12.97, allocations: 3.459 MB / 6.174 GB, free: 125.4 MB / 0.9402 GB Notification: Performance of simCode: created initialization part: time 0.01102/12.98, allocations: 7.265 MB / 6.182 GB, free: 124.9 MB / 0.9402 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/12.98, allocations: 3.031 kB / 6.182 GB, free: 124.9 MB / 0.9402 GB Notification: Performance of simCode: created simulation system equations: time 0.003665/12.98, allocations: 2.306 MB / 6.184 GB, free: 124.8 MB / 0.9402 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01505/13, allocations: 2.811 MB / 6.187 GB, free: 124.7 MB / 0.9402 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02804/13.02, allocations: 11.86 MB / 6.198 GB, free: 122.6 MB / 0.9402 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006377/13.03, allocations: 5.191 MB / 6.203 GB, free: 121.8 MB / 0.9402 GB Notification: Performance of SimCode: time 7.02e-07/13.03, allocations: 0 / 6.203 GB, free: 121.8 MB / 0.9402 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1)