Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.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.DryCoilCounterFlowMassFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.035/2.035, allocations: 387.2 MB / 394.5 MB, free: 4.516 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.00108/0.00108, allocations: 179.5 kB / 487 MB, free: 11.01 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.477/1.477, allocations: 221.3 MB / 0.7819 GB, free: 3.91 MB / 0.5496 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009748/0.0009746, allocations: 92.61 kB / 0.9213 GB, free: 5.004 MB / 0.6902 GB Notification: Performance of FrontEnd - loaded program: time 0.6037/0.6048, allocations: 148.5 MB / 1.066 GB, free: 141 MB / 0.7215 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.9251, allocations: 142.3 MB / 1.205 GB, free: 14.63 MB / 0.7371 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.545/6.47, allocations: 2.208 GB / 3.413 GB, free: 355.8 MB / 1.143 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/6.47, allocations: 85.83 kB / 3.413 GB, free: 355.8 MB / 1.143 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.202/13.67, allocations: 2.096 GB / 5.509 GB, free: 148.8 MB / 1.221 GB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/13.67, allocations: 12.64 kB / 5.509 GB, free: 148.8 MB / 1.221 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01105/13.68, allocations: 1.276 MB / 5.511 GB, free: 148.2 MB / 1.221 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02427/13.71, allocations: 6.914 MB / 5.517 GB, free: 143.9 MB / 1.221 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004584/13.71, allocations: 124.1 kB / 5.517 GB, free: 143.9 MB / 1.221 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002399/13.71, allocations: 241.4 kB / 5.518 GB, free: 143.9 MB / 1.221 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01345/13.72, allocations: 4.647 MB / 5.522 GB, free: 139.7 MB / 1.221 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01644/13.74, allocations: 5.095 MB / 5.527 GB, free: 134.5 MB / 1.221 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002451/13.74, allocations: 15.89 kB / 5.527 GB, free: 134.5 MB / 1.221 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00143/13.74, allocations: 8 kB / 5.527 GB, free: 134.5 MB / 1.221 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001928/13.74, allocations: 199.6 kB / 5.527 GB, free: 134.3 MB / 1.221 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04833/13.79, allocations: 25.17 MB / 5.552 GB, free: 108.1 MB / 1.221 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003309/13.79, allocations: 2.052 MB / 5.554 GB, free: 106.1 MB / 1.221 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002754/13.8, allocations: 2.113 MB / 5.556 GB, free: 103.9 MB / 1.221 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001184/13.8, allocations: 1.086 MB / 5.557 GB, free: 102.6 MB / 1.221 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002686/13.8, allocations: 2.018 MB / 5.559 GB, free: 100.6 MB / 1.221 GB Notification: Performance of pre-optimization done (n=273): time 5.75e-06/13.8, allocations: 0 / 5.559 GB, free: 100.6 MB / 1.221 GB Notification: Performance of matching and sorting (n=277): time 0.0284/13.83, allocations: 9.801 MB / 5.569 GB, free: 90.58 MB / 1.221 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.474e-05/13.83, allocations: 188.3 kB / 5.569 GB, free: 90.36 MB / 1.221 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007155/13.84, allocations: 3.7 MB / 5.572 GB, free: 86.64 MB / 1.221 GB Notification: Performance of collectPreVariables (initialization): time 0.0008365/13.84, allocations: 37.77 kB / 5.572 GB, free: 86.6 MB / 1.221 GB Notification: Performance of collectInitialEqns (initialization): time 0.001679/13.84, allocations: 1.474 MB / 5.574 GB, free: 85.11 MB / 1.221 GB Notification: Performance of collectInitialBindings (initialization): time 0.002025/13.84, allocations: 0.9239 MB / 5.575 GB, free: 84.17 MB / 1.221 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/13.84, allocations: 0 / 5.575 GB, free: 84.17 MB / 1.221 GB Notification: Performance of setup shared object (initialization): time 0.0001673/13.84, allocations: 415.7 kB / 5.575 GB, free: 83.76 MB / 1.221 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001918/13.84, allocations: 1.493 MB / 5.577 GB, free: 82.26 MB / 1.221 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002142/13.85, allocations: 2.142 MB / 5.579 GB, free: 79.88 MB / 1.221 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00318/13.85, allocations: 2.061 MB / 5.581 GB, free: 77.8 MB / 1.221 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/13.85, allocations: 0 / 5.581 GB, free: 77.8 MB / 1.221 GB Notification: Performance of matching and sorting (n=354) (initialization): time 0.007236/13.86, allocations: 4.241 MB / 5.585 GB, free: 73.52 MB / 1.221 GB Notification: Performance of prepare postOptimizeDAE: time 0.001045/13.86, allocations: 5.295 MB / 5.59 GB, free: 67.9 MB / 1.221 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/13.86, allocations: 12 kB / 5.59 GB, free: 67.89 MB / 1.221 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004258/13.86, allocations: 128.1 kB / 5.59 GB, free: 67.76 MB / 1.221 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/13.86, allocations: 0.6162 MB / 5.591 GB, free: 67.14 MB / 1.221 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/13.86, allocations: 2.608 MB / 5.593 GB, free: 64.41 MB / 1.221 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006033/13.87, allocations: 423 kB / 5.594 GB, free: 63.99 MB / 1.221 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004011/13.87, allocations: 116 kB / 5.594 GB, free: 63.88 MB / 1.221 GB Notification: Performance of prepare postOptimizeDAE: time 9.317e-06/13.87, allocations: 4 kB / 5.594 GB, free: 63.88 MB / 1.221 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006818/13.88, allocations: 3.79 MB / 5.598 GB, free: 60.05 MB / 1.221 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.962e-05/13.88, allocations: 12 kB / 5.598 GB, free: 60.04 MB / 1.221 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003888/13.88, allocations: 121.4 kB / 5.598 GB, free: 59.92 MB / 1.221 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002596/13.88, allocations: 0.6003 MB / 5.598 GB, free: 59.32 MB / 1.221 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/13.88, allocations: 1.993 MB / 5.6 GB, free: 57.21 MB / 1.221 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006751/13.89, allocations: 415 kB / 5.601 GB, free: 56.81 MB / 1.221 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007306/13.89, allocations: 116 kB / 5.601 GB, free: 56.7 MB / 1.221 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.00143/13.89, allocations: 243.5 kB / 5.601 GB, free: 56.44 MB / 1.221 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001863/13.89, allocations: 415 kB / 5.601 GB, free: 56.03 MB / 1.221 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009136/13.9, allocations: 4.04 MB / 5.605 GB, free: 51.94 MB / 1.221 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.622e-05/13.9, allocations: 32 kB / 5.605 GB, free: 51.91 MB / 1.221 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.947e-05/13.9, allocations: 3.984 kB / 5.605 GB, free: 51.9 MB / 1.221 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005646/13.91, allocations: 3.403 MB / 5.609 GB, free: 48.43 MB / 1.221 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02232/13.93, allocations: 10.02 MB / 5.618 GB, free: 38.29 MB / 1.221 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/13.93, allocations: 4 kB / 5.618 GB, free: 38.29 MB / 1.221 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00294/13.93, allocations: 0.5934 MB / 5.619 GB, free: 37.7 MB / 1.221 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003806/13.93, allocations: 104.8 kB / 5.619 GB, free: 37.59 MB / 1.221 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003212/13.93, allocations: 54.06 kB / 5.619 GB, free: 37.54 MB / 1.221 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00215/13.93, allocations: 2.588 MB / 5.622 GB, free: 34.82 MB / 1.221 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.842e-06/13.93, allocations: 7.938 kB / 5.622 GB, free: 34.81 MB / 1.221 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01022/13.95, allocations: 6.513 MB / 5.628 GB, free: 28.03 MB / 1.221 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01321/13.96, allocations: 9.491 MB / 5.637 GB, free: 18.25 MB / 1.221 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004035/13.96, allocations: 1.074 MB / 5.638 GB, free: 17.16 MB / 1.221 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002133/13.96, allocations: 35.97 kB / 5.638 GB, free: 17.12 MB / 1.221 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005646/13.97, allocations: 371.1 kB / 5.639 GB, free: 16.76 MB / 1.221 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003806/13.97, allocations: 149.7 kB / 5.639 GB, free: 16.61 MB / 1.221 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004087/13.97, allocations: 111.9 kB / 5.639 GB, free: 16.5 MB / 1.221 GB Notification: Performance of sort global known variables: time 0.007355/13.98, allocations: 2.887 MB / 5.642 GB, free: 13.6 MB / 1.221 GB Notification: Performance of remove unused functions: time 0.01748/14, allocations: 3.265 MB / 5.645 GB, free: 10.34 MB / 1.221 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 (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.005452/14, allocations: 3.008 MB / 5.648 GB, free: 7.52 MB / 1.221 GB Notification: Performance of simCode: created initialization part: time 0.0109/14.01, allocations: 6.007 MB / 5.654 GB, free: 1.445 MB / 1.221 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/14.01, allocations: 4 kB / 5.654 GB, free: 1.441 MB / 1.221 GB Notification: Performance of simCode: created simulation system equations: time 0.8536/14.87, allocations: 1.989 MB / 5.656 GB, free: 172.7 MB / 1.221 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01418/14.88, allocations: 2.51 MB / 5.658 GB, free: 172.7 MB / 1.221 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0259/14.91, allocations: 10.28 MB / 5.668 GB, free: 171 MB / 1.221 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006313/14.91, allocations: 4.467 MB / 5.673 GB, free: 170.1 MB / 1.221 GB Notification: Performance of SimCode: time 1.122e-06/14.91, allocations: 4.078 kB / 5.673 GB, free: 170.1 MB / 1.221 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe 2>&1)