Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow",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/BuildingSystems 2.0.0-master/package.mo): time 0.7339/0.7339, allocations: 141.8 MB / 149.1 MB, free: 1.539 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 181.3 kB / 181.9 MB, free: 0.9648 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 221.3 MB / 436 MB, free: 5.68 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009328/0.0009327, allocations: 96.59 kB / 0.507 GB, free: 2.352 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001715/0.001715, allocations: 272.8 kB / 0.5884 GB, free: 47.44 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4157/0.4174, allocations: 89.63 MB / 0.676 GB, free: 59.68 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.5779, allocations: 82.78 MB / 0.7568 GB, free: 0.7969 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.052/4.63, allocations: 2.154 GB / 2.911 GB, free: 151.1 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/4.63, allocations: 91.88 kB / 2.911 GB, free: 151 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 2.816/7.446, allocations: 0.9277 GB / 3.839 GB, free: 29.27 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/7.446, allocations: 13 kB / 3.839 GB, free: 29.26 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003377/7.45, allocations: 0.564 MB / 3.84 GB, free: 28.69 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00313/7.453, allocations: 1.25 MB / 3.841 GB, free: 27.39 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000607/7.453, allocations: 189.9 kB / 3.841 GB, free: 27.2 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/7.454, allocations: 60 kB / 3.841 GB, free: 27.14 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001492/7.455, allocations: 0.9372 MB / 3.842 GB, free: 26.21 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/7.457, allocations: 1.047 MB / 3.843 GB, free: 25.13 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/7.457, allocations: 4 kB / 3.843 GB, free: 25.13 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/7.457, allocations: 0 / 3.843 GB, free: 25.13 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.725e-05/7.457, allocations: 41.98 kB / 3.843 GB, free: 25.09 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007886/7.465, allocations: 4.914 MB / 3.848 GB, free: 19.89 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/7.466, allocations: 0.835 MB / 3.849 GB, free: 19.03 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005295/7.466, allocations: 455.3 kB / 3.849 GB, free: 18.58 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009627/7.467, allocations: 0.8462 MB / 3.85 GB, free: 17.57 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006951/7.468, allocations: 0.6187 MB / 3.851 GB, free: 16.92 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=85): time 2.825e-06/7.468, allocations: 0 / 3.851 GB, free: 16.92 MB / 0.7138 GB Notification: Performance of matching and sorting (n=85): time 0.002505/7.47, allocations: 1.094 MB / 3.852 GB, free: 15.82 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/7.471, allocations: 141.2 kB / 3.852 GB, free: 15.65 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008258/7.471, allocations: 0.7459 MB / 3.853 GB, free: 14.89 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 9.072e-05/7.471, allocations: 25.73 kB / 3.853 GB, free: 14.86 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/7.472, allocations: 384.3 kB / 3.853 GB, free: 14.47 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.000162/7.472, allocations: 271.9 kB / 3.853 GB, free: 14.2 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.273e-05/7.472, allocations: 0 / 3.853 GB, free: 14.2 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 6.55e-05/7.472, allocations: 345.9 kB / 3.854 GB, free: 13.86 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000527/7.473, allocations: 393.8 kB / 3.854 GB, free: 13.47 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006423/7.473, allocations: 0.5927 MB / 3.854 GB, free: 12.8 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/7.475, allocations: 0.5724 MB / 3.855 GB, free: 12.22 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/7.475, allocations: 0 / 3.855 GB, free: 12.22 MB / 0.7138 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002464/7.477, allocations: 1.239 MB / 3.856 GB, free: 10.98 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.000191/7.477, allocations: 1.14 MB / 3.857 GB, free: 9.754 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/7.477, allocations: 4 kB / 3.857 GB, free: 9.75 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/7.477, allocations: 8 kB / 3.857 GB, free: 9.742 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/7.479, allocations: 275.6 kB / 3.858 GB, free: 9.473 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/7.479, allocations: 15.94 kB / 3.858 GB, free: 9.457 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/7.48, allocations: 191 kB / 3.858 GB, free: 9.27 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/7.48, allocations: 51.91 kB / 3.858 GB, free: 9.219 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 8.395e-06/7.48, allocations: 4 kB / 3.858 GB, free: 9.215 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002262/7.483, allocations: 1.094 MB / 3.859 GB, free: 8.121 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.433e-06/7.483, allocations: 4 kB / 3.859 GB, free: 8.117 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.639e-06/7.483, allocations: 8 kB / 3.859 GB, free: 8.109 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/7.484, allocations: 272 kB / 3.859 GB, free: 7.844 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/7.484, allocations: 15.94 kB / 3.859 GB, free: 7.828 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/7.486, allocations: 175.2 kB / 3.859 GB, free: 7.656 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/7.486, allocations: 51.88 kB / 3.859 GB, free: 7.605 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 16 ($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,hex.flowRegime,hex.flowRegime_nominal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00027/7.486, allocations: 200.1 kB / 3.86 GB, free: 7.391 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/7.486, allocations: 122.6 kB / 3.86 GB, free: 7.27 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002677/7.489, allocations: 1.259 MB / 3.861 GB, free: 6.004 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/7.489, allocations: 12 kB / 3.861 GB, free: 5.992 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/7.489, allocations: 0 / 3.861 GB, free: 5.992 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/7.489, allocations: 7.984 kB / 3.861 GB, free: 5.984 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004383/7.493, allocations: 2.679 MB / 3.864 GB, free: 3.219 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/7.493, allocations: 4 kB / 3.864 GB, free: 3.215 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/7.494, allocations: 212.1 kB / 3.864 GB, free: 3.008 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/7.494, allocations: 11.94 kB / 3.864 GB, free: 2.996 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.017e-05/7.494, allocations: 24.06 kB / 3.864 GB, free: 2.973 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/7.495, allocations: 8 kB / 3.864 GB, free: 2.965 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/7.495, allocations: 11.94 kB / 3.864 GB, free: 2.953 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003006/7.498, allocations: 2.101 MB / 3.866 GB, free: 0.7227 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0048/7.502, allocations: 3.212 MB / 3.869 GB, free: 13.38 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007883/7.503, allocations: 351.2 kB / 3.869 GB, free: 13.02 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/7.503, allocations: 12 kB / 3.869 GB, free: 13 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/7.505, allocations: 135.9 kB / 3.87 GB, free: 12.87 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/7.505, allocations: 60.48 kB / 3.87 GB, free: 12.81 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/7.505, allocations: 47.97 kB / 3.87 GB, free: 12.77 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.0009223/7.506, allocations: 0.5615 MB / 3.87 GB, free: 12.2 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.005338/7.511, allocations: 1.514 MB / 3.872 GB, free: 10.68 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 (senRelHum.phi) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled,hex.flowRegime) * 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 (83): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003528/7.515, allocations: 2.438 MB / 3.874 GB, free: 8.152 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.002785/7.518, allocations: 1.679 MB / 3.876 GB, free: 6.449 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/7.518, allocations: 0 / 3.876 GB, free: 6.449 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008093/7.518, allocations: 0.6051 MB / 3.876 GB, free: 5.828 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/7.521, allocations: 416.1 kB / 3.877 GB, free: 5.422 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/7.525, allocations: 1.83 MB / 3.878 GB, free: 3.516 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/7.526, allocations: 1.321 MB / 3.88 GB, free: 2.168 MB / 0.7294 GB Notification: Performance of SimCode: time 8.22e-07/7.526, allocations: 0 / 3.88 GB, free: 2.168 MB / 0.7294 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe 2>&1)