Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.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.DryCoilCounterFlowMassFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.294/2.294, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.002062/0.002062, allocations: 173.3 kB / 490.8 MB, free: 2.008 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.634/1.634, allocations: 221.3 MB / 0.7863 GB, free: 13.71 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.001146/0.001147, allocations: 99.97 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7292/0.7304, allocations: 149.1 MB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/1.041, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.614/6.656, allocations: 2.208 GB / 3.42 GB, free: 100.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/6.656, allocations: 91.89 kB / 3.42 GB, free: 100.4 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: 1021 * Number of variables: 1021 Notification: Performance of Generate backend data structure: time 8.265/14.92, allocations: 2.096 GB / 5.516 GB, free: 187.2 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 6.047e-05/14.92, allocations: 8.812 kB / 5.516 GB, free: 187.2 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01259/14.93, allocations: 1.285 MB / 5.518 GB, free: 186.9 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02816/14.96, allocations: 6.918 MB / 5.524 GB, free: 186 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005185/14.96, allocations: 125.6 kB / 5.525 GB, free: 186 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002774/14.97, allocations: 240.8 kB / 5.525 GB, free: 186 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01716/14.98, allocations: 4.644 MB / 5.529 GB, free: 186 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/15, allocations: 5.102 MB / 5.534 GB, free: 185.7 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004342/15.01, allocations: 5.719 kB / 5.534 GB, free: 185.7 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002149/15.01, allocations: 6.844 kB / 5.534 GB, free: 185.7 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004116/15.01, allocations: 194.8 kB / 5.534 GB, free: 185.7 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0604/15.07, allocations: 25.19 MB / 5.559 GB, free: 171.2 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004555/15.07, allocations: 2.056 MB / 5.561 GB, free: 170.5 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004911/15.08, allocations: 2.118 MB / 5.563 GB, free: 169.8 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001755/15.08, allocations: 1.087 MB / 5.564 GB, free: 168.6 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005337/15.09, allocations: 2.009 MB / 5.566 GB, free: 167.9 MB / 1.198 GB Notification: Performance of pre-optimization done (n=273): time 2.022e-05/15.09, allocations: 0 / 5.566 GB, free: 167.9 MB / 1.198 GB Notification: Performance of matching and sorting (n=277): time 0.04107/15.13, allocations: 9.797 MB / 5.576 GB, free: 163.3 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/15.13, allocations: 189.4 kB / 5.576 GB, free: 163.1 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/15.14, allocations: 3.705 MB / 5.58 GB, free: 159.9 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001092/15.14, allocations: 33.7 kB / 5.58 GB, free: 159.9 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.003064/15.14, allocations: 1.48 MB / 5.581 GB, free: 158.6 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.002815/15.14, allocations: 0.9092 MB / 5.582 GB, free: 157.8 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005809/15.15, allocations: 0 / 5.582 GB, free: 157.8 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0003879/15.15, allocations: 422.2 kB / 5.582 GB, free: 157.4 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003104/15.15, allocations: 1.493 MB / 5.584 GB, free: 156.1 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00378/15.15, allocations: 2.138 MB / 5.586 GB, free: 153.9 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004827/15.16, allocations: 2.068 MB / 5.588 GB, free: 152.2 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.736e-05/15.16, allocations: 4 kB / 5.588 GB, free: 152.2 MB / 1.198 GB Notification: Performance of matching and sorting (n=354) (initialization): time 0.01038/15.17, allocations: 4.235 MB / 5.592 GB, free: 148.5 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001324/15.17, allocations: 5.301 MB / 5.597 GB, free: 143 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.873e-05/15.17, allocations: 12 kB / 5.597 GB, free: 142.9 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005157/15.17, allocations: 124.6 kB / 5.597 GB, free: 142.8 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003185/15.17, allocations: 0.605 MB / 5.598 GB, free: 142.3 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/15.18, allocations: 2.619 MB / 5.6 GB, free: 139.7 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007107/15.18, allocations: 423 kB / 5.601 GB, free: 139.5 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008527/15.18, allocations: 122.4 kB / 5.601 GB, free: 139.4 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/15.18, allocations: 4 kB / 5.601 GB, free: 139.4 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009446/15.19, allocations: 3.783 MB / 5.605 GB, free: 136.1 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.535e-05/15.19, allocations: 12 kB / 5.605 GB, free: 136.1 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004323/15.19, allocations: 129.4 kB / 5.605 GB, free: 136 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003483/15.2, allocations: 0.5997 MB / 5.605 GB, free: 135.4 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002956/15.2, allocations: 1.989 MB / 5.607 GB, free: 133.4 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009542/15.21, allocations: 412.9 kB / 5.608 GB, free: 133 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001256/15.21, allocations: 116 kB / 5.608 GB, free: 132.9 MB / 1.198 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.002387/15.21, allocations: 231 kB / 5.608 GB, free: 132.6 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002887/15.22, allocations: 419 kB / 5.608 GB, free: 132.2 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01638/15.23, allocations: 4.052 MB / 5.612 GB, free: 128.1 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.727e-05/15.23, allocations: 31.98 kB / 5.612 GB, free: 128.1 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.069e-05/15.23, allocations: 4 kB / 5.612 GB, free: 128.1 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01015/15.24, allocations: 3.401 MB / 5.616 GB, free: 124.6 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03656/15.28, allocations: 10.01 MB / 5.626 GB, free: 114.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.813e-05/15.28, allocations: 4 kB / 5.626 GB, free: 114.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005168/15.28, allocations: 0.5877 MB / 5.626 GB, free: 113.9 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005972/15.29, allocations: 111.8 kB / 5.626 GB, free: 113.8 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008854/15.29, allocations: 51.95 kB / 5.626 GB, free: 113.8 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003226/15.29, allocations: 2.588 MB / 5.629 GB, free: 111 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-05/15.29, allocations: 7.938 kB / 5.629 GB, free: 111 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01762/15.31, allocations: 6.512 MB / 5.635 GB, free: 104.3 MB / 1.198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02202/15.33, allocations: 9.5 MB / 5.644 GB, free: 94.5 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006957/15.34, allocations: 1.061 MB / 5.645 GB, free: 93.41 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003385/15.34, allocations: 43.88 kB / 5.646 GB, free: 93.37 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009113/15.35, allocations: 370.3 kB / 5.646 GB, free: 93.04 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001086/15.35, allocations: 139.7 kB / 5.646 GB, free: 92.9 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001063/15.35, allocations: 111.9 kB / 5.646 GB, free: 92.79 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.01002/15.36, allocations: 2.887 MB / 5.649 GB, free: 89.89 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.02745/15.39, allocations: 3.263 MB / 5.652 GB, free: 86.63 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 (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.008663/15.4, allocations: 3.021 MB / 5.655 GB, free: 84.06 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01626/15.41, allocations: 6.014 MB / 5.661 GB, free: 77.99 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.909e-05/15.41, allocations: 0 / 5.661 GB, free: 77.99 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.004836/15.42, allocations: 1.987 MB / 5.663 GB, free: 75.98 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02439/15.44, allocations: 2.515 MB / 5.665 GB, free: 73.69 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05227/15.5, allocations: 10.27 MB / 5.675 GB, free: 63.53 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01572/15.51, allocations: 4.468 MB / 5.68 GB, free: 59.02 MB / 1.198 GB Notification: Performance of SimCode: time 1.653e-06/15.51, allocations: 0 / 5.68 GB, free: 59.02 MB / 1.198 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe 2>&1)