Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow",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 8.1.4-maint.8.1.x/package.mo): time 1.589/1.589, allocations: 289.8 MB / 297.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001367/0.001367, allocations: 173.4 kB / 366.3 MB, free: 1.988 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.1 MB / 0.6256 GB, free: 7.434 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009728/0.0009727, allocations: 89.25 kB / 0.7395 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2944/0.2955, allocations: 122.4 MB / 0.8591 GB, free: 13.49 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7393/1.035, allocations: 116.3 MB / 0.9727 GB, free: 76.07 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.104/6.139, allocations: 2.368 GB / 3.34 GB, free: 127.5 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/6.139, allocations: 96.33 kB / 3.34 GB, free: 127.5 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1021 * Number of variables: 1021 Notification: Performance of Generate backend data structure: time 7.515/13.65, allocations: 2.065 GB / 5.406 GB, free: 115.2 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/13.65, allocations: 7 kB / 5.406 GB, free: 115.2 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/13.66, allocations: 1.275 MB / 5.407 GB, free: 114.8 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01822/13.68, allocations: 6.817 MB / 5.414 GB, free: 114.1 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002167/13.68, allocations: 124.7 kB / 5.414 GB, free: 114.1 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/13.68, allocations: 238.5 kB / 5.414 GB, free: 114.1 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009511/13.69, allocations: 4.655 MB / 5.419 GB, free: 114 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009282/13.7, allocations: 5.08 MB / 5.424 GB, free: 113.7 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001038/13.7, allocations: 14.2 kB / 5.424 GB, free: 113.7 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004401/13.7, allocations: 3.719 kB / 5.424 GB, free: 113.7 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001765/13.7, allocations: 199.6 kB / 5.424 GB, free: 113.7 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03666/13.74, allocations: 24.55 MB / 5.448 GB, free: 103.9 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004919/13.75, allocations: 3.685 MB / 5.451 GB, free: 103.6 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002443/13.75, allocations: 2.111 MB / 5.453 GB, free: 103.6 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/13.75, allocations: 1.092 MB / 5.455 GB, free: 102.4 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002574/13.75, allocations: 1.993 MB / 5.456 GB, free: 102.2 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=273): time 4.348e-06/13.75, allocations: 0 / 5.456 GB, free: 102.2 MB / 0.9948 GB Notification: Performance of matching and sorting (n=277): time 0.02652/13.78, allocations: 9.75 MB / 5.466 GB, free: 99.75 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/13.78, allocations: 188.2 kB / 5.466 GB, free: 99.55 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005945/13.78, allocations: 3.669 MB / 5.47 GB, free: 99.28 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007353/13.79, allocations: 31.2 kB / 5.47 GB, free: 99.25 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001681/13.79, allocations: 1.483 MB / 5.471 GB, free: 98.5 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001904/13.79, allocations: 0.9186 MB / 5.472 GB, free: 97.89 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/13.79, allocations: 0 / 5.472 GB, free: 97.89 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001808/13.79, allocations: 426.6 kB / 5.473 GB, free: 97.58 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/13.79, allocations: 1.48 MB / 5.474 GB, free: 97.57 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002355/13.79, allocations: 2.222 MB / 5.476 GB, free: 96.85 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003428/13.8, allocations: 2.066 MB / 5.478 GB, free: 96.8 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/13.8, allocations: 3.906 kB / 5.478 GB, free: 96.8 MB / 0.9948 GB Notification: Performance of matching and sorting (n=354) (initialization): time 0.007705/13.8, allocations: 4.21 MB / 5.482 GB, free: 96.47 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001139/13.81, allocations: 5.298 MB / 5.487 GB, free: 91.01 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/13.81, allocations: 10.59 kB / 5.487 GB, free: 91.01 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004488/13.81, allocations: 124.6 kB / 5.488 GB, free: 91 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002879/13.81, allocations: 0.6222 MB / 5.488 GB, free: 91 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/13.81, allocations: 2.609 MB / 5.491 GB, free: 89.14 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006292/13.82, allocations: 401.2 kB / 5.491 GB, free: 89.11 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004425/13.82, allocations: 117.6 kB / 5.491 GB, free: 89.11 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/13.82, allocations: 3.031 kB / 5.491 GB, free: 89.11 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006539/13.83, allocations: 3.765 MB / 5.495 GB, free: 89.02 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/13.83, allocations: 11.16 kB / 5.495 GB, free: 89.02 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003765/13.83, allocations: 123 kB / 5.495 GB, free: 89.01 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002643/13.83, allocations: 0.6256 MB / 5.496 GB, free: 89.01 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001934/13.83, allocations: 1.984 MB / 5.498 GB, free: 87.73 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006246/13.84, allocations: 394.9 kB / 5.498 GB, free: 87.7 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005054/13.84, allocations: 114.1 kB / 5.498 GB, free: 87.7 MB / 0.9948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (337): * Single equations (assignments): 333 * 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.001297/13.84, allocations: 241.2 kB / 5.498 GB, free: 87.52 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001916/13.84, allocations: 414.7 kB / 5.499 GB, free: 87.31 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/13.85, allocations: 4.024 MB / 5.503 GB, free: 87.12 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.153e-05/13.85, allocations: 33.55 kB / 5.503 GB, free: 87.12 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.984e-05/13.85, allocations: 2.844 kB / 5.503 GB, free: 87.12 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00683/13.86, allocations: 3.392 MB / 5.506 GB, free: 86.86 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02482/13.88, allocations: 10.09 MB / 5.516 GB, free: 85.74 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/13.88, allocations: 2.969 kB / 5.516 GB, free: 85.74 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003077/13.89, allocations: 0.5938 MB / 5.516 GB, free: 85.74 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004055/13.89, allocations: 112.2 kB / 5.517 GB, free: 85.73 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003425/13.89, allocations: 50.28 kB / 5.517 GB, free: 85.73 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002315/13.89, allocations: 2.589 MB / 5.519 GB, free: 83.87 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/13.89, allocations: 7.781 kB / 5.519 GB, free: 83.87 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01107/13.9, allocations: 6.815 MB / 5.526 GB, free: 82.67 MB / 0.9948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01478/13.91, allocations: 9.799 MB / 5.535 GB, free: 81.08 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004322/13.92, allocations: 1.061 MB / 5.536 GB, free: 80.78 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001971/13.92, allocations: 37.89 kB / 5.536 GB, free: 80.78 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005778/13.93, allocations: 362.8 kB / 5.537 GB, free: 80.75 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003611/13.93, allocations: 140.2 kB / 5.537 GB, free: 80.75 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004662/13.93, allocations: 116.4 kB / 5.537 GB, free: 80.75 MB / 0.9948 GB Notification: Performance of sort global known variables: time 0.007702/13.94, allocations: 2.862 MB / 5.54 GB, free: 80.57 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.0189/13.95, allocations: 3.278 MB / 5.543 GB, free: 80.5 MB / 0.9948 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.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,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 (266): * Single equations (assignments): 258 * 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.006355/13.96, allocations: 3.016 MB / 5.546 GB, free: 79.51 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.01305/13.97, allocations: 5.979 MB / 5.552 GB, free: 79.09 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/13.97, allocations: 3.031 kB / 5.552 GB, free: 79.09 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.004763/13.98, allocations: 1.973 MB / 5.554 GB, free: 78.93 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01586/13.99, allocations: 2.527 MB / 5.556 GB, free: 78.86 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03272/14.03, allocations: 10.19 MB / 5.566 GB, free: 77.11 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006546/14.03, allocations: 4.451 MB / 5.57 GB, free: 76.28 MB / 0.9948 GB Notification: Performance of SimCode: time 1.513e-06/14.03, allocations: 0 / 5.57 GB, free: 76.28 MB / 0.9948 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe 2>&1)