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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_Examples_phi_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_Examples_phi_pTX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 194.5 kB / 16.14 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001989/0.001989, allocations: 282.6 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9389/0.9389, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 93.73 kB / 0.5946 GB, free: 28.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1602, allocations: 86.98 MB / 0.6795 GB, free: 1.102 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX): time 0.002326/0.1626, allocations: 1.331 MB / 0.6808 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.1638, allocations: 0.8447 MB / 0.6817 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.181e-05/0.1638, allocations: 0.7188 kB / 0.6817 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.047e-05/0.1638, allocations: 3.938 kB / 0.6817 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.582e-05/0.1639, allocations: 1.719 kB / 0.6817 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003991/0.1643, allocations: 111.5 kB / 0.6818 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.69e-05/0.1643, allocations: 24.8 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.802e-05/0.1644, allocations: 4 kB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.264e-05/0.1644, allocations: 12.58 kB / 0.6818 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.978e-05/0.1645, allocations: 11.98 kB / 0.6818 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.1645, allocations: 4.531 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003042/0.1648, allocations: 172.9 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.226e-05/0.1648, allocations: 3.938 kB / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.085e-05/0.1649, allocations: 15.92 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.1651, allocations: 120.9 kB / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1651, allocations: 0 / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1651, allocations: 4 kB / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.1651, allocations: 0 / 0.6821 GB, free: 14.45 MB / 494.1 MB 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.0004628/0.1656, allocations: 363.4 kB / 0.6825 GB, free: 14.04 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.1656, allocations: 12.03 kB / 0.6825 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.747e-05/0.1657, allocations: 34.73 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.101e-05/0.1657, allocations: 4.844 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.1659, allocations: 164.4 kB / 0.6827 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.59e-05/0.1659, allocations: 26.27 kB / 0.6827 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.1659, allocations: 8.375 kB / 0.6827 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.1661, allocations: 53.92 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.1661, allocations: 3.938 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.1661, allocations: 4 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.1662, allocations: 0 / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.134e-05/0.1662, allocations: 15.98 kB / 0.6828 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001783/0.1664, allocations: 157.7 kB / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.1666, allocations: 46.56 kB / 0.683 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.799e-05/0.1667, allocations: 16.86 kB / 0.683 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002902/0.167, allocations: 178.3 kB / 0.6832 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/0.1671, allocations: 42.44 kB / 0.6832 GB, free: 13.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.1671, allocations: 0 / 0.6832 GB, free: 13.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002494/0.1673, allocations: 65.67 kB / 0.6833 GB, free: 13.05 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.1674, allocations: 55.41 kB / 0.6833 GB, free: 12.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.515e-05/0.1674, allocations: 98.03 kB / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.1675, allocations: 25.7 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.818e-05/0.1675, allocations: 80.14 kB / 0.6835 GB, free: 12.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.1e-05/0.1675, allocations: 15.75 kB / 0.6835 GB, free: 12.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.791e-05/0.1676, allocations: 13.72 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1677, allocations: 322.8 kB / 0.6839 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.529e-05/0.1677, allocations: 8 kB / 0.6839 GB, free: 12.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.403e-05/0.1678, allocations: 16.17 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.039e-05/0.1679, allocations: 32.86 kB / 0.6839 GB, free: 12.35 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1679, allocations: 0 / 0.6839 GB, free: 12.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001228/0.168, allocations: 57.62 kB / 0.684 GB, free: 12.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.1681, allocations: 11.94 kB / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.1681, allocations: 0 / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1681, allocations: 0 / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.422e-05/0.1681, allocations: 11.98 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1682, allocations: 4 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.985e-05/0.1682, allocations: 3.906 kB / 0.684 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.1682, allocations: 0 / 0.684 GB, free: 12.25 MB / 494.1 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.396e-05/0.1683, allocations: 115.1 kB / 0.6841 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.1683, allocations: 3.938 kB / 0.6841 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.1685, allocations: 73.16 kB / 0.6842 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1685, allocations: 4 kB / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1685, allocations: 0 / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.1685, allocations: 3.984 kB / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.1686, allocations: 157.7 kB / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1687, allocations: 0 / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.408e-05/0.1687, allocations: 4 kB / 0.6844 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1687, allocations: 7.938 kB / 0.6844 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.1687, allocations: 4 kB / 0.6844 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1687, allocations: 0 / 0.6844 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1687, allocations: 3.938 kB / 0.6844 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001656/0.1689, allocations: 89.05 kB / 0.6845 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.726e-05/0.169, allocations: 84.95 kB / 0.6845 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.169, allocations: 3.984 kB / 0.6845 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.232e-05/0.1691, allocations: 8 kB / 0.6845 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.231e-05/0.1691, allocations: 0 / 0.6845 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.1691, allocations: 4 kB / 0.6846 GB, free: 11.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5e-05/0.1692, allocations: 79.27 kB / 0.6846 GB, free: 11.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1692, allocations: 4 kB / 0.6846 GB, free: 11.51 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002197/0.1694, allocations: 31.94 kB / 0.6847 GB, free: 11.48 MB / 494.1 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005072/0.1699, allocations: 0.6747 MB / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001385/0.1701, allocations: 28.31 kB / 0.6853 GB, free: 10.75 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1701, allocations: 0 / 0.6853 GB, free: 10.75 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.894e-05/0.1701, allocations: 12.09 kB / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.1704, allocations: 10.38 kB / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004029/0.1708, allocations: 182.5 kB / 0.6855 GB, free: 10.51 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.171, allocations: 0.6731 MB / 0.6862 GB, free: 9.812 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.518e-05/0.1711, allocations: 11.98 kB / 0.6862 GB, free: 9.801 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.541e-05/0.1711, allocations: 7.438 kB / 0.6862 GB, free: 9.797 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1711, allocations: 0 / 0.6862 GB, free: 9.797 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01317/0.1843, allocations: 1.799 MB / 0.688 GB, free: 8.145 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002377/0.1846, allocations: 218.4 kB / 0.6882 GB, free: 7.895 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/1.916, allocations: 0 / 0.6882 GB, free: 7.895 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_Examples_phi_pTX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_Examples_phi_pTX.fmu > BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe 2>&1)