Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.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.WetCoilCounterFlowMassFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.119/2.119, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.001183/0.001183, allocations: 181.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.53/1.53, allocations: 221.3 MB / 0.7819 GB, free: 1.352 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.001056/0.001056, allocations: 94.23 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6999/0.701, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.9995, allocations: 142.3 MB / 1.205 GB, free: 26.13 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.704/5.704, allocations: 2.215 GB / 3.421 GB, free: 84.25 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/5.704, allocations: 95.72 kB / 3.421 GB, free: 84.16 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: 1189 * Number of variables: 1189 Notification: Performance of Generate backend data structure: time 9.172/14.88, allocations: 2.47 GB / 5.891 GB, free: 161.7 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/14.88, allocations: 13.48 kB / 5.891 GB, free: 161.7 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/14.89, allocations: 1.446 MB / 5.892 GB, free: 161.3 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02698/14.91, allocations: 7.302 MB / 5.899 GB, free: 160.4 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004222/14.92, allocations: 150.1 kB / 5.899 GB, free: 160.4 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002633/14.92, allocations: 278 kB / 5.9 GB, free: 160.4 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01545/14.93, allocations: 5.391 MB / 5.905 GB, free: 160.4 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/14.95, allocations: 5.855 MB / 5.911 GB, free: 160 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003409/14.95, allocations: 3.719 kB / 5.911 GB, free: 160 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002079/14.96, allocations: 7.5 kB / 5.911 GB, free: 160 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000282/14.96, allocations: 219.6 kB / 5.911 GB, free: 160 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0555/15.01, allocations: 27.67 MB / 5.938 GB, free: 149.7 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004594/15.02, allocations: 2.496 MB / 5.94 GB, free: 149.6 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004023/15.02, allocations: 2.436 MB / 5.943 GB, free: 149.6 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001329/15.02, allocations: 1.093 MB / 5.944 GB, free: 148.5 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004697/15.03, allocations: 2.328 MB / 5.946 GB, free: 148.3 MB / 1.198 GB Notification: Performance of pre-optimization done (n=313): time 1.122e-05/15.03, allocations: 0 / 5.946 GB, free: 148.3 MB / 1.198 GB Notification: Performance of matching and sorting (n=317): time 0.03824/15.07, allocations: 11.19 MB / 5.957 GB, free: 145.5 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.42e-05/15.07, allocations: 192.8 kB / 5.957 GB, free: 145.3 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01029/15.08, allocations: 3.981 MB / 5.961 GB, free: 145.1 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001058/15.08, allocations: 37.39 kB / 5.961 GB, free: 145 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.003128/15.08, allocations: 1.674 MB / 5.963 GB, free: 144.2 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.00322/15.08, allocations: 1.048 MB / 5.964 GB, free: 143.5 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008673/15.08, allocations: 0 / 5.964 GB, free: 143.5 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0005556/15.08, allocations: 434.7 kB / 5.964 GB, free: 143.2 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00318/15.09, allocations: 1.74 MB / 5.966 GB, free: 143.1 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003354/15.09, allocations: 2.458 MB / 5.968 GB, free: 142.4 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004353/15.1, allocations: 2.357 MB / 5.97 GB, free: 142.4 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/15.1, allocations: 6.031 kB / 5.97 GB, free: 142.4 MB / 1.198 GB Notification: Performance of matching and sorting (n=398) (initialization): time 0.009271/15.11, allocations: 4.839 MB / 5.975 GB, free: 142.1 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001223/15.11, allocations: 5.765 MB / 5.981 GB, free: 136.2 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/15.11, allocations: 16.97 kB / 5.981 GB, free: 136.2 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004719/15.11, allocations: 128.2 kB / 5.981 GB, free: 136.2 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003781/15.11, allocations: 0.6924 MB / 5.982 GB, free: 136.2 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/15.11, allocations: 2.618 MB / 5.984 GB, free: 134.3 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006788/15.12, allocations: 460.2 kB / 5.985 GB, free: 134.3 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008493/15.12, allocations: 125 kB / 5.985 GB, free: 134.3 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/15.12, allocations: 6.562 kB / 5.985 GB, free: 134.3 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008133/15.13, allocations: 4.348 MB / 5.989 GB, free: 134.2 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.888e-05/15.13, allocations: 18.62 kB / 5.989 GB, free: 134.2 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003761/15.13, allocations: 120 kB / 5.989 GB, free: 134.2 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/15.13, allocations: 0.6825 MB / 5.99 GB, free: 134.2 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/15.13, allocations: 1.994 MB / 5.992 GB, free: 132.9 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007005/15.14, allocations: 441 kB / 5.992 GB, free: 132.9 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005291/15.14, allocations: 129 kB / 5.992 GB, free: 132.9 MB / 1.198 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.001086/15.14, allocations: 244.8 kB / 5.993 GB, free: 132.7 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001545/15.14, allocations: 453.1 kB / 5.993 GB, free: 132.5 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008789/15.15, allocations: 4.688 MB / 5.998 GB, free: 132.3 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.321e-05/15.15, allocations: 32.11 kB / 5.998 GB, free: 132.3 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/15.15, allocations: 5.531 kB / 5.998 GB, free: 132.3 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006896/15.16, allocations: 3.939 MB / 6.001 GB, free: 132 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03215/15.19, allocations: 11.35 MB / 6.013 GB, free: 128.4 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/15.19, allocations: 3.156 kB / 6.013 GB, free: 128.4 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003543/15.2, allocations: 0.6641 MB / 6.013 GB, free: 128.4 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003947/15.2, allocations: 109.3 kB / 6.013 GB, free: 128.3 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003331/15.2, allocations: 62.12 kB / 6.013 GB, free: 128.3 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002212/15.2, allocations: 2.577 MB / 6.016 GB, free: 126.1 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/15.2, allocations: 4.531 kB / 6.016 GB, free: 126.1 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01274/15.21, allocations: 7.546 MB / 6.023 GB, free: 122.7 MB / 1.198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01584/15.23, allocations: 10.96 MB / 6.034 GB, free: 117.7 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004704/15.23, allocations: 1.171 MB / 6.035 GB, free: 117 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002144/15.23, allocations: 36.7 kB / 6.035 GB, free: 117 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006267/15.24, allocations: 399.2 kB / 6.035 GB, free: 117 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004296/15.24, allocations: 161 kB / 6.036 GB, free: 116.9 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004329/15.24, allocations: 122.8 kB / 6.036 GB, free: 116.9 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.00687/15.25, allocations: 3.095 MB / 6.039 GB, free: 115.8 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.01918/15.27, allocations: 3.464 MB / 6.042 GB, free: 114.8 MB / 1.198 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.006417/15.27, allocations: 3.101 MB / 6.045 GB, free: 113.7 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01414/15.29, allocations: 6.901 MB / 6.052 GB, free: 111.2 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 2.065e-05/15.29, allocations: 2.812 kB / 6.052 GB, free: 111.2 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.004333/15.29, allocations: 2.286 MB / 6.054 GB, free: 110.1 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0148/15.31, allocations: 2.631 MB / 6.057 GB, free: 108.3 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02764/15.34, allocations: 11.41 MB / 6.068 GB, free: 98.91 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007784/15.34, allocations: 4.961 MB / 6.073 GB, free: 95.12 MB / 1.198 GB Notification: Performance of SimCode: time 1.513e-06/15.34, allocations: 0 / 6.073 GB, free: 95.12 MB / 1.198 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe 2>&1)