Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.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: translateModel(BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX") translateModel(BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX") [: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.7537/0.7537, allocations: 141.8 MB / 149.1 MB, free: 13.12 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 178.6 kB / 181.9 MB, free: 9.801 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.35/1.35, allocations: 221.3 MB / 436 MB, free: 2.301 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.001001/0.001001, allocations: 90.67 kB / 0.507 GB, free: 11.02 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001738/0.001738, allocations: 289 kB / 0.5885 GB, free: 7.824 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 8.737e-06/8.757e-06, allocations: 4 kB / 0.6759 GB, free: 14.2 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4029/0.4029, allocations: 82.77 MB / 0.7567 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.5104, allocations: 109.5 MB / 0.8637 GB, free: 29.31 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.5106, allocations: 80.8 kB / 0.8638 GB, free: 29.23 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.007495/0.5181, allocations: 2.404 MB / 0.8661 GB, free: 26.87 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.5182, allocations: 0 / 0.8661 GB, free: 26.87 MB / 0.5575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0002905/0.5185, allocations: 347 kB / 0.8665 GB, free: 26.49 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.5185, allocations: 12.88 kB / 0.8665 GB, free: 26.48 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/0.5186, allocations: 0 / 0.8665 GB, free: 26.48 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.468e-05/0.5186, allocations: 167.7 kB / 0.8666 GB, free: 26.27 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/0.5187, allocations: 33.64 kB / 0.8667 GB, free: 26.23 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.126e-06/0.5187, allocations: 8 kB / 0.8667 GB, free: 26.23 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.719e-05/0.5188, allocations: 4 kB / 0.8667 GB, free: 26.22 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.707e-05/0.5188, allocations: 45.69 kB / 0.8667 GB, free: 26.17 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.5189, allocations: 0 / 0.8667 GB, free: 26.17 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.5189, allocations: 3.984 kB / 0.8667 GB, free: 26.17 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.5189, allocations: 0 / 0.8667 GB, free: 26.17 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001056/0.519, allocations: 138.1 kB / 0.8669 GB, free: 26 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.5191, allocations: 34.58 kB / 0.8669 GB, free: 25.95 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.601e-05/0.5192, allocations: 24.98 kB / 0.8669 GB, free: 25.93 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002209/0.5194, allocations: 182.1 kB / 0.8671 GB, free: 25.71 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.425e-05/0.5194, allocations: 34.55 kB / 0.8671 GB, free: 25.67 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.5194, allocations: 0 / 0.8671 GB, free: 25.67 MB / 0.5575 GB Notification: Performance of matching and sorting (n=4): time 0.0004596/0.5199, allocations: 105.6 kB / 0.8672 GB, free: 25.56 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.549e-05/0.5199, allocations: 59.3 kB / 0.8673 GB, free: 25.49 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.056e-05/0.52, allocations: 89 kB / 0.8674 GB, free: 25.39 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 8.125e-06/0.52, allocations: 25.7 kB / 0.8674 GB, free: 25.36 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 1.138e-05/0.52, allocations: 80.14 kB / 0.8675 GB, free: 25.28 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.52, allocations: 15.78 kB / 0.8675 GB, free: 25.27 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-06/0.52, allocations: 4 kB / 0.8675 GB, free: 25.26 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 4.181e-05/0.5201, allocations: 314.8 kB / 0.8678 GB, free: 24.95 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.366e-05/0.5201, allocations: 8 kB / 0.8678 GB, free: 24.94 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.205e-05/0.5201, allocations: 11.98 kB / 0.8678 GB, free: 24.93 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.5205, allocations: 55.91 kB / 0.8678 GB, free: 24.87 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.5205, allocations: 0 / 0.8678 GB, free: 24.87 MB / 0.5575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003634/0.5209, allocations: 109.5 kB / 0.868 GB, free: 24.76 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.5209, allocations: 4 kB / 0.868 GB, free: 24.75 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.5209, allocations: 0 / 0.868 GB, free: 24.75 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.5209, allocations: 0 / 0.868 GB, free: 24.75 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.599e-05/0.521, allocations: 8 kB / 0.868 GB, free: 24.75 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.521, allocations: 7.984 kB / 0.868 GB, free: 24.74 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.082e-05/0.521, allocations: 3.906 kB / 0.868 GB, free: 24.73 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.5211, allocations: 7.938 kB / 0.868 GB, free: 24.73 MB / 0.5575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 3.899e-05/0.5211, allocations: 101 kB / 0.8681 GB, free: 24.62 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.5211, allocations: 0 / 0.8681 GB, free: 24.62 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004004/0.5215, allocations: 117.2 kB / 0.8682 GB, free: 24.5 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.5215, allocations: 7.906 kB / 0.8682 GB, free: 24.49 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.5215, allocations: 4 kB / 0.8682 GB, free: 24.49 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.5215, allocations: 0 / 0.8682 GB, free: 24.49 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.547e-05/0.5216, allocations: 130.2 kB / 0.8683 GB, free: 24.32 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.5216, allocations: 0 / 0.8683 GB, free: 24.32 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.76e-05/0.5217, allocations: 8 kB / 0.8683 GB, free: 24.32 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.5217, allocations: 0 / 0.8683 GB, free: 24.32 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.5217, allocations: 432 / 0.8683 GB, free: 24.32 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.5217, allocations: 0 / 0.8683 GB, free: 24.32 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.5217, allocations: 6.641 kB / 0.8683 GB, free: 24.31 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003681/0.5221, allocations: 133 kB / 0.8685 GB, free: 24.16 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.5221, allocations: 89 kB / 0.8686 GB, free: 24.06 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.5221, allocations: 0 / 0.8686 GB, free: 24.06 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.928e-05/0.5222, allocations: 4 kB / 0.8686 GB, free: 24.05 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.5222, allocations: 11.92 kB / 0.8686 GB, free: 24.04 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.5223, allocations: 0 / 0.8686 GB, free: 24.04 MB / 0.5575 GB Notification: Performance of sort global known variables: time 1.547e-05/0.5223, allocations: 79.28 kB / 0.8686 GB, free: 23.96 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0002263/0.5225, allocations: 39.92 kB / 0.8687 GB, free: 23.93 MB / 0.5575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001824/0.5227, allocations: 143.1 kB / 0.8688 GB, free: 23.77 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 6.399e-05/0.5228, allocations: 23.98 kB / 0.8688 GB, free: 23.75 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.5228, allocations: 0 / 0.8688 GB, free: 23.75 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 1.845e-05/0.5228, allocations: 11.94 kB / 0.8689 GB, free: 23.74 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.5229, allocations: 4 kB / 0.8689 GB, free: 23.73 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001617/0.5231, allocations: 63.81 kB / 0.8689 GB, free: 23.65 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.5232, allocations: 0.6954 MB / 0.8696 GB, free: 22.93 MB / 0.5575 GB Notification: Performance of SimCode: time 2.2e-07/0.5232, allocations: 0 / 0.8696 GB, free: 22.93 MB / 0.5575 GB Notification: Performance of Templates: time 0.002685/0.5259, allocations: 1.055 MB / 0.8706 GB, free: 21.9 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.sim & ./BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe 2>&1)