Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.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.Examples.SaturationPressureLiquid,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Examples_SaturationPressureLiquid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Examples_SaturationPressureLiquid",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.007456/0.007456, allocations: 95.5 kB / 15.73 MB, free: 6.062 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.001819/0.001819, allocations: 197.6 kB / 16.68 MB, free: 5.984 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002299/0.002299, allocations: 282.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.016/1.016, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 99.84 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1832, allocations: 86.97 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid): time 0.002644/0.1859, allocations: 1.414 MB / 0.7673 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004684/0.1864, allocations: 199.4 kB / 0.7675 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.944e-05/0.1864, allocations: 4 kB / 0.7675 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.77e-05/0.1865, allocations: 0 / 0.7675 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.945e-05/0.1865, allocations: 3.938 kB / 0.7675 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002117/0.1868, allocations: 27.89 kB / 0.7675 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.111e-05/0.1868, allocations: 27.92 kB / 0.7675 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.456e-05/0.1869, allocations: 4 kB / 0.7675 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.302e-05/0.187, allocations: 11.92 kB / 0.7675 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.934e-05/0.187, allocations: 8 kB / 0.7675 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.187, allocations: 4 kB / 0.7675 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.079e-05/0.1871, allocations: 23.98 kB / 0.7676 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.541e-05/0.1872, allocations: 11.91 kB / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.452e-05/0.1872, allocations: 8 kB / 0.7676 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.1873, allocations: 32.12 kB / 0.7676 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1873, allocations: 8 kB / 0.7676 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.342e-06/0.1873, allocations: 0 / 0.7676 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.1873, allocations: 0 / 0.7676 GB, free: 7.133 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004182/0.1878, allocations: 343.3 kB / 0.768 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1878, allocations: 11.97 kB / 0.768 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.452e-05/0.1879, allocations: 38.75 kB / 0.768 GB, free: 6.688 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.188, allocations: 4.922 kB / 0.768 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.1881, allocations: 168.3 kB / 0.7682 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.1881, allocations: 4.375 kB / 0.7682 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.1881, allocations: 384 / 0.7682 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001679/0.1883, allocations: 54.17 kB / 0.7682 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1883, allocations: 3.938 kB / 0.7682 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.1883, allocations: 0 / 0.7682 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1883, allocations: 0 / 0.7682 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.1885, allocations: 39.89 kB / 0.7683 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003246/0.1888, allocations: 252.9 kB / 0.7685 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.189, allocations: 42.48 kB / 0.7685 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.879e-05/0.1891, allocations: 32.91 kB / 0.7686 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.1891, allocations: 0 / 0.7686 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.1891, allocations: 30.56 kB / 0.7686 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.1891, allocations: 4 kB / 0.7686 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003436/0.1895, allocations: 85.58 kB / 0.7687 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.1895, allocations: 51.41 kB / 0.7687 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.949e-05/0.1896, allocations: 97.84 kB / 0.7688 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.1896, allocations: 25.7 kB / 0.7689 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.1897, allocations: 88.27 kB / 0.7689 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.77e-05/0.1897, allocations: 7.953 kB / 0.769 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.1897, allocations: 9.719 kB / 0.769 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1898, allocations: 318.8 kB / 0.7693 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.1e-05/0.1899, allocations: 15.97 kB / 0.7693 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.072e-05/0.19, allocations: 15.98 kB / 0.7693 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.1901, allocations: 40.89 kB / 0.7693 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1902, allocations: 7.875 kB / 0.7693 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001863/0.1903, allocations: 69.61 kB / 0.7694 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1904, allocations: 4 kB / 0.7694 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1904, allocations: 0 / 0.7694 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.1904, allocations: 192 / 0.7694 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.689e-05/0.1905, allocations: 11.98 kB / 0.7694 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.1905, allocations: 4.031 kB / 0.7694 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.351e-05/0.1906, allocations: 7.984 kB / 0.7694 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.1906, allocations: 0 / 0.7694 GB, free: 5.043 MB / 0.5606 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.928e-05/0.1907, allocations: 118.4 kB / 0.7695 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.1907, allocations: 3.984 kB / 0.7696 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002318/0.1909, allocations: 80.7 kB / 0.7696 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1909, allocations: 4 kB / 0.7696 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1909, allocations: 0 / 0.7696 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.1909, allocations: 7.875 kB / 0.7696 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.1911, allocations: 161.6 kB / 0.7698 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1911, allocations: 0 / 0.7698 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.515e-05/0.1912, allocations: 7.984 kB / 0.7698 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.1912, allocations: 4 kB / 0.7698 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.1912, allocations: 0 / 0.7698 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1912, allocations: 0 / 0.7698 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1912, allocations: 0 / 0.7698 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.1914, allocations: 171.4 kB / 0.77 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.494e-05/0.1915, allocations: 89.05 kB / 0.7701 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/0.1915, allocations: 0 / 0.7701 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.829e-05/0.1916, allocations: 4 kB / 0.7701 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.1916, allocations: 3.984 kB / 0.7701 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.1916, allocations: 4 kB / 0.7701 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.951e-05/0.1917, allocations: 83.28 kB / 0.7701 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1917, allocations: 0 / 0.7701 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002166/0.1919, allocations: 4 kB / 0.7701 GB, free: 4.215 MB / 0.5606 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005117/0.1924, allocations: 0.7007 MB / 0.7708 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002142/0.1926, allocations: 47.91 kB / 0.7709 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1927, allocations: 0 / 0.7709 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.48e-05/0.1927, allocations: 19.97 kB / 0.7709 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.193, allocations: 14.19 kB / 0.7709 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004301/0.1935, allocations: 148.2 kB / 0.7711 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.1937, allocations: 0.6807 MB / 0.7717 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.888e-05/0.1937, allocations: 4 kB / 0.7717 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.178e-05/0.1938, allocations: 15.42 kB / 0.7717 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of SimCode: time 6.61e-07/0.1938, allocations: 0 / 0.7717 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.2104, allocations: 1.385 MB / 0.7731 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.291/7.502, allocations: 10.19 kB / 0.7731 GB, free: 1.25 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Examples_SaturationPressureLiquid.fmu > BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.pipe 2>&1)