Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowHumidifier.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.Interfaces.Examples.ReverseFlowHumidifier,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowHumidifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowHumidifier,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowHumidifier",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.7322/0.7322, allocations: 141.8 MB / 149.1 MB, free: 8.613 MB / 126.2 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 180.7 kB / 182 MB, free: 2.047 MB / 142.2 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 221.4 MB / 436 MB, free: 13.04 MB / 334.2 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 105.6 kB / 0.507 GB, free: 23.93 MB / 398.2 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001764/0.001764, allocations: 269.2 kB / 0.5884 GB, free: 15.83 MB / 446.2 MB Notification: Performance of FrontEnd - loaded program: time 0.1941/0.1959, allocations: 89.64 MB / 0.676 GB, free: 6.105 MB / 0.5139 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4322/0.6281, allocations: 82.77 MB / 0.7568 GB, free: 116.3 MB / 0.5295 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.402/4.03, allocations: 1.888 GB / 2.645 GB, free: 80.94 MB / 0.6858 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/4.031, allocations: 96.23 kB / 2.645 GB, free: 80.85 MB / 0.6858 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 324 * Number of variables: 324 Notification: Performance of Generate backend data structure: time 4.269/8.299, allocations: 1.309 GB / 3.954 GB, free: 84.89 MB / 0.7327 GB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/8.299, allocations: 13.41 kB / 3.954 GB, free: 84.89 MB / 0.7327 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005371/8.305, allocations: 0.6457 MB / 3.955 GB, free: 84.78 MB / 0.7327 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004832/8.309, allocations: 1.756 MB / 3.956 GB, free: 84.34 MB / 0.7327 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/8.31, allocations: 40.44 kB / 3.956 GB, free: 84.34 MB / 0.7327 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005438/8.31, allocations: 84.16 kB / 3.956 GB, free: 84.34 MB / 0.7327 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003311/8.313, allocations: 1.213 MB / 3.958 GB, free: 84.33 MB / 0.7327 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003094/8.317, allocations: 1.292 MB / 3.959 GB, free: 84.12 MB / 0.7327 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.094e-05/8.317, allocations: 5.016 kB / 3.959 GB, free: 84.12 MB / 0.7327 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/8.317, allocations: 3.625 kB / 3.959 GB, free: 84.12 MB / 0.7327 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.302e-05/8.317, allocations: 47.02 kB / 3.959 GB, free: 84.12 MB / 0.7327 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008285/8.325, allocations: 7.283 MB / 3.966 GB, free: 80.1 MB / 0.7327 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000806/8.326, allocations: 0.6638 MB / 3.967 GB, free: 80.06 MB / 0.7327 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004387/8.326, allocations: 370 kB / 3.967 GB, free: 80.05 MB / 0.7327 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002809/8.327, allocations: 269.5 kB / 3.967 GB, free: 79.77 MB / 0.7327 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/8.327, allocations: 47.17 kB / 3.967 GB, free: 79.73 MB / 0.7327 GB Notification: Performance of pre-optimization done (n=67): time 3.667e-06/8.327, allocations: 0 / 3.967 GB, free: 79.73 MB / 0.7327 GB Notification: Performance of matching and sorting (n=67): time 0.001878/8.329, allocations: 0.8047 MB / 3.968 GB, free: 79.61 MB / 0.7327 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.98e-05/8.329, allocations: 59.09 kB / 3.968 GB, free: 79.54 MB / 0.7327 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/8.33, allocations: 0.9233 MB / 3.969 GB, free: 79.38 MB / 0.7327 GB Notification: Performance of collectPreVariables (initialization): time 6.975e-05/8.33, allocations: 29.52 kB / 3.969 GB, free: 79.35 MB / 0.7327 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002719/8.33, allocations: 0.5672 MB / 3.97 GB, free: 79.02 MB / 0.7327 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/8.33, allocations: 233.4 kB / 3.97 GB, free: 78.87 MB / 0.7327 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.859e-05/8.33, allocations: 0 / 3.97 GB, free: 78.87 MB / 0.7327 GB Notification: Performance of setup shared object (initialization): time 8.222e-05/8.33, allocations: 336.2 kB / 3.97 GB, free: 78.57 MB / 0.7327 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000419/8.331, allocations: 304 kB / 3.971 GB, free: 78.57 MB / 0.7327 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006219/8.331, allocations: 0.6245 MB / 3.971 GB, free: 78.18 MB / 0.7327 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005677/8.332, allocations: 415.7 kB / 3.972 GB, free: 78.16 MB / 0.7327 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/8.332, allocations: 0 / 3.972 GB, free: 78.16 MB / 0.7327 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001334/8.333, allocations: 0.9822 MB / 3.972 GB, free: 78.01 MB / 0.7327 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004328/8.334, allocations: 2.488 MB / 3.975 GB, free: 75.46 MB / 0.7327 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/8.334, allocations: 3.375 kB / 3.975 GB, free: 75.46 MB / 0.7327 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/8.334, allocations: 14.66 kB / 3.975 GB, free: 75.46 MB / 0.7327 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008434/8.335, allocations: 196.1 kB / 3.975 GB, free: 75.45 MB / 0.7327 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/8.335, allocations: 24.64 kB / 3.975 GB, free: 75.44 MB / 0.7327 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/8.336, allocations: 129.9 kB / 3.975 GB, free: 75.39 MB / 0.7327 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.52e-05/8.336, allocations: 42.25 kB / 3.975 GB, free: 75.39 MB / 0.7327 GB Notification: Performance of prepare postOptimizeDAE: time 6.543e-06/8.336, allocations: 6.531 kB / 3.975 GB, free: 75.39 MB / 0.7327 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001089/8.337, allocations: 0.8061 MB / 3.976 GB, free: 75.34 MB / 0.7327 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/8.337, allocations: 6.125 kB / 3.976 GB, free: 75.34 MB / 0.7327 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/8.337, allocations: 11.09 kB / 3.976 GB, free: 75.34 MB / 0.7327 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007521/8.338, allocations: 201.4 kB / 3.976 GB, free: 75.33 MB / 0.7327 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/8.338, allocations: 22.31 kB / 3.976 GB, free: 75.32 MB / 0.7327 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/8.339, allocations: 115.4 kB / 3.976 GB, free: 75.29 MB / 0.7327 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.624e-05/8.34, allocations: 35.8 kB / 3.976 GB, free: 75.29 MB / 0.7327 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * 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.0001788/8.34, allocations: 129.7 kB / 3.977 GB, free: 75.17 MB / 0.7327 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/8.34, allocations: 136.9 kB / 3.977 GB, free: 75.1 MB / 0.7327 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/8.341, allocations: 0.7812 MB / 3.977 GB, free: 75.03 MB / 0.7327 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/8.341, allocations: 7.531 kB / 3.977 GB, free: 75.03 MB / 0.7327 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/8.341, allocations: 0 / 3.977 GB, free: 75.03 MB / 0.7327 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007755/8.342, allocations: 0.7673 MB / 3.978 GB, free: 74.77 MB / 0.7327 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/8.345, allocations: 2.17 MB / 3.98 GB, free: 74.38 MB / 0.7327 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/8.345, allocations: 3.5 kB / 3.98 GB, free: 74.38 MB / 0.7327 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008472/8.346, allocations: 168 kB / 3.981 GB, free: 74.38 MB / 0.7327 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/8.346, allocations: 11.47 kB / 3.981 GB, free: 74.37 MB / 0.7327 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.694e-05/8.346, allocations: 11.25 kB / 3.981 GB, free: 74.37 MB / 0.7327 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/8.346, allocations: 7.438 kB / 3.981 GB, free: 74.37 MB / 0.7327 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/8.346, allocations: 2.062 kB / 3.981 GB, free: 74.37 MB / 0.7327 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001474/8.347, allocations: 1.375 MB / 3.982 GB, free: 73.97 MB / 0.7327 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002474/8.35, allocations: 2.36 MB / 3.984 GB, free: 73.19 MB / 0.7327 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004883/8.35, allocations: 319.9 kB / 3.985 GB, free: 73.02 MB / 0.7327 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/8.351, allocations: 2.969 kB / 3.985 GB, free: 73.02 MB / 0.7327 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/8.352, allocations: 87 kB / 3.985 GB, free: 73.01 MB / 0.7327 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.201e-05/8.352, allocations: 45.55 kB / 3.985 GB, free: 73.01 MB / 0.7327 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.639e-05/8.352, allocations: 35.03 kB / 3.985 GB, free: 73.01 MB / 0.7327 GB Notification: Performance of sort global known variables: time 0.0008373/8.353, allocations: 0.6857 MB / 3.985 GB, free: 72.76 MB / 0.7327 GB Notification: Performance of remove unused functions: time 0.004939/8.358, allocations: 1.901 MB / 3.987 GB, free: 71.62 MB / 0.7327 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (humBac.vol.dynBal.U,humBac.vol.dynBal.m,humBac.vol.dynBal.mXi[1],humFor.vol.dynBal.U,humFor.vol.dynBal.m,humFor.vol.dynBal.mXi[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.003907/8.361, allocations: 3.538 MB / 3.991 GB, free: 70.21 MB / 0.7327 GB Notification: Performance of simCode: created initialization part: time 0.001773/8.363, allocations: 1.229 MB / 3.992 GB, free: 69.77 MB / 0.7327 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/8.363, allocations: 3.188 kB / 3.992 GB, free: 69.77 MB / 0.7327 GB Notification: Performance of simCode: created simulation system equations: time 0.0003927/8.364, allocations: 344.3 kB / 3.992 GB, free: 69.64 MB / 0.7327 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003496/8.367, allocations: 0.7227 MB / 3.993 GB, free: 69.51 MB / 0.7327 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004571/8.372, allocations: 2.3 MB / 3.995 GB, free: 68.65 MB / 0.7327 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/8.373, allocations: 1.513 MB / 3.997 GB, free: 67.87 MB / 0.7327 GB Notification: Performance of SimCode: time 1.512e-06/8.373, allocations: 0 / 3.997 GB, free: 67.87 MB / 0.7327 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowHumidifier.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowHumidifier.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowHumidifier.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowHumidifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowHumidifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowHumidifier.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowHumidifier.pipe 2>&1)