Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",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.004902/0.004902, allocations: 100.2 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.001069/0.001069, allocations: 192.5 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002132/0.002132, allocations: 285.1 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9332/0.9332, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 96.06 kB / 0.681 GB, free: 7.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.371, allocations: 86.97 MB / 0.766 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.005335/0.3763, allocations: 4.046 MB / 0.7699 GB, free: 15.77 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002667/0.379, allocations: 2.426 MB / 0.7723 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.3791, allocations: 0 / 0.7723 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000265/0.3794, allocations: 55.67 kB / 0.7723 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002973/0.3798, allocations: 95.34 kB / 0.7724 GB, free: 13.19 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.3811, allocations: 0.5386 MB / 0.773 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000354/0.3814, allocations: 259.9 kB / 0.7732 GB, free: 12.41 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 5.436e-05/0.3815, allocations: 21.53 kB / 0.7732 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002292/0.3817, allocations: 119.5 kB / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.3819, allocations: 95.64 kB / 0.7734 GB, free: 12.17 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.3819, allocations: 8 kB / 0.7734 GB, free: 12.16 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008478/0.3828, allocations: 451.3 kB / 0.7739 GB, free: 11.72 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.3829, allocations: 39.83 kB / 0.7739 GB, free: 11.68 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.383, allocations: 87.59 kB / 0.774 GB, free: 11.6 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006807/0.3837, allocations: 411.9 kB / 0.7744 GB, free: 11.2 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3837, allocations: 0 / 0.7744 GB, free: 11.2 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3837, allocations: 7.938 kB / 0.7744 GB, free: 11.2 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.3837, allocations: 0 / 0.7744 GB, free: 11.2 MB / 0.545 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.000779/0.3845, allocations: 0.5025 MB / 0.7749 GB, free: 10.64 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3845, allocations: 8.031 kB / 0.7749 GB, free: 10.63 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.483e-05/0.3846, allocations: 54.73 kB / 0.7749 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002087/0.3867, allocations: 180.6 kB / 0.7751 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.387, allocations: 212.1 kB / 0.7753 GB, free: 10.15 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.3871, allocations: 16.64 kB / 0.7753 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.3871, allocations: 12.38 kB / 0.7753 GB, free: 10.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006538/0.3878, allocations: 316.1 kB / 0.7756 GB, free: 9.777 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3878, allocations: 0 / 0.7756 GB, free: 9.777 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.3878, allocations: 8 kB / 0.7757 GB, free: 9.77 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.3879, allocations: 8 kB / 0.7757 GB, free: 9.762 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007394/0.3886, allocations: 259.6 kB / 0.7759 GB, free: 9.508 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.3902, allocations: 1.385 MB / 0.7773 GB, free: 8.008 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000682/0.3909, allocations: 202.6 kB / 0.7775 GB, free: 7.805 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.3912, allocations: 84.75 kB / 0.7775 GB, free: 7.719 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.3912, allocations: 4 kB / 0.7775 GB, free: 7.715 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.3912, allocations: 34.56 kB / 0.7776 GB, free: 7.672 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.3912, allocations: 0 / 0.7776 GB, free: 7.672 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.0008058/0.392, allocations: 241.4 kB / 0.7778 GB, free: 7.43 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.3921, allocations: 55.41 kB / 0.7779 GB, free: 7.363 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.3922, allocations: 157 kB / 0.778 GB, free: 7.203 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.3923, allocations: 33.7 kB / 0.778 GB, free: 7.164 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.674e-05/0.3923, allocations: 128.2 kB / 0.7782 GB, free: 7.035 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.016e-05/0.3924, allocations: 63.44 kB / 0.7782 GB, free: 6.973 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.86e-05/0.3925, allocations: 57.92 kB / 0.7783 GB, free: 6.906 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.3926, allocations: 322.8 kB / 0.7786 GB, free: 6.582 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.3929, allocations: 68.36 kB / 0.7786 GB, free: 6.516 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.3931, allocations: 142.3 kB / 0.7788 GB, free: 6.344 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005074/0.3936, allocations: 216.4 kB / 0.779 GB, free: 6.102 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3937, allocations: 8 kB / 0.779 GB, free: 6.094 MB / 0.545 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006142/0.3943, allocations: 249.1 kB / 0.7792 GB, free: 5.844 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3943, allocations: 12.25 kB / 0.7792 GB, free: 5.832 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3943, allocations: 8 kB / 0.7793 GB, free: 5.824 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.3943, allocations: 4 kB / 0.7793 GB, free: 5.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.3947, allocations: 63.89 kB / 0.7793 GB, free: 5.758 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.3947, allocations: 4 kB / 0.7793 GB, free: 5.754 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.395, allocations: 31.83 kB / 0.7794 GB, free: 5.723 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.395, allocations: 11.98 kB / 0.7794 GB, free: 5.711 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * 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 0.0001141/0.3951, allocations: 136.1 kB / 0.7795 GB, free: 5.57 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-05/0.3952, allocations: 19.91 kB / 0.7795 GB, free: 5.551 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000642/0.3958, allocations: 230.6 kB / 0.7797 GB, free: 5.312 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3959, allocations: 4 kB / 0.7797 GB, free: 5.309 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3959, allocations: 0 / 0.7797 GB, free: 5.309 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.3959, allocations: 0 / 0.7797 GB, free: 5.309 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.3962, allocations: 249.4 kB / 0.78 GB, free: 5.016 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3962, allocations: 4 kB / 0.78 GB, free: 5.012 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.3965, allocations: 39.97 kB / 0.78 GB, free: 4.973 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.3965, allocations: 8 kB / 0.78 GB, free: 4.965 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.3965, allocations: 7.984 kB / 0.78 GB, free: 4.957 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3965, allocations: 3.938 kB / 0.78 GB, free: 4.953 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3965, allocations: 0 / 0.78 GB, free: 4.953 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005615/0.3971, allocations: 301.3 kB / 0.7803 GB, free: 4.645 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.465e-05/0.3972, allocations: 105 kB / 0.7804 GB, free: 4.523 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/0.3973, allocations: 8 kB / 0.7804 GB, free: 4.516 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.3976, allocations: 15.98 kB / 0.7804 GB, free: 4.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.3976, allocations: 7.984 kB / 0.7805 GB, free: 4.492 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.3976, allocations: 15.98 kB / 0.7805 GB, free: 4.477 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.054e-05/0.3977, allocations: 117.4 kB / 0.7806 GB, free: 4.363 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3977, allocations: 0 / 0.7806 GB, free: 4.363 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000357/0.3981, allocations: 63.94 kB / 0.7806 GB, free: 4.301 MB / 0.545 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 (20): * Single equations (assignments): 20 * 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.0008917/0.399, allocations: 0.8663 MB / 0.7815 GB, free: 3.41 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005351/0.3995, allocations: 176.4 kB / 0.7817 GB, free: 3.238 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3995, allocations: 7.984 kB / 0.7817 GB, free: 3.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002414/0.3998, allocations: 87.83 kB / 0.7817 GB, free: 3.145 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.4003, allocations: 64.81 kB / 0.7818 GB, free: 3.082 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.4033, allocations: 2.169 MB / 0.7839 GB, free: 0.7773 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.4036, allocations: 0.7175 MB / 0.7846 GB, free: 36 kB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002743/0.4039, allocations: 49.97 kB / 0.7847 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.404, allocations: 51.41 kB / 0.7847 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.404, allocations: 0 / 0.7847 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/0.4248, allocations: 5.205 MB / 0.7898 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.616/8.041, allocations: 13.22 kB / 0.7898 GB, free: 10.94 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_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_Specialized_Water_Examples_TemperatureDependentDensityProperties.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1)