Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.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.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck",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.001106/0.001111, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 193.3 kB / 16.53 MB, free: 6.699 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.265/1.265, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002028/0.002028, allocations: 287.1 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9033/0.9033, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003135/0.003135, allocations: 95.95 kB / 0.5954 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1775, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck): time 0.00236/0.1798, allocations: 1.28 MB / 0.6816 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009631/0.1808, allocations: 0.6343 MB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.757e-05/0.1809, allocations: 3.938 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.762e-05/0.1809, allocations: 2.656 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.533e-05/0.1809, allocations: 3.938 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.1814, allocations: 107.5 kB / 0.6823 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.091e-05/0.1815, allocations: 31.81 kB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.304e-05/0.1815, allocations: 4.766 kB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.788e-05/0.1816, allocations: 7.984 kB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.13e-05/0.1817, allocations: 21.64 kB / 0.6824 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.1817, allocations: 0 / 0.6824 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003031/0.182, allocations: 139.8 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.556e-05/0.182, allocations: 7.969 kB / 0.6825 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.655e-05/0.182, allocations: 4 kB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.1822, allocations: 96.7 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1822, allocations: 0 / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1823, allocations: 0.875 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1823, allocations: 0 / 0.6826 GB, free: 14.23 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.0004604/0.1827, allocations: 353.2 kB / 0.6829 GB, free: 13.84 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1828, allocations: 11.97 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.952e-05/0.1828, allocations: 39.62 kB / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004113/0.1832, allocations: 36.89 kB / 0.683 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.1834, allocations: 164.3 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.1834, allocations: 384 / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.1834, allocations: 4.375 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.1836, allocations: 54.22 kB / 0.6832 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.1836, allocations: 3.938 kB / 0.6832 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.1836, allocations: 4 kB / 0.6832 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1836, allocations: 3.984 kB / 0.6832 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.1838, allocations: 23.98 kB / 0.6833 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001835/0.184, allocations: 177.6 kB / 0.6834 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.1843, allocations: 66.58 kB / 0.6835 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.124e-05/0.1844, allocations: 24.94 kB / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.1844, allocations: 0 / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.1844, allocations: 38.56 kB / 0.6836 GB, free: 13.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.1844, allocations: 0 / 0.6836 GB, free: 13.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.003398/0.1878, allocations: 0.5797 MB / 0.6841 GB, free: 12.44 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/0.1879, allocations: 51.41 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.705e-05/0.188, allocations: 93.86 kB / 0.6843 GB, free: 12.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.188, allocations: 29.7 kB / 0.6843 GB, free: 12.24 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.797e-05/0.188, allocations: 80.27 kB / 0.6844 GB, free: 12.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.1881, allocations: 31.64 kB / 0.6844 GB, free: 12.13 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.608e-05/0.1881, allocations: 25.7 kB / 0.6844 GB, free: 12.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.242e-05/0.1882, allocations: 310.8 kB / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.1884, allocations: 39.95 kB / 0.6848 GB, free: 11.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.1885, allocations: 39.95 kB / 0.6848 GB, free: 11.71 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.1888, allocations: 84.81 kB / 0.6849 GB, free: 11.62 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.1888, allocations: 0 / 0.6849 GB, free: 11.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003506/0.1892, allocations: 129.5 kB / 0.685 GB, free: 11.49 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.1892, allocations: 4 kB / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1892, allocations: 336 / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1892, allocations: 0 / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.1894, allocations: 23.97 kB / 0.685 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.1895, allocations: 0 / 0.685 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001501/0.1896, allocations: 4 kB / 0.685 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.1896, allocations: 11.92 kB / 0.685 GB, free: 11.45 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 (7): * Single equations (assignments): 7 * 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.896e-05/0.1897, allocations: 114.5 kB / 0.6851 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.878e-05/0.1898, allocations: 11.92 kB / 0.6852 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.952e-05/0.1898, allocations: 7.969 kB / 0.6852 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1898, allocations: 0 / 0.6852 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1898, allocations: 0 / 0.6852 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1898, allocations: 11.98 kB / 0.6852 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.19, allocations: 183.7 kB / 0.6853 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.19, allocations: 3.984 kB / 0.6854 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.1902, allocations: 31.84 kB / 0.6854 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1903, allocations: 3.938 kB / 0.6854 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.1903, allocations: 8 kB / 0.6854 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1903, allocations: 0 / 0.6854 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1903, allocations: 0 / 0.6854 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005519/0.1908, allocations: 189 kB / 0.6856 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-05/0.1909, allocations: 81.05 kB / 0.6857 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.1909, allocations: 4.031 kB / 0.6857 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.1911, allocations: 12.05 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.595e-05/0.1912, allocations: 4 kB / 0.6857 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.1912, allocations: 7.984 kB / 0.6857 GB, free: 10.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.384e-05/0.1912, allocations: 79.28 kB / 0.6858 GB, free: 10.62 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1912, allocations: 0 / 0.6858 GB, free: 10.62 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002374/0.1915, allocations: 28 kB / 0.6858 GB, free: 10.59 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y_comp) * 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 (6): * Single equations (assignments): 6 * 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.0008777/0.1923, allocations: 0.7646 MB / 0.6865 GB, free: 9.797 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003466/0.1927, allocations: 91.86 kB / 0.6866 GB, free: 9.707 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1927, allocations: 0 / 0.6866 GB, free: 9.707 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.1929, allocations: 43.95 kB / 0.6867 GB, free: 9.664 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002402/0.1931, allocations: 14.42 kB / 0.6867 GB, free: 9.652 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.1951, allocations: 1.363 MB / 0.688 GB, free: 8.207 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.1954, allocations: 0.6807 MB / 0.6887 GB, free: 7.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002182/0.1956, allocations: 31.97 kB / 0.6887 GB, free: 7.469 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.342e-05/0.1957, allocations: 19.36 kB / 0.6887 GB, free: 7.449 MB / 494.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1957, allocations: 0 / 0.6887 GB, free: 7.449 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.2159, allocations: 2.473 MB / 0.6911 GB, free: 5.164 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.096/7.312, allocations: 13.53 kB / 0.6911 GB, free: 5.16 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-09 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe 2>&1)