Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.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.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",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.009582/0.009582, allocations: 99.34 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.002393/0.002393, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00216/0.00216, allocations: 279 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9635/0.9635, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 104.1 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1543, allocations: 86.97 MB / 0.7659 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterProperties): time 0.00613/0.1605, allocations: 4.71 MB / 0.7705 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00295/0.1634, allocations: 2.698 MB / 0.7732 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.1636, allocations: 3.938 kB / 0.7732 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.164, allocations: 51.67 kB / 0.7732 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003274/0.1643, allocations: 103.3 kB / 0.7733 GB, free: 1.301 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00137/0.1657, allocations: 0.5149 MB / 0.7738 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.166, allocations: 228 kB / 0.774 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.47e-05/0.166, allocations: 13.56 kB / 0.7741 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002523/0.1663, allocations: 119.5 kB / 0.7742 GB, free: 444 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.1665, allocations: 95.59 kB / 0.7743 GB, free: 348 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.1665, allocations: 8 kB / 0.7743 GB, free: 340 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3213/0.4878, allocations: 359.6 kB / 0.7746 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.488, allocations: 35.75 kB / 0.7746 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.4882, allocations: 83.89 kB / 0.7747 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008776/0.489, allocations: 363 kB / 0.7751 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.4891, allocations: 1.359 kB / 0.7751 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4891, allocations: 2.844 kB / 0.7751 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.4891, allocations: 0 / 0.7751 GB, free: 8.836 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.000649/0.4897, allocations: 0.5062 MB / 0.7756 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.4898, allocations: 9.625 kB / 0.7756 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.019e-05/0.4898, allocations: 48.95 kB / 0.7756 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.49, allocations: 27.91 kB / 0.7757 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.4903, allocations: 210.2 kB / 0.7759 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.4903, allocations: 14.27 kB / 0.7759 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.4903, allocations: 17.69 kB / 0.7759 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.4907, allocations: 250.6 kB / 0.7761 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.4907, allocations: 1.375 kB / 0.7761 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.4908, allocations: 7.406 kB / 0.7761 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.54e-05/0.4908, allocations: 10.16 kB / 0.7761 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000508/0.4913, allocations: 430.7 kB / 0.7766 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009412/0.4923, allocations: 0.9533 MB / 0.7775 GB, free: 7.336 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.4926, allocations: 167.2 kB / 0.7776 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.4927, allocations: 62.64 kB / 0.7777 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001188/0.4939, allocations: 1.826 MB / 0.7795 GB, free: 21.32 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.4939, allocations: 37.28 kB / 0.7795 GB, free: 21.28 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.4939, allocations: 0.6562 kB / 0.7795 GB, free: 21.28 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.000353/0.4943, allocations: 148.7 kB / 0.7797 GB, free: 21.23 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.4943, allocations: 58.34 kB / 0.7797 GB, free: 21.17 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.4945, allocations: 177.8 kB / 0.7799 GB, free: 21.06 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.4945, allocations: 28.11 kB / 0.7799 GB, free: 21.03 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.075e-05/0.4946, allocations: 143.3 kB / 0.7801 GB, free: 20.91 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/0.4946, allocations: 56.7 kB / 0.7801 GB, free: 20.88 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.175e-05/0.4947, allocations: 56.58 kB / 0.7802 GB, free: 20.86 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.984e-05/0.4948, allocations: 322.8 kB / 0.7805 GB, free: 20.55 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.278e-05/0.4949, allocations: 38.2 kB / 0.7805 GB, free: 20.55 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.495, allocations: 142.2 kB / 0.7806 GB, free: 20.42 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.4952, allocations: 196.8 kB / 0.7808 GB, free: 20.29 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4952, allocations: 1.406 kB / 0.7808 GB, free: 20.29 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000329/0.4955, allocations: 217.9 kB / 0.781 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.4956, allocations: 8.219 kB / 0.781 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.4956, allocations: 3.562 kB / 0.7811 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.4956, allocations: 5.531 kB / 0.7811 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.4958, allocations: 55.38 kB / 0.7811 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.4958, allocations: 9.094 kB / 0.7811 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.4959, allocations: 33.53 kB / 0.7811 GB, free: 20.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.4959, allocations: 11.62 kB / 0.7812 GB, free: 20.23 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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 0.0001094/0.4961, allocations: 137 kB / 0.7813 GB, free: 20.11 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.585e-05/0.4961, allocations: 19.53 kB / 0.7813 GB, free: 20.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002931/0.4964, allocations: 152.2 kB / 0.7815 GB, free: 20.05 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.4964, allocations: 7.609 kB / 0.7815 GB, free: 20.05 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.4964, allocations: 0 / 0.7815 GB, free: 20.05 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4965, allocations: 2.609 kB / 0.7815 GB, free: 20.05 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.4967, allocations: 217.6 kB / 0.7817 GB, free: 19.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.4967, allocations: 0 / 0.7817 GB, free: 19.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.547e-05/0.4968, allocations: 25.62 kB / 0.7817 GB, free: 19.86 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.654e-06/0.4968, allocations: 1.625 kB / 0.7817 GB, free: 19.86 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.4968, allocations: 11.61 kB / 0.7817 GB, free: 19.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4968, allocations: 4.844 kB / 0.7817 GB, free: 19.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.4968, allocations: 0.875 kB / 0.7817 GB, free: 19.85 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.4971, allocations: 219.3 kB / 0.7819 GB, free: 19.71 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.654e-05/0.4972, allocations: 106.2 kB / 0.782 GB, free: 19.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/0.4972, allocations: 6.125 kB / 0.782 GB, free: 19.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.4975, allocations: 20.98 kB / 0.7821 GB, free: 19.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.251e-05/0.4975, allocations: 13.88 kB / 0.7821 GB, free: 19.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.4975, allocations: 13.55 kB / 0.7821 GB, free: 19.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001016/0.4976, allocations: 122.4 kB / 0.7822 GB, free: 19.52 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4976, allocations: 0.9375 kB / 0.7822 GB, free: 19.52 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004246/0.4981, allocations: 78.42 kB / 0.7823 GB, free: 19.51 MB / 0.5762 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.000728/0.4988, allocations: 0.8315 MB / 0.7831 GB, free: 18.84 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002361/0.499, allocations: 127 kB / 0.7832 GB, free: 18.83 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4991, allocations: 5.125 kB / 0.7832 GB, free: 18.83 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 7.024e-05/0.4991, allocations: 44.69 kB / 0.7832 GB, free: 18.83 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.4996, allocations: 48.88 kB / 0.7833 GB, free: 18.82 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.5017, allocations: 2.045 MB / 0.7853 GB, free: 17.32 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.502, allocations: 0.7141 MB / 0.786 GB, free: 16.62 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001637/0.5022, allocations: 45.88 kB / 0.786 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.846e-05/0.5023, allocations: 46.28 kB / 0.7861 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/0.5023, allocations: 0 / 0.7861 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/0.5231, allocations: 5.272 MB / 0.7912 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.997, allocations: 13.55 kB / 0.7912 GB, free: 15.95 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.WaterProperties_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_Media_Examples_WaterProperties.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe 2>&1)