Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.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.WetCoilCounterFlowMassFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow",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.126/2.126, allocations: 390.4 MB / 397.7 MB, free: 1.75 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 188 kB / 490.8 MB, free: 7.277 MB / 402.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.632/1.632, allocations: 221.3 MB / 0.7863 GB, free: 40 kB / 0.5496 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: 96.66 kB / 0.9264 GB, free: 416 kB / 0.6902 GB Notification: Performance of FrontEnd - loaded program: time 0.7401/0.7411, allocations: 149.1 MB / 1.072 GB, free: 137.3 MB / 0.7215 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/1.092, allocations: 143 MB / 1.212 GB, free: 10.32 MB / 0.7371 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.289/6.381, allocations: 2.216 GB / 3.428 GB, free: 16.11 MB / 1.159 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003995/6.382, allocations: 91.94 kB / 3.428 GB, free: 16.02 MB / 1.159 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1189 * Number of variables: 1189 Notification: Performance of Generate backend data structure: time 10.04/16.42, allocations: 2.47 GB / 5.898 GB, free: 157 MB / 1.237 GB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/16.42, allocations: 12.91 kB / 5.898 GB, free: 157 MB / 1.237 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01229/16.44, allocations: 1.446 MB / 5.899 GB, free: 156.6 MB / 1.237 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02364/16.46, allocations: 7.309 MB / 5.906 GB, free: 155.8 MB / 1.237 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004073/16.46, allocations: 146.4 kB / 5.906 GB, free: 155.8 MB / 1.237 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002866/16.46, allocations: 269.9 kB / 5.907 GB, free: 155.8 MB / 1.237 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01653/16.48, allocations: 5.399 MB / 5.912 GB, free: 155.7 MB / 1.237 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02304/16.5, allocations: 5.859 MB / 5.918 GB, free: 155.3 MB / 1.237 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004391/16.5, allocations: 3.938 kB / 5.918 GB, free: 155.3 MB / 1.237 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00243/16.51, allocations: 3.844 kB / 5.918 GB, free: 155.3 MB / 1.237 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003311/16.51, allocations: 220.4 kB / 5.918 GB, free: 155.3 MB / 1.237 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0594/16.57, allocations: 27.66 MB / 5.945 GB, free: 145 MB / 1.237 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004266/16.57, allocations: 2.505 MB / 5.947 GB, free: 145 MB / 1.237 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00337/16.57, allocations: 2.429 MB / 5.95 GB, free: 144.9 MB / 1.237 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001267/16.58, allocations: 1.096 MB / 5.951 GB, free: 143.8 MB / 1.237 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0035/16.58, allocations: 2.317 MB / 5.953 GB, free: 143.6 MB / 1.237 GB Notification: Performance of pre-optimization done (n=313): time 6.442e-06/16.58, allocations: 0 / 5.953 GB, free: 143.6 MB / 1.237 GB Notification: Performance of matching and sorting (n=317): time 0.03277/16.61, allocations: 11.19 MB / 5.964 GB, free: 140.9 MB / 1.237 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.937e-05/16.61, allocations: 196.3 kB / 5.964 GB, free: 140.7 MB / 1.237 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008124/16.62, allocations: 3.98 MB / 5.968 GB, free: 140.4 MB / 1.237 GB Notification: Performance of collectPreVariables (initialization): time 0.001195/16.62, allocations: 31.89 kB / 5.968 GB, free: 140.3 MB / 1.237 GB Notification: Performance of collectInitialEqns (initialization): time 0.002463/16.62, allocations: 1.665 MB / 5.97 GB, free: 139.5 MB / 1.237 GB Notification: Performance of collectInitialBindings (initialization): time 0.002879/16.63, allocations: 1.05 MB / 5.971 GB, free: 138.8 MB / 1.237 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/16.63, allocations: 0 / 5.971 GB, free: 138.8 MB / 1.237 GB Notification: Performance of setup shared object (initialization): time 0.0003045/16.63, allocations: 442.2 kB / 5.971 GB, free: 138.5 MB / 1.237 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/16.63, allocations: 1.736 MB / 5.973 GB, free: 138.5 MB / 1.237 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002926/16.63, allocations: 2.455 MB / 5.975 GB, free: 137.8 MB / 1.237 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003991/16.64, allocations: 2.36 MB / 5.978 GB, free: 137.7 MB / 1.237 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.61e-05/16.64, allocations: 3.906 kB / 5.978 GB, free: 137.7 MB / 1.237 GB Notification: Performance of matching and sorting (n=398) (initialization): time 0.009492/16.65, allocations: 4.837 MB / 5.982 GB, free: 137.4 MB / 1.237 GB Notification: Performance of prepare postOptimizeDAE: time 0.00134/16.65, allocations: 5.769 MB / 5.988 GB, free: 131.5 MB / 1.237 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.162e-05/16.65, allocations: 18.22 kB / 5.988 GB, free: 131.5 MB / 1.237 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004914/16.65, allocations: 135.1 kB / 5.988 GB, free: 131.5 MB / 1.237 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003666/16.65, allocations: 0.6902 MB / 5.989 GB, free: 131.5 MB / 1.237 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002487/16.65, allocations: 2.612 MB / 5.991 GB, free: 129.7 MB / 1.237 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007617/16.66, allocations: 455.2 kB / 5.992 GB, free: 129.6 MB / 1.237 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/16.66, allocations: 128.1 kB / 5.992 GB, free: 129.6 MB / 1.237 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/16.66, allocations: 5.781 kB / 5.992 GB, free: 129.6 MB / 1.237 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008314/16.67, allocations: 4.345 MB / 5.996 GB, free: 129.5 MB / 1.237 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.437e-05/16.67, allocations: 15.41 kB / 5.996 GB, free: 129.5 MB / 1.237 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000389/16.67, allocations: 125.2 kB / 5.996 GB, free: 129.5 MB / 1.237 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003138/16.67, allocations: 0.6903 MB / 5.997 GB, free: 129.5 MB / 1.237 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/16.68, allocations: 1.984 MB / 5.999 GB, free: 128.2 MB / 1.237 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00751/16.68, allocations: 448.1 kB / 5.999 GB, free: 128.2 MB / 1.237 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/16.69, allocations: 123.7 kB / 5.999 GB, free: 128.2 MB / 1.237 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,$PRE.mWatGai.nextEvent,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,$PRE.mAirGai.nextEvent,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (381): * Single equations (assignments): 377 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002037/16.69, allocations: 251 kB / 6 GB, free: 128 MB / 1.237 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002664/16.69, allocations: 454.4 kB / 6 GB, free: 127.8 MB / 1.237 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01275/16.7, allocations: 4.686 MB / 6.005 GB, free: 127.6 MB / 1.237 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.435e-05/16.7, allocations: 34.02 kB / 6.005 GB, free: 127.6 MB / 1.237 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.657e-05/16.7, allocations: 3.938 kB / 6.005 GB, free: 127.6 MB / 1.237 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008579/16.71, allocations: 3.953 MB / 6.009 GB, free: 126.5 MB / 1.237 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03775/16.75, allocations: 11.33 MB / 6.02 GB, free: 121.8 MB / 1.237 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.583e-05/16.75, allocations: 4.219 kB / 6.02 GB, free: 121.8 MB / 1.237 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004694/16.75, allocations: 0.6592 MB / 6.02 GB, free: 121.8 MB / 1.237 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005884/16.75, allocations: 112.1 kB / 6.02 GB, free: 121.8 MB / 1.237 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009508/16.76, allocations: 54.08 kB / 6.02 GB, free: 121.8 MB / 1.237 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003101/16.76, allocations: 2.58 MB / 6.023 GB, free: 119.6 MB / 1.237 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-05/16.76, allocations: 5 kB / 6.023 GB, free: 119.6 MB / 1.237 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01951/16.78, allocations: 7.563 MB / 6.03 GB, free: 116.2 MB / 1.237 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02625/16.8, allocations: 10.95 MB / 6.041 GB, free: 111.1 MB / 1.237 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006324/16.81, allocations: 1.175 MB / 6.042 GB, free: 110.5 MB / 1.237 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002963/16.81, allocations: 35.19 kB / 6.042 GB, free: 110.5 MB / 1.237 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007639/16.82, allocations: 396.9 kB / 6.043 GB, free: 110.4 MB / 1.237 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001086/16.82, allocations: 163.4 kB / 6.043 GB, free: 110.4 MB / 1.237 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00102/16.82, allocations: 125 kB / 6.043 GB, free: 110.4 MB / 1.237 GB Notification: Performance of sort global known variables: time 0.01073/16.83, allocations: 3.098 MB / 6.046 GB, free: 109.2 MB / 1.237 GB Notification: Performance of remove unused functions: time 0.02595/16.86, allocations: 3.46 MB / 6.049 GB, free: 108.3 MB / 1.237 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 18 (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,senRelHum.phi) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 12 (mAirGai.nextEvent,mAirGai.last,mAirGai.nextEventScaled,mAirGai.b,mAirGai.a,$whenCondition2,mWatGai.nextEvent,mWatGai.last,mWatGai.nextEventScaled,mWatGai.b,mWatGai.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 298 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008301/16.87, allocations: 3.089 MB / 6.052 GB, free: 107.2 MB / 1.237 GB Notification: Performance of simCode: created initialization part: time 0.01577/16.89, allocations: 6.909 MB / 6.059 GB, free: 102 MB / 1.237 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-05/16.89, allocations: 4 kB / 6.059 GB, free: 102 MB / 1.237 GB Notification: Performance of simCode: created simulation system equations: time 0.004727/16.89, allocations: 2.288 MB / 6.061 GB, free: 99.96 MB / 1.237 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01736/16.91, allocations: 2.634 MB / 6.064 GB, free: 98.18 MB / 1.237 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03952/16.95, allocations: 11.41 MB / 6.075 GB, free: 88.81 MB / 1.237 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008274/16.96, allocations: 4.963 MB / 6.08 GB, free: 85.02 MB / 1.237 GB Notification: Performance of SimCode: time 1.353e-06/16.96, allocations: 3.312 kB / 6.08 GB, free: 85.02 MB / 1.237 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe 2>&1)