Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",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.001133/0.001133, allocations: 105.4 kB / 16.27 MB, free: 6.402 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.001125/0.001125, allocations: 192 kB / 17.2 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.259/1.259, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7087/0.7087, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 63.89 kB / 0.4912 GB, free: 7.383 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3154, allocations: 77.93 MB / 0.5673 GB, free: 32.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.003897/0.3193, allocations: 3.264 MB / 0.5705 GB, free: 30.26 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 7.725e-05/0.3194, allocations: 58.92 kB / 0.5705 GB, free: 30.22 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.148e-05/0.3194, allocations: 0 / 0.5705 GB, free: 30.22 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 8.135e-05/0.3195, allocations: 7.094 kB / 0.5705 GB, free: 30.21 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.07e-05/0.3196, allocations: 13.58 kB / 0.5706 GB, free: 30.21 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004459/0.32, allocations: 180.6 kB / 0.5707 GB, free: 30.12 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.307e-05/0.3201, allocations: 37.27 kB / 0.5708 GB, free: 30.11 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.281e-05/0.3202, allocations: 3.75 kB / 0.5708 GB, free: 30.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.489e-05/0.3202, allocations: 16 kB / 0.5708 GB, free: 30.1 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.665e-05/0.3203, allocations: 15.91 kB / 0.5708 GB, free: 30.09 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.3203, allocations: 1.531 kB / 0.5708 GB, free: 30.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003104/0.3206, allocations: 171.2 kB / 0.571 GB, free: 30.02 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.894e-05/0.3206, allocations: 4.719 kB / 0.571 GB, free: 30.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.3207, allocations: 15.7 kB / 0.571 GB, free: 30.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.3209, allocations: 135.2 kB / 0.5711 GB, free: 29.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.3209, allocations: 0 / 0.5711 GB, free: 29.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3209, allocations: 0.5312 kB / 0.5711 GB, free: 29.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.321, allocations: 1.062 kB / 0.5711 GB, free: 29.98 MB / 446.1 MB 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.000273/0.3212, allocations: 350.3 kB / 0.5714 GB, free: 29.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.3213, allocations: 10.25 kB / 0.5715 GB, free: 29.61 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.521e-05/0.3213, allocations: 33.55 kB / 0.5715 GB, free: 29.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.3213, allocations: 2.094 kB / 0.5715 GB, free: 29.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.814e-05/0.3214, allocations: 168.2 kB / 0.5716 GB, free: 29.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.591e-05/0.3215, allocations: 27.27 kB / 0.5717 GB, free: 29.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.873e-06/0.3215, allocations: 5.062 kB / 0.5717 GB, free: 29.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.3216, allocations: 44.67 kB / 0.5717 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.3216, allocations: 5.625 kB / 0.5717 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.3216, allocations: 0 / 0.5717 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.3216, allocations: 2.891 kB / 0.5717 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.404e-05/0.3217, allocations: 17.52 kB / 0.5717 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004841/0.3222, allocations: 0.5782 MB / 0.5723 GB, free: 28.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.009e-05/0.3222, allocations: 20.28 kB / 0.5723 GB, free: 28.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.334e-05/0.3222, allocations: 11.42 kB / 0.5723 GB, free: 28.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001629/0.3224, allocations: 345.4 kB / 0.5727 GB, free: 28.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.3224, allocations: 31.75 kB / 0.5727 GB, free: 28.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.3224, allocations: 4.625 kB / 0.5727 GB, free: 28.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001265/0.3226, allocations: 41.73 kB / 0.5727 GB, free: 28.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.908e-05/0.3226, allocations: 56.41 kB / 0.5728 GB, free: 28.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.368e-05/0.3227, allocations: 107.7 kB / 0.5729 GB, free: 27.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.407e-06/0.3227, allocations: 30.7 kB / 0.5729 GB, free: 27.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.683e-05/0.3227, allocations: 83.53 kB / 0.573 GB, free: 27.85 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-06/0.3227, allocations: 4.438 kB / 0.573 GB, free: 27.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.81e-05/0.3227, allocations: 17.52 kB / 0.573 GB, free: 27.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.185e-05/0.3228, allocations: 320 kB / 0.5733 GB, free: 27.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.483e-05/0.3228, allocations: 3.859 kB / 0.5733 GB, free: 27.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.379e-05/0.3228, allocations: 15.78 kB / 0.5734 GB, free: 27.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.928e-05/0.3229, allocations: 23.44 kB / 0.5734 GB, free: 27.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3229, allocations: 5.094 kB / 0.5734 GB, free: 27.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.579e-05/0.323, allocations: 45.45 kB / 0.5734 GB, free: 27.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.323, allocations: 5.5 kB / 0.5734 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.323, allocations: 3.359 kB / 0.5734 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.323, allocations: 0 / 0.5734 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.32e-05/0.323, allocations: 6.828 kB / 0.5734 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.3231, allocations: 0 / 0.5734 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.3231, allocations: 5.219 kB / 0.5734 GB, free: 27.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.3231, allocations: 4.234 kB / 0.5735 GB, free: 27.43 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (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 prepare postOptimizeDAE: time 4.637e-05/0.3231, allocations: 111.5 kB / 0.5736 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.3232, allocations: 7.453 kB / 0.5736 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.074e-05/0.3233, allocations: 120.6 kB / 0.5737 GB, free: 27.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.619e-05/0.3233, allocations: 181.9 kB / 0.5739 GB, free: 27.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-05/0.3233, allocations: 184.5 kB / 0.574 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.363e-05/0.3234, allocations: 176.9 kB / 0.5742 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.3235, allocations: 416.2 kB / 0.5746 GB, free: 26.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/0.3235, allocations: 103.8 kB / 0.5747 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.485e-05/0.3235, allocations: 106 kB / 0.5748 GB, free: 25.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-05/0.3236, allocations: 179.1 kB / 0.575 GB, free: 25.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.3236, allocations: 183.5 kB / 0.5751 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.501e-05/0.3236, allocations: 182 kB / 0.5753 GB, free: 25.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.549e-05/0.3237, allocations: 179.8 kB / 0.5755 GB, free: 25.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.309e-05/0.3237, allocations: 315.2 kB / 0.5758 GB, free: 24.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.213e-05/0.3238, allocations: 181 kB / 0.576 GB, free: 24.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.3238, allocations: 183.9 kB / 0.5761 GB, free: 24.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.324, allocations: 110.5 kB / 0.5762 GB, free: 24.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.767e-05/0.324, allocations: 186.4 kB / 0.5764 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.324, allocations: 104.5 kB / 0.5765 GB, free: 24.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.213e-05/0.3241, allocations: 86.23 kB / 0.5766 GB, free: 24.06 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3241, allocations: 0 / 0.5766 GB, free: 24.06 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.3243, allocations: 44.58 kB / 0.5766 GB, free: 24.04 MB / 446.1 MB 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 (0): * Single equations (assignments): 0 * 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.0003408/0.3247, allocations: 0.8662 MB / 0.5775 GB, free: 23.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.749e-05/0.3248, allocations: 9.062 kB / 0.5775 GB, free: 23.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3248, allocations: 0.9062 kB / 0.5775 GB, free: 23.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.193e-06/0.3248, allocations: 0 / 0.5775 GB, free: 23.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3251, allocations: 470.4 kB / 0.5779 GB, free: 22.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006789/0.3258, allocations: 1.332 MB / 0.5792 GB, free: 21.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.626e-05/0.3259, allocations: 0.6745 MB / 0.5799 GB, free: 20.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.135e-05/0.3259, allocations: 8.25 kB / 0.5799 GB, free: 20.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.15e-05/0.326, allocations: 10.06 kB / 0.5799 GB, free: 20.72 MB / 446.1 MB Notification: Performance of SimCode: time 2.21e-07/0.326, allocations: 0.6875 kB / 0.5799 GB, free: 20.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.3439, allocations: 2.13 MB / 0.582 GB, free: 20.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.961/7.305, allocations: 5.359 kB / 0.582 GB, free: 20.3 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)