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.004386/0.004386, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001254/0.001254, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002443/0.002443, allocations: 297.8 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.971/0.971, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002653/0.002653, allocations: 91.86 kB / 0.681 GB, free: 7.395 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3763, allocations: 86.97 MB / 0.766 GB, free: 3.816 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.005323/0.3817, allocations: 4.054 MB / 0.7699 GB, free: 15.74 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002807/0.3845, allocations: 2.43 MB / 0.7723 GB, free: 13.3 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.083e-05/0.3846, allocations: 8 kB / 0.7723 GB, free: 13.3 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002288/0.3848, allocations: 43.67 kB / 0.7723 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002416/0.3851, allocations: 91.41 kB / 0.7724 GB, free: 13.16 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.3862, allocations: 0.5239 MB / 0.7729 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.3865, allocations: 263.8 kB / 0.7732 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.447e-05/0.3866, allocations: 17.53 kB / 0.7732 GB, free: 12.37 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.3868, allocations: 107.6 kB / 0.7733 GB, free: 12.26 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.3869, allocations: 99.58 kB / 0.7734 GB, free: 12.16 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.042e-05/0.387, allocations: 8 kB / 0.7734 GB, free: 12.16 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000807/0.3878, allocations: 459.3 kB / 0.7739 GB, free: 11.71 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.19e-05/0.3879, allocations: 39.89 kB / 0.7739 GB, free: 11.67 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.855e-05/0.388, allocations: 79.59 kB / 0.774 GB, free: 11.59 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006338/0.3886, allocations: 415.9 kB / 0.7744 GB, free: 11.19 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3886, allocations: 4 kB / 0.7744 GB, free: 11.19 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.156e-06/0.3886, allocations: 0 / 0.7744 GB, free: 11.19 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.3886, allocations: 3.938 kB / 0.7744 GB, free: 11.18 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.0007575/0.3894, allocations: 0.5091 MB / 0.7749 GB, free: 10.62 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3895, allocations: 12.03 kB / 0.7749 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.237e-05/0.3895, allocations: 46.73 kB / 0.7749 GB, free: 10.56 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001886/0.3914, allocations: 180.6 kB / 0.7751 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003007/0.3917, allocations: 208.2 kB / 0.7753 GB, free: 10.14 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.3918, allocations: 12.7 kB / 0.7753 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.3918, allocations: 12.38 kB / 0.7753 GB, free: 10.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00068/0.3925, allocations: 316.1 kB / 0.7756 GB, free: 9.773 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3925, allocations: 7.938 kB / 0.7756 GB, free: 9.766 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/0.3925, allocations: 12 kB / 0.7756 GB, free: 9.754 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.3926, allocations: 4 kB / 0.7756 GB, free: 9.75 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007138/0.3933, allocations: 259.6 kB / 0.7759 GB, free: 9.496 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.3949, allocations: 1.393 MB / 0.7773 GB, free: 7.988 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006672/0.3956, allocations: 190.4 kB / 0.7774 GB, free: 7.793 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002342/0.3959, allocations: 80.84 kB / 0.7775 GB, free: 7.711 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.3959, allocations: 0 / 0.7775 GB, free: 7.711 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.3959, allocations: 42.5 kB / 0.7776 GB, free: 7.66 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.132e-06/0.3959, allocations: 0 / 0.7776 GB, free: 7.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.0007938/0.3967, allocations: 243.9 kB / 0.7778 GB, free: 7.418 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.3968, allocations: 51.41 kB / 0.7778 GB, free: 7.355 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.397, allocations: 157 kB / 0.778 GB, free: 7.195 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.397, allocations: 33.7 kB / 0.778 GB, free: 7.156 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.305e-05/0.3971, allocations: 132.2 kB / 0.7781 GB, free: 7.023 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.656e-05/0.3972, allocations: 71.41 kB / 0.7782 GB, free: 6.953 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.876e-05/0.3973, allocations: 49.88 kB / 0.7783 GB, free: 6.895 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3974, allocations: 330.8 kB / 0.7786 GB, free: 6.562 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.3976, allocations: 64.41 kB / 0.7786 GB, free: 6.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002739/0.3979, allocations: 142.3 kB / 0.7788 GB, free: 6.328 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.3984, allocations: 225.2 kB / 0.779 GB, free: 6.074 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3984, allocations: 0 / 0.779 GB, free: 6.074 MB / 0.545 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006162/0.399, allocations: 256.5 kB / 0.7792 GB, free: 5.82 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.3991, allocations: 8.031 kB / 0.7792 GB, free: 5.812 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3991, allocations: 4 kB / 0.7792 GB, free: 5.809 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.3991, allocations: 4 kB / 0.7792 GB, free: 5.805 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.3994, allocations: 59.89 kB / 0.7793 GB, free: 5.746 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.3995, allocations: 4 kB / 0.7793 GB, free: 5.742 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.3997, allocations: 31.83 kB / 0.7793 GB, free: 5.711 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/0.3997, allocations: 11.98 kB / 0.7793 GB, free: 5.699 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.0001326/0.3999, allocations: 148 kB / 0.7795 GB, free: 5.547 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.324e-05/0.3999, allocations: 15.91 kB / 0.7795 GB, free: 5.531 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006376/0.4006, allocations: 226.6 kB / 0.7797 GB, free: 5.297 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.4006, allocations: 4 kB / 0.7797 GB, free: 5.293 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4006, allocations: 0 / 0.7797 GB, free: 5.293 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.4006, allocations: 3.984 kB / 0.7797 GB, free: 5.289 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.4009, allocations: 237.4 kB / 0.78 GB, free: 5.008 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.4009, allocations: 4 kB / 0.78 GB, free: 5.004 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.4012, allocations: 55.95 kB / 0.78 GB, free: 4.949 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.4012, allocations: 0 / 0.78 GB, free: 4.949 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.4012, allocations: 0 / 0.78 GB, free: 4.949 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.4013, allocations: 0 / 0.78 GB, free: 4.949 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4013, allocations: 4 kB / 0.78 GB, free: 4.945 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005706/0.4018, allocations: 303.2 kB / 0.7803 GB, free: 4.633 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.402, allocations: 105 kB / 0.7804 GB, free: 4.512 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/0.402, allocations: 4 kB / 0.7804 GB, free: 4.508 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.4023, allocations: 15.98 kB / 0.7804 GB, free: 4.492 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/0.4023, allocations: 7.984 kB / 0.7804 GB, free: 4.484 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.859e-05/0.4023, allocations: 15.98 kB / 0.7804 GB, free: 4.469 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.575e-05/0.4024, allocations: 109.3 kB / 0.7805 GB, free: 4.363 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4024, allocations: 3.938 kB / 0.7806 GB, free: 4.359 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003645/0.4028, allocations: 67.92 kB / 0.7806 GB, free: 4.293 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.001014/0.4038, allocations: 0.8698 MB / 0.7815 GB, free: 3.402 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005449/0.4044, allocations: 180.4 kB / 0.7816 GB, free: 3.227 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.4044, allocations: 4 kB / 0.7816 GB, free: 3.223 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.4046, allocations: 87.88 kB / 0.7817 GB, free: 3.137 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/0.4051, allocations: 67.88 kB / 0.7818 GB, free: 3.07 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003222/0.4084, allocations: 2.168 MB / 0.7839 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.4087, allocations: 0.7136 MB / 0.7846 GB, free: 28 kB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000269/0.409, allocations: 53.98 kB / 0.7847 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.4091, allocations: 43.36 kB / 0.7847 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of SimCode: time 2.81e-07/0.4091, allocations: 4 kB / 0.7847 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.437, allocations: 5.214 MB / 0.7898 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/8.15, allocations: 8.391 kB / 0.7898 GB, free: 10.93 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)