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.006996/0.006996, allocations: 101 kB / 15.73 MB, free: 6.059 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.00143/0.00143, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002536/0.002536, allocations: 285 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.282/1.282, allocations: 178.6 MB / 0.5074 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002734/0.002734, allocations: 99.83 kB / 0.6943 GB, free: 15.22 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5075/0.5103, allocations: 89.12 MB / 0.7813 GB, free: 1.176 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid): time 0.002373/0.5127, allocations: 1.41 MB / 0.7827 GB, free: 72 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0004904/0.5132, allocations: 210.5 kB / 0.7829 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.311e-05/0.5133, allocations: 0 / 0.7829 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.762e-05/0.5133, allocations: 1.312 kB / 0.7829 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.291e-05/0.5133, allocations: 3.938 kB / 0.7829 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.5136, allocations: 25 kB / 0.7829 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.44e-05/0.5137, allocations: 26.11 kB / 0.783 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.538e-05/0.5138, allocations: 6.922 kB / 0.783 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.212e-05/0.5138, allocations: 11.81 kB / 0.783 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.075e-05/0.5139, allocations: 11.95 kB / 0.783 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.5139, allocations: 1.406 kB / 0.783 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.802e-05/0.514, allocations: 23.92 kB / 0.783 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.049e-05/0.514, allocations: 5.375 kB / 0.783 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.787e-05/0.514, allocations: 14.42 kB / 0.783 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.5142, allocations: 33.7 kB / 0.7831 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.5142, allocations: 4 kB / 0.7831 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5142, allocations: 3.938 kB / 0.7831 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.5142, allocations: 0 / 0.7831 GB, free: 15.8 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.0005135/0.5147, allocations: 345.4 kB / 0.7834 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.5148, allocations: 9.906 kB / 0.7834 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.681e-05/0.5148, allocations: 34.75 kB / 0.7834 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.5149, allocations: 7.641 kB / 0.7834 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.5151, allocations: 169.5 kB / 0.7836 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.5151, allocations: 5.656 kB / 0.7836 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.5151, allocations: 1.438 kB / 0.7836 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.5153, allocations: 50.05 kB / 0.7837 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.5153, allocations: 3.938 kB / 0.7837 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.5153, allocations: 0 / 0.7837 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.5153, allocations: 1.094 kB / 0.7837 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000171/0.5155, allocations: 33.88 kB / 0.7837 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003885/0.5159, allocations: 250 kB / 0.7839 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.516, allocations: 43.03 kB / 0.784 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.5162, allocations: 27.02 kB / 0.784 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.5162, allocations: 0 / 0.784 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.5162, allocations: 35.66 kB / 0.784 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.5162, allocations: 4 kB / 0.784 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003589/0.5166, allocations: 76.55 kB / 0.7841 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.5167, allocations: 56.81 kB / 0.7842 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.81e-05/0.5167, allocations: 93.86 kB / 0.7843 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.5168, allocations: 27.2 kB / 0.7843 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.356e-05/0.5168, allocations: 88.22 kB / 0.7844 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.5168, allocations: 9.359 kB / 0.7844 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.5169, allocations: 12.38 kB / 0.7844 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.517, allocations: 316.3 kB / 0.7847 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-05/0.5171, allocations: 12.83 kB / 0.7847 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.8e-05/0.5172, allocations: 21.91 kB / 0.7847 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.5174, allocations: 42.83 kB / 0.7848 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.5174, allocations: 3.938 kB / 0.7848 GB, free: 14 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001964/0.5176, allocations: 68.83 kB / 0.7848 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.5176, allocations: 5.281 kB / 0.7848 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.5176, allocations: 0 / 0.7848 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.5176, allocations: 1.656 kB / 0.7848 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.766e-05/0.5177, allocations: 9.578 kB / 0.7848 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.5177, allocations: 4.031 kB / 0.7849 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.258e-05/0.5178, allocations: 7.969 kB / 0.7849 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.5178, allocations: 0 / 0.7849 GB, free: 13.94 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 8.334e-05/0.5179, allocations: 112.4 kB / 0.785 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.5179, allocations: 9.359 kB / 0.785 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002515/0.5182, allocations: 84.41 kB / 0.7851 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.5182, allocations: 0 / 0.7851 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5182, allocations: 0 / 0.7851 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.5182, allocations: 5.438 kB / 0.7851 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.5184, allocations: 166.9 kB / 0.7852 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.5184, allocations: 0 / 0.7852 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.854e-05/0.5185, allocations: 10.98 kB / 0.7852 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5185, allocations: 1.125 kB / 0.7852 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.5185, allocations: 0 / 0.7852 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.5185, allocations: 5.531 kB / 0.7852 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5185, allocations: 0 / 0.7852 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003211/0.5189, allocations: 180.8 kB / 0.7854 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.5189, allocations: 78.61 kB / 0.7855 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.519, allocations: 0 / 0.7855 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.213e-05/0.519, allocations: 7.672 kB / 0.7855 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.5191, allocations: 2.438 kB / 0.7855 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.5191, allocations: 0 / 0.7855 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.64e-05/0.5192, allocations: 91.27 kB / 0.7856 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5192, allocations: 0 / 0.7856 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002177/0.5194, allocations: 4.125 kB / 0.7856 GB, free: 13.18 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.0006479/0.5201, allocations: 0.7012 MB / 0.7863 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002544/0.5203, allocations: 42.77 kB / 0.7863 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5203, allocations: 0 / 0.7863 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.852e-05/0.5204, allocations: 16.95 kB / 0.7863 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.5208, allocations: 13.48 kB / 0.7863 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005218/0.5213, allocations: 145.4 kB / 0.7865 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.5217, allocations: 0.6776 MB / 0.7871 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.184e-05/0.5217, allocations: 1.125 kB / 0.7871 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.052e-05/0.5218, allocations: 13 kB / 0.7872 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.5218, allocations: 1.594 kB / 0.7872 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.5444, allocations: 1.373 MB / 0.7885 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.817/8.362, allocations: 17.14 kB / 0.7885 GB, free: 10.85 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)