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.005207/0.005207, allocations: 95.97 kB / 15.73 MB, free: 6.051 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.0014/0.0014, allocations: 197.8 kB / 16.67 MB, free: 5.973 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002452/0.002452, allocations: 286.6 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.984/0.984, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 100.1 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1557, allocations: 86.98 MB / 0.7659 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterProperties): time 0.005985/0.1617, allocations: 4.718 MB / 0.7705 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002904/0.1646, allocations: 2.695 MB / 0.7732 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.85e-05/0.1647, allocations: 0 / 0.7732 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.165, allocations: 47.69 kB / 0.7732 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.1653, allocations: 99.34 kB / 0.7733 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.1665, allocations: 0.5111 MB / 0.7738 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000271/0.1667, allocations: 228 kB / 0.774 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.1668, allocations: 13.56 kB / 0.774 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.167, allocations: 119.5 kB / 0.7742 GB, free: 456 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.1671, allocations: 91.64 kB / 0.7743 GB, free: 364 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.1672, allocations: 8 kB / 0.7743 GB, free: 356 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2913/0.4584, allocations: 358.2 kB / 0.7746 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.4586, allocations: 40.28 kB / 0.7746 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.4587, allocations: 77.83 kB / 0.7747 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008812/0.4596, allocations: 359.2 kB / 0.7751 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4596, allocations: 0.5625 kB / 0.7751 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.292e-06/0.4597, allocations: 1.688 kB / 0.7751 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.643e-06/0.4597, allocations: 0 / 0.7751 GB, free: 9.422 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.0006427/0.4603, allocations: 0.508 MB / 0.7756 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.4604, allocations: 10.03 kB / 0.7756 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.729e-05/0.4604, allocations: 54.64 kB / 0.7756 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.4606, allocations: 23.95 kB / 0.7756 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.4608, allocations: 223.9 kB / 0.7759 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.4608, allocations: 10.11 kB / 0.7759 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.4609, allocations: 14.44 kB / 0.7759 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003522/0.4612, allocations: 249.8 kB / 0.7761 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.4612, allocations: 1.688 kB / 0.7761 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.4613, allocations: 12.36 kB / 0.7761 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.239e-05/0.4613, allocations: 8.031 kB / 0.7761 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004654/0.4618, allocations: 428.1 kB / 0.7765 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008537/0.4626, allocations: 0.9564 MB / 0.7775 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.4629, allocations: 167.6 kB / 0.7776 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.452e-05/0.463, allocations: 62.28 kB / 0.7777 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008335/0.4638, allocations: 1.827 MB / 0.7795 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.4639, allocations: 39.12 kB / 0.7795 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.4639, allocations: 0 / 0.7795 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0003053/0.4642, allocations: 144.2 kB / 0.7797 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.4643, allocations: 57.55 kB / 0.7797 GB, free: 21.75 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.4644, allocations: 163.3 kB / 0.7799 GB, free: 21.65 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.4645, allocations: 40.44 kB / 0.7799 GB, free: 21.62 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.071e-05/0.4646, allocations: 148.1 kB / 0.78 GB, free: 21.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.752e-05/0.4646, allocations: 59.03 kB / 0.7801 GB, free: 21.46 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-05/0.4647, allocations: 50.94 kB / 0.7801 GB, free: 21.44 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4648, allocations: 327.3 kB / 0.7805 GB, free: 21.13 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.335e-05/0.4649, allocations: 32.92 kB / 0.7805 GB, free: 21.13 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.465, allocations: 136.6 kB / 0.7806 GB, free: 21 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.4652, allocations: 201.9 kB / 0.7808 GB, free: 20.88 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4652, allocations: 1.406 kB / 0.7808 GB, free: 20.88 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003026/0.4655, allocations: 219.2 kB / 0.781 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.4655, allocations: 7.891 kB / 0.781 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.4655, allocations: 4.938 kB / 0.781 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4655, allocations: 5.312 kB / 0.781 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.4657, allocations: 59.14 kB / 0.7811 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.4657, allocations: 5.234 kB / 0.7811 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.4658, allocations: 29.39 kB / 0.7811 GB, free: 20.81 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.4658, allocations: 12.44 kB / 0.7811 GB, free: 20.81 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.0001087/0.466, allocations: 139.6 kB / 0.7813 GB, free: 20.69 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.466, allocations: 16.97 kB / 0.7813 GB, free: 20.68 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002818/0.4663, allocations: 154.2 kB / 0.7814 GB, free: 20.64 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.4663, allocations: 6.188 kB / 0.7814 GB, free: 20.64 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4663, allocations: 0.6562 kB / 0.7814 GB, free: 20.64 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4663, allocations: 0.7031 kB / 0.7814 GB, free: 20.64 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.4666, allocations: 219.4 kB / 0.7817 GB, free: 20.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4666, allocations: 0 / 0.7817 GB, free: 20.44 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.784e-05/0.4667, allocations: 28.27 kB / 0.7817 GB, free: 20.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4667, allocations: 4.812 kB / 0.7817 GB, free: 20.44 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.4667, allocations: 9 kB / 0.7817 GB, free: 20.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.4667, allocations: 4.656 kB / 0.7817 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.4667, allocations: 0 / 0.7817 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.4669, allocations: 220.6 kB / 0.7819 GB, free: 20.29 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.344e-05/0.467, allocations: 108.7 kB / 0.782 GB, free: 20.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.4671, allocations: 5.922 kB / 0.782 GB, free: 20.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.4673, allocations: 21.8 kB / 0.782 GB, free: 20.19 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.104e-05/0.4673, allocations: 12.86 kB / 0.7821 GB, free: 20.18 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.4673, allocations: 14.92 kB / 0.7821 GB, free: 20.18 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.02e-05/0.4674, allocations: 125.4 kB / 0.7822 GB, free: 20.11 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4674, allocations: 0 / 0.7822 GB, free: 20.11 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003662/0.4678, allocations: 79.3 kB / 0.7823 GB, free: 20.1 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.0007011/0.4685, allocations: 0.8262 MB / 0.7831 GB, free: 19.42 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002179/0.4687, allocations: 125.9 kB / 0.7832 GB, free: 19.41 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4687, allocations: 5.031 kB / 0.7832 GB, free: 19.41 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 8.396e-05/0.4688, allocations: 47.47 kB / 0.7832 GB, free: 19.41 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.4693, allocations: 48.33 kB / 0.7833 GB, free: 19.41 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.4712, allocations: 2.04 MB / 0.7853 GB, free: 17.91 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.4716, allocations: 0.7172 MB / 0.786 GB, free: 17.21 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001427/0.4717, allocations: 45.02 kB / 0.786 GB, free: 17.19 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.964e-05/0.4718, allocations: 46.11 kB / 0.7861 GB, free: 17.18 MB / 0.5762 GB Notification: Performance of SimCode: time 2.1e-07/0.4718, allocations: 0.9375 kB / 0.7861 GB, free: 17.18 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.4968, allocations: 5.269 MB / 0.7912 GB, free: 16.54 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.498/7.995, allocations: 12 kB / 0.7912 GB, free: 16.53 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)