Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.061/2.061, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001255, allocations: 173.3 kB / 487 MB, free: 5.363 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 221.3 MB / 0.7819 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009949/0.0009953, allocations: 106.7 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6268/0.6278, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.9234, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.804/5.727, allocations: 2.221 GB / 3.426 GB, free: 78.01 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/5.727, allocations: 83.95 kB / 3.426 GB, free: 77.93 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1243 * Number of variables: 1243 Notification: Performance of Generate backend data structure: time 9.311/15.04, allocations: 2.726 GB / 6.152 GB, free: 48.89 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/15.04, allocations: 10.95 kB / 6.152 GB, free: 48.88 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/15.05, allocations: 1.529 MB / 6.154 GB, free: 47.34 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/15.07, allocations: 7.612 MB / 6.161 GB, free: 39.66 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002271/15.07, allocations: 159.9 kB / 6.161 GB, free: 39.5 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001693/15.07, allocations: 299.9 kB / 6.162 GB, free: 39.21 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01104/15.08, allocations: 5.539 MB / 6.167 GB, free: 33.67 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/15.09, allocations: 6.044 MB / 6.173 GB, free: 27.49 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/15.09, allocations: 4 kB / 6.173 GB, free: 27.49 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005477/15.09, allocations: 7.906 kB / 6.173 GB, free: 27.48 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001932/15.09, allocations: 233.4 kB / 6.173 GB, free: 27.25 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6628/15.76, allocations: 29.15 MB / 6.202 GB, free: 254.4 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00463/15.76, allocations: 2.592 MB / 6.204 GB, free: 254.4 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003827/15.77, allocations: 2.533 MB / 6.207 GB, free: 254.3 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001145/15.77, allocations: 1.098 MB / 6.208 GB, free: 253.2 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003798/15.77, allocations: 2.356 MB / 6.21 GB, free: 253.1 MB / 1.214 GB Notification: Performance of pre-optimization done (n=327): time 5.17e-06/15.77, allocations: 0 / 6.21 GB, free: 253.1 MB / 1.214 GB Notification: Performance of matching and sorting (n=331): time 0.03516/15.81, allocations: 11.5 MB / 6.221 GB, free: 250.8 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/15.81, allocations: 217.6 kB / 6.222 GB, free: 250.6 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0111/15.82, allocations: 4.261 MB / 6.226 GB, free: 250.3 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.001185/15.82, allocations: 38.55 kB / 6.226 GB, free: 250.3 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.003265/15.82, allocations: 1.768 MB / 6.228 GB, free: 249.6 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.003236/15.83, allocations: 1.103 MB / 6.229 GB, free: 249 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008491/15.83, allocations: 0 / 6.229 GB, free: 249 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0004644/15.83, allocations: 440.8 kB / 6.229 GB, free: 248.7 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003583/15.83, allocations: 1.79 MB / 6.231 GB, free: 248.7 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004314/15.83, allocations: 2.591 MB / 6.233 GB, free: 247.9 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005036/15.84, allocations: 2.378 MB / 6.236 GB, free: 247.9 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.092e-05/15.84, allocations: 2.781 kB / 6.236 GB, free: 247.9 MB / 1.214 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.01342/15.85, allocations: 5.059 MB / 6.241 GB, free: 247.5 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001676/15.85, allocations: 6.324 MB / 6.247 GB, free: 240.7 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.368e-05/15.85, allocations: 15.22 kB / 6.247 GB, free: 240.7 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007786/15.86, allocations: 224.9 kB / 6.247 GB, free: 240.7 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004449/15.86, allocations: 0.7407 MB / 6.248 GB, free: 240.7 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003297/15.86, allocations: 3.362 MB / 6.251 GB, free: 238.3 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008261/15.87, allocations: 0.5031 MB / 6.251 GB, free: 238.3 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/15.87, allocations: 128.7 kB / 6.252 GB, free: 238.3 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/15.87, allocations: 3.562 kB / 6.252 GB, free: 238.3 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01198/15.89, allocations: 4.497 MB / 6.256 GB, free: 238.2 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.697e-05/15.89, allocations: 12.53 kB / 6.256 GB, free: 238.2 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007817/15.89, allocations: 217.5 kB / 6.256 GB, free: 238.2 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004008/15.89, allocations: 0.7469 MB / 6.257 GB, free: 238.2 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00453/15.89, allocations: 3.92 MB / 6.261 GB, free: 235.6 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007813/15.9, allocations: 490.3 kB / 6.261 GB, free: 235.6 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/15.9, allocations: 132.2 kB / 6.261 GB, free: 235.6 MB / 1.214 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 (398): * Single equations (assignments): 394 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.002206/15.91, allocations: 226.9 kB / 6.262 GB, free: 235.5 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002414/15.91, allocations: 490.3 kB / 6.262 GB, free: 235.2 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01365/15.92, allocations: 4.841 MB / 6.267 GB, free: 235 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.585e-05/15.92, allocations: 30 kB / 6.267 GB, free: 235 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.649e-05/15.92, allocations: 6.281 kB / 6.267 GB, free: 235 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008605/15.93, allocations: 4.042 MB / 6.271 GB, free: 234.8 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03248/15.96, allocations: 11.6 MB / 6.282 GB, free: 233.9 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.82e-05/15.96, allocations: 3.938 kB / 6.282 GB, free: 233.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004311/15.97, allocations: 0.7042 MB / 6.283 GB, free: 233.9 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006546/15.97, allocations: 185.1 kB / 6.283 GB, free: 233.9 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008699/15.97, allocations: 55.47 kB / 6.283 GB, free: 233.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003022/15.97, allocations: 3.238 MB / 6.286 GB, free: 231.5 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-05/15.97, allocations: 13.81 kB / 6.286 GB, free: 231.5 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01513/15.99, allocations: 7.872 MB / 6.294 GB, free: 230.1 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01753/16.01, allocations: 11.37 MB / 6.305 GB, free: 228.3 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005117/16.01, allocations: 1.231 MB / 6.306 GB, free: 227.9 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002601/16.01, allocations: 34.81 kB / 6.306 GB, free: 227.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006855/16.02, allocations: 417.3 kB / 6.307 GB, free: 227.9 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008136/16.02, allocations: 181.8 kB / 6.307 GB, free: 227.9 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007106/16.02, allocations: 119.9 kB / 6.307 GB, free: 227.9 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.007846/16.03, allocations: 3.304 MB / 6.31 GB, free: 227.7 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.02151/16.05, allocations: 3.698 MB / 6.314 GB, free: 227.7 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 21 (temSen.T,val.filter.s[1],val.filter.s[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.medium.Xi[1],hex.ele[1].vol2.dynBal.U,hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.medium.Xi[1],hex.ele[2].vol2.dynBal.U,hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.medium.Xi[1],hex.ele[3].vol2.dynBal.U,hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.medium.Xi[1],hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,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 (319): * Single equations (assignments): 311 * 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.006335/16.06, allocations: 3.402 MB / 6.317 GB, free: 226.6 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01437/16.07, allocations: 7.226 MB / 6.324 GB, free: 226.1 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/16.07, allocations: 3.188 kB / 6.324 GB, free: 226.1 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.004354/16.08, allocations: 2.32 MB / 6.326 GB, free: 226 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01732/16.09, allocations: 2.784 MB / 6.329 GB, free: 225.9 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03554/16.13, allocations: 11.85 MB / 6.341 GB, free: 223.9 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008241/16.14, allocations: 5.173 MB / 6.346 GB, free: 223 MB / 1.214 GB Notification: Performance of SimCode: time 1.223e-06/16.14, allocations: 3.156 kB / 6.346 GB, free: 223 MB / 1.214 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1)