Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.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.DryCoilEffectivenessNTUPControl,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUPControl",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.7205/0.7205, allocations: 141.8 MB / 149.1 MB, free: 10.83 MB / 139.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 184.5 kB / 181.9 MB, free: 7.68 MB / 155.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 221.4 MB / 436 MB, free: 15.83 MB / 347.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009544/0.0009544, allocations: 93.34 kB / 0.507 GB, free: 8.93 MB / 395.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001754/0.001754, allocations: 292.6 kB / 0.5885 GB, free: 5.73 MB / 475.1 MB Notification: Performance of FrontEnd - loaded program: time 0.4149/0.4167, allocations: 89.62 MB / 0.676 GB, free: 167.4 MB / 0.5421 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.5725, allocations: 82.8 MB / 0.7568 GB, free: 115.2 MB / 0.5421 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.145/4.717, allocations: 2.145 GB / 2.902 GB, free: 61.94 MB / 0.6984 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/4.718, allocations: 93.06 kB / 2.902 GB, free: 61.9 MB / 0.6984 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 3.29/8.008, allocations: 0.957 GB / 3.859 GB, free: 99.13 MB / 0.7296 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/8.008, allocations: 8.031 kB / 3.859 GB, free: 99.13 MB / 0.7296 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003661/8.012, allocations: 0.585 MB / 3.86 GB, free: 99.03 MB / 0.7296 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004235/8.016, allocations: 1.384 MB / 3.861 GB, free: 98.64 MB / 0.7296 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006481/8.016, allocations: 185.3 kB / 3.862 GB, free: 98.64 MB / 0.7296 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003872/8.017, allocations: 72.72 kB / 3.862 GB, free: 98.64 MB / 0.7296 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001988/8.019, allocations: 0.972 MB / 3.863 GB, free: 98.64 MB / 0.7296 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/8.021, allocations: 1.085 MB / 3.864 GB, free: 98.5 MB / 0.7296 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.805e-05/8.021, allocations: 4.734 kB / 3.864 GB, free: 98.5 MB / 0.7296 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001211/8.021, allocations: 3.75 kB / 3.864 GB, free: 98.5 MB / 0.7296 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.426e-05/8.021, allocations: 42.83 kB / 3.864 GB, free: 98.49 MB / 0.7296 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009769/8.031, allocations: 5.252 MB / 3.869 GB, free: 96.5 MB / 0.7296 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/8.032, allocations: 0.7848 MB / 3.87 GB, free: 96.47 MB / 0.7296 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005793/8.033, allocations: 417.8 kB / 3.87 GB, free: 96.46 MB / 0.7296 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009896/8.034, allocations: 0.8405 MB / 3.871 GB, free: 95.62 MB / 0.7296 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007877/8.035, allocations: 0.4986 MB / 3.871 GB, free: 95.56 MB / 0.7296 GB Notification: Performance of pre-optimization done (n=83): time 3.787e-06/8.035, allocations: 0 / 3.871 GB, free: 95.56 MB / 0.7296 GB Notification: Performance of matching and sorting (n=83): time 0.002735/8.037, allocations: 1.018 MB / 3.872 GB, free: 95.44 MB / 0.7296 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/8.038, allocations: 113.9 kB / 3.872 GB, free: 95.32 MB / 0.7296 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/8.039, allocations: 0.9064 MB / 3.873 GB, free: 95.16 MB / 0.7296 GB Notification: Performance of collectPreVariables (initialization): time 0.0001689/8.039, allocations: 29.33 kB / 3.873 GB, free: 95.12 MB / 0.7296 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003869/8.04, allocations: 462.7 kB / 3.874 GB, free: 94.86 MB / 0.7296 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/8.04, allocations: 270.1 kB / 3.874 GB, free: 94.69 MB / 0.7296 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.104e-05/8.04, allocations: 0 / 3.874 GB, free: 94.69 MB / 0.7296 GB Notification: Performance of setup shared object (initialization): time 9.141e-05/8.04, allocations: 347.7 kB / 3.874 GB, free: 94.38 MB / 0.7296 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006259/8.041, allocations: 388.4 kB / 3.875 GB, free: 94.38 MB / 0.7296 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000848/8.042, allocations: 0.6913 MB / 3.875 GB, free: 94.06 MB / 0.7296 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/8.043, allocations: 0.5136 MB / 3.876 GB, free: 94.05 MB / 0.7296 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/8.043, allocations: 2.906 kB / 3.876 GB, free: 94.05 MB / 0.7296 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002531/8.045, allocations: 1.225 MB / 3.877 GB, free: 93.93 MB / 0.7296 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005048/8.046, allocations: 2.032 MB / 3.879 GB, free: 91.83 MB / 0.7296 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/8.046, allocations: 7.031 kB / 3.879 GB, free: 91.83 MB / 0.7296 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.625e-05/8.046, allocations: 11.94 kB / 3.879 GB, free: 91.83 MB / 0.7296 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/8.048, allocations: 367.5 kB / 3.879 GB, free: 91.82 MB / 0.7296 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007097/8.049, allocations: 1.216 MB / 3.881 GB, free: 90.66 MB / 0.7296 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/8.051, allocations: 210 kB / 3.881 GB, free: 90.61 MB / 0.7296 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/8.051, allocations: 59.38 kB / 3.881 GB, free: 90.61 MB / 0.7296 GB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/8.051, allocations: 3.938 kB / 3.881 GB, free: 90.61 MB / 0.7296 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002171/8.053, allocations: 1.044 MB / 3.882 GB, free: 90.59 MB / 0.7296 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/8.053, allocations: 8.969 kB / 3.882 GB, free: 90.59 MB / 0.7296 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/8.053, allocations: 14.25 kB / 3.882 GB, free: 90.59 MB / 0.7296 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/8.055, allocations: 342.8 kB / 3.882 GB, free: 90.59 MB / 0.7296 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.538e-05/8.055, allocations: 16.25 kB / 3.882 GB, free: 90.59 MB / 0.7296 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/8.056, allocations: 188.5 kB / 3.882 GB, free: 90.55 MB / 0.7296 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/8.057, allocations: 56.02 kB / 3.882 GB, free: 90.55 MB / 0.7296 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,hex.flowRegime,hex.flowRegime_nominal,P.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003256/8.057, allocations: 135.9 kB / 3.883 GB, free: 90.44 MB / 0.7296 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004059/8.057, allocations: 141.8 kB / 3.883 GB, free: 90.37 MB / 0.7296 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/8.06, allocations: 1.15 MB / 3.884 GB, free: 90.29 MB / 0.7296 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/8.06, allocations: 18.34 kB / 3.884 GB, free: 90.29 MB / 0.7296 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/8.06, allocations: 0 / 3.884 GB, free: 90.29 MB / 0.7296 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/8.06, allocations: 6.719 kB / 3.884 GB, free: 90.29 MB / 0.7296 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004876/8.065, allocations: 2.576 MB / 3.886 GB, free: 89.83 MB / 0.7296 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/8.065, allocations: 3.906 kB / 3.886 GB, free: 89.83 MB / 0.7296 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/8.066, allocations: 255.3 kB / 3.887 GB, free: 89.82 MB / 0.7296 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.23e-05/8.066, allocations: 13.06 kB / 3.887 GB, free: 89.82 MB / 0.7296 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-05/8.067, allocations: 24.95 kB / 3.887 GB, free: 89.82 MB / 0.7296 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004531/8.067, allocations: 1.194 MB / 3.888 GB, free: 88.65 MB / 0.7296 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/8.067, allocations: 11.12 kB / 3.888 GB, free: 88.65 MB / 0.7296 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002897/8.07, allocations: 1.991 MB / 3.89 GB, free: 87.99 MB / 0.7296 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004385/8.074, allocations: 3.059 MB / 3.893 GB, free: 86.95 MB / 0.7296 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000793/8.075, allocations: 357.5 kB / 3.893 GB, free: 86.77 MB / 0.7296 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003917/8.076, allocations: 10.62 kB / 3.893 GB, free: 86.77 MB / 0.7296 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/8.077, allocations: 138.9 kB / 3.893 GB, free: 86.77 MB / 0.7296 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/8.077, allocations: 73.17 kB / 3.893 GB, free: 86.77 MB / 0.7296 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/8.078, allocations: 40.67 kB / 3.893 GB, free: 86.77 MB / 0.7296 GB Notification: Performance of sort global known variables: time 0.001725/8.079, allocations: 0.6685 MB / 3.894 GB, free: 86.66 MB / 0.7296 GB Notification: Performance of remove unused functions: time 0.00626/8.086, allocations: 1.481 MB / 3.895 GB, free: 86.52 MB / 0.7296 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (temSen.T,val.filter.s[1],val.filter.s[2],P.I.y) * Number of discrete variables: 4 ($whenCondition1,TSet.T_start,TSet.count,hex.flowRegime) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00437/8.09, allocations: 2.312 MB / 3.898 GB, free: 85.91 MB / 0.7296 GB Notification: Performance of simCode: created initialization part: time 0.003857/8.094, allocations: 1.681 MB / 3.899 GB, free: 85.82 MB / 0.7296 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/8.094, allocations: 1.375 kB / 3.899 GB, free: 85.82 MB / 0.7296 GB Notification: Performance of simCode: created simulation system equations: time 0.001051/8.095, allocations: 0.5349 MB / 3.9 GB, free: 85.82 MB / 0.7296 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002938/8.098, allocations: 497.3 kB / 3.9 GB, free: 85.8 MB / 0.7296 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005787/8.104, allocations: 2.098 MB / 3.902 GB, free: 85.18 MB / 0.7296 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001563/8.105, allocations: 1.413 MB / 3.904 GB, free: 84.45 MB / 0.7296 GB Notification: Performance of SimCode: time 1.022e-06/8.105, allocations: 0 / 3.904 GB, free: 84.45 MB / 0.7296 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUPControl.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe 2>&1)