Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.319/2.319, allocations: 390.4 MB / 397.7 MB, free: 11.21 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.001808/0.001808, allocations: 189.2 kB / 490.8 MB, free: 1.883 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.649/1.649, allocations: 221.4 MB / 0.7863 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 99.91 kB / 0.9264 GB, free: 14.15 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7435/0.7446, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/1.101, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.59/6.691, allocations: 2.222 GB / 3.434 GB, free: 85.95 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/6.691, allocations: 91.95 kB / 3.434 GB, free: 85.86 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.791/16.48, allocations: 2.726 GB / 6.16 GB, free: 62.94 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/16.48, allocations: 9.75 kB / 6.16 GB, free: 62.93 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01232/16.49, allocations: 1.522 MB / 6.161 GB, free: 61.4 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02298/16.52, allocations: 7.617 MB / 6.168 GB, free: 53.78 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003649/16.52, allocations: 152 kB / 6.169 GB, free: 53.63 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002504/16.52, allocations: 295.9 kB / 6.169 GB, free: 53.34 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01412/16.53, allocations: 5.544 MB / 6.174 GB, free: 47.79 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01909/16.55, allocations: 6.04 MB / 6.18 GB, free: 41.62 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001743/16.55, allocations: 4 kB / 6.18 GB, free: 41.61 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007658/16.55, allocations: 11.98 kB / 6.18 GB, free: 41.6 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002281/16.56, allocations: 225.4 kB / 6.18 GB, free: 41.38 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06068/16.62, allocations: 29.17 MB / 6.209 GB, free: 10.75 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004275/16.62, allocations: 2.595 MB / 6.211 GB, free: 8.156 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003748/16.62, allocations: 2.535 MB / 6.214 GB, free: 5.613 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001281/16.63, allocations: 1.093 MB / 6.215 GB, free: 4.297 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003647/16.63, allocations: 2.354 MB / 6.217 GB, free: 1.898 MB / 1.214 GB Notification: Performance of pre-optimization done (n=327): time 5.861e-06/16.63, allocations: 0 / 6.217 GB, free: 1.898 MB / 1.214 GB Notification: Performance of matching and sorting (n=331): time 0.03731/16.67, allocations: 11.5 MB / 6.229 GB, free: 6.23 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/16.67, allocations: 226.4 kB / 6.229 GB, free: 5.965 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009986/16.68, allocations: 4.25 MB / 6.233 GB, free: 1.723 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001357/16.68, allocations: 29.7 kB / 6.233 GB, free: 1.688 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.6798/17.36, allocations: 1.792 MB / 6.235 GB, free: 266.3 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.003463/17.36, allocations: 1.104 MB / 6.236 GB, free: 266.3 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002776/17.36, allocations: 0 / 6.236 GB, free: 266.3 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0003052/17.36, allocations: 436.5 kB / 6.236 GB, free: 265.9 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002858/17.36, allocations: 1.793 MB / 6.238 GB, free: 265.9 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003415/17.37, allocations: 2.596 MB / 6.24 GB, free: 265.1 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003895/17.37, allocations: 2.377 MB / 6.243 GB, free: 265.1 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/17.37, allocations: 6.453 kB / 6.243 GB, free: 265.1 MB / 1.229 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.01034/17.38, allocations: 5.053 MB / 6.248 GB, free: 265 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.001683/17.38, allocations: 6.315 MB / 6.254 GB, free: 258.2 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.425e-05/17.38, allocations: 11.41 kB / 6.254 GB, free: 258.2 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006796/17.38, allocations: 228 kB / 6.254 GB, free: 258.2 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003907/17.39, allocations: 0.7479 MB / 6.255 GB, free: 258.2 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003073/17.39, allocations: 3.365 MB / 6.258 GB, free: 255.8 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008058/17.4, allocations: 0.4905 MB / 6.259 GB, free: 255.8 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/17.4, allocations: 139.2 kB / 6.259 GB, free: 255.8 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/17.4, allocations: 6.188 kB / 6.259 GB, free: 255.8 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008203/17.41, allocations: 4.488 MB / 6.263 GB, free: 255.7 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.97e-05/17.41, allocations: 11.59 kB / 6.263 GB, free: 255.7 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000698/17.41, allocations: 223.7 kB / 6.263 GB, free: 255.7 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003491/17.41, allocations: 0.7361 MB / 6.264 GB, free: 255.7 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004155/17.42, allocations: 3.922 MB / 6.268 GB, free: 253.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007762/17.43, allocations: 491 kB / 6.268 GB, free: 253.1 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009125/17.43, allocations: 133.8 kB / 6.268 GB, free: 253.1 MB / 1.229 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.001352/17.43, allocations: 226.9 kB / 6.269 GB, free: 253 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002118/17.43, allocations: 499 kB / 6.269 GB, free: 252.7 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/17.44, allocations: 4.84 MB / 6.274 GB, free: 252.5 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.663e-05/17.44, allocations: 34.53 kB / 6.274 GB, free: 252.5 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/17.44, allocations: 3.062 kB / 6.274 GB, free: 252.5 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007187/17.45, allocations: 4.043 MB / 6.278 GB, free: 252.2 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02995/17.48, allocations: 11.59 MB / 6.289 GB, free: 251.3 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/17.48, allocations: 7.438 kB / 6.289 GB, free: 251.3 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003589/17.48, allocations: 0.6992 MB / 6.29 GB, free: 251.3 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005202/17.48, allocations: 179.1 kB / 6.29 GB, free: 251.3 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003081/17.48, allocations: 58.86 kB / 6.29 GB, free: 251.3 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/17.49, allocations: 3.24 MB / 6.293 GB, free: 248.9 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.894e-06/17.49, allocations: 10.19 kB / 6.293 GB, free: 248.9 MB / 1.229 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01179/17.5, allocations: 7.86 MB / 6.301 GB, free: 247.5 MB / 1.229 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01617/17.51, allocations: 11.38 MB / 6.312 GB, free: 245.7 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005842/17.52, allocations: 1.233 MB / 6.313 GB, free: 245.4 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002032/17.52, allocations: 31.3 kB / 6.313 GB, free: 245.4 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005853/17.53, allocations: 408.7 kB / 6.314 GB, free: 245.4 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004331/17.53, allocations: 178.4 kB / 6.314 GB, free: 245.4 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003914/17.53, allocations: 123.4 kB / 6.314 GB, free: 245.4 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.006172/17.53, allocations: 3.304 MB / 6.317 GB, free: 245.2 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.0201/17.55, allocations: 3.698 MB / 6.321 GB, free: 245.2 MB / 1.229 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.006245/17.56, allocations: 3.401 MB / 6.324 GB, free: 244.1 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01241/17.57, allocations: 7.226 MB / 6.331 GB, free: 243.6 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.646e-05/17.57, allocations: 4.531 kB / 6.331 GB, free: 243.6 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.003779/17.58, allocations: 2.321 MB / 6.334 GB, free: 243.5 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01654/17.59, allocations: 2.789 MB / 6.336 GB, free: 243.4 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02955/17.62, allocations: 11.85 MB / 6.348 GB, free: 241.4 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00895/17.63, allocations: 5.169 MB / 6.353 GB, free: 240.5 MB / 1.229 GB Notification: Performance of SimCode: time 1.583e-06/17.63, allocations: 3.5 kB / 6.353 GB, free: 240.5 MB / 1.229 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1)