Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.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.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion",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.001114/0.001114, allocations: 104.3 kB / 16.27 MB, free: 5.977 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.001175/0.001175, allocations: 188.5 kB / 17.19 MB, free: 5.605 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.286/1.286, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7258/0.7258, allocations: 122.9 MB / 413.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 59.91 kB / 0.4912 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3202, allocations: 77.93 MB / 0.5673 GB, free: 32.77 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004961/0.3252, allocations: 4.003 MB / 0.5712 GB, free: 29.89 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001891/0.3254, allocations: 160.3 kB / 0.5713 GB, free: 29.79 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.681e-05/0.3255, allocations: 0 / 0.5713 GB, free: 29.79 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.3256, allocations: 1.266 kB / 0.5713 GB, free: 29.79 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.933e-05/0.3257, allocations: 13.95 kB / 0.5713 GB, free: 29.78 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003386/0.326, allocations: 81.94 kB / 0.5714 GB, free: 29.74 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.055e-05/0.3261, allocations: 29.33 kB / 0.5715 GB, free: 29.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.3262, allocations: 2.734 kB / 0.5715 GB, free: 29.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.967e-05/0.3262, allocations: 23.27 kB / 0.5715 GB, free: 29.72 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.3263, allocations: 13.42 kB / 0.5715 GB, free: 29.71 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.3263, allocations: 1.188 kB / 0.5715 GB, free: 29.71 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.3265, allocations: 66.33 kB / 0.5716 GB, free: 29.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.078e-05/0.3265, allocations: 5.406 kB / 0.5716 GB, free: 29.68 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.684e-05/0.3266, allocations: 8.938 kB / 0.5716 GB, free: 29.68 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.3267, allocations: 40.58 kB / 0.5716 GB, free: 29.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3267, allocations: 1 kB / 0.5716 GB, free: 29.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3267, allocations: 1 kB / 0.5716 GB, free: 29.67 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.3267, allocations: 0 / 0.5716 GB, free: 29.67 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.0002861/0.327, allocations: 338.9 kB / 0.5719 GB, free: 29.31 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.3271, allocations: 10.09 kB / 0.5719 GB, free: 29.31 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.903e-05/0.3271, allocations: 34.36 kB / 0.572 GB, free: 29.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.07e-05/0.3271, allocations: 2.094 kB / 0.572 GB, free: 29.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.57e-05/0.3272, allocations: 166.9 kB / 0.5721 GB, free: 29.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.686e-05/0.3272, allocations: 35.56 kB / 0.5722 GB, free: 29.04 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.746e-06/0.3273, allocations: 6.891 kB / 0.5722 GB, free: 29.03 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.3274, allocations: 39.2 kB / 0.5722 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.3274, allocations: 9.188 kB / 0.5722 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.3274, allocations: 0 / 0.5722 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.3274, allocations: 1.922 kB / 0.5722 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.048e-05/0.3275, allocations: 15.86 kB / 0.5722 GB, free: 28.99 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003266/0.3278, allocations: 333.3 kB / 0.5726 GB, free: 28.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.97e-05/0.3278, allocations: 20.34 kB / 0.5726 GB, free: 28.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.329e-05/0.3279, allocations: 6.594 kB / 0.5726 GB, free: 28.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.436e-05/0.3279, allocations: 85.62 kB / 0.5727 GB, free: 28.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.742e-05/0.328, allocations: 33.17 kB / 0.5727 GB, free: 28.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.328, allocations: 1.281 kB / 0.5727 GB, free: 28.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001208/0.3281, allocations: 45.38 kB / 0.5727 GB, free: 28.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.165e-05/0.3281, allocations: 53 kB / 0.5728 GB, free: 28.35 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.498e-05/0.3282, allocations: 103.2 kB / 0.5729 GB, free: 28.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-06/0.3282, allocations: 26.33 kB / 0.5729 GB, free: 28.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.483e-05/0.3282, allocations: 90.39 kB / 0.573 GB, free: 28.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.011e-06/0.3282, allocations: 6.516 kB / 0.573 GB, free: 28.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.3283, allocations: 18.17 kB / 0.573 GB, free: 28.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.822e-05/0.3283, allocations: 318.5 kB / 0.5733 GB, free: 27.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.395e-05/0.3283, allocations: 2.922 kB / 0.5733 GB, free: 27.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.929e-05/0.3283, allocations: 16.33 kB / 0.5733 GB, free: 27.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.978e-05/0.3284, allocations: 22.69 kB / 0.5734 GB, free: 27.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3284, allocations: 4.906 kB / 0.5734 GB, free: 27.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.369e-05/0.3285, allocations: 45.81 kB / 0.5734 GB, free: 27.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.3285, allocations: 8.344 kB / 0.5734 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3285, allocations: 2.766 kB / 0.5734 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.3285, allocations: 0 / 0.5734 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.961e-05/0.3285, allocations: 6.5 kB / 0.5734 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.3286, allocations: 2.047 kB / 0.5734 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.815e-05/0.3286, allocations: 12.38 kB / 0.5734 GB, free: 27.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.3286, allocations: 4.562 kB / 0.5735 GB, free: 27.7 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.142e-05/0.3286, allocations: 112 kB / 0.5736 GB, free: 27.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.3287, allocations: 11.06 kB / 0.5736 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.322e-05/0.3287, allocations: 115.4 kB / 0.5737 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/0.3288, allocations: 185.6 kB / 0.5739 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.239e-05/0.3288, allocations: 178.8 kB / 0.574 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.202e-05/0.3288, allocations: 184.2 kB / 0.5742 GB, free: 26.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.329, allocations: 411.6 kB / 0.5746 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.689e-05/0.329, allocations: 103.3 kB / 0.5747 GB, free: 26.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.612e-05/0.329, allocations: 108.4 kB / 0.5748 GB, free: 26.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.109e-05/0.329, allocations: 182.4 kB / 0.575 GB, free: 26.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.3291, allocations: 182.5 kB / 0.5751 GB, free: 25.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.078e-05/0.3291, allocations: 181.5 kB / 0.5753 GB, free: 25.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.036e-05/0.3291, allocations: 179 kB / 0.5755 GB, free: 25.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.038e-05/0.3292, allocations: 313 kB / 0.5758 GB, free: 25.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.918e-05/0.3292, allocations: 180.6 kB / 0.576 GB, free: 24.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.477e-05/0.3293, allocations: 182.2 kB / 0.5761 GB, free: 24.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.3294, allocations: 107.4 kB / 0.5762 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.5e-05/0.3294, allocations: 186.2 kB / 0.5764 GB, free: 24.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.3294, allocations: 108.1 kB / 0.5765 GB, free: 24.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.625e-05/0.3295, allocations: 81.97 kB / 0.5766 GB, free: 24.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3295, allocations: 0.7188 kB / 0.5766 GB, free: 24.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002384/0.3297, allocations: 24.34 kB / 0.5766 GB, free: 24.32 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.0002959/0.33, allocations: 0.8268 MB / 0.5774 GB, free: 23.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.263e-05/0.3301, allocations: 12.22 kB / 0.5774 GB, free: 23.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3301, allocations: 0.5312 kB / 0.5774 GB, free: 23.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.3301, allocations: 0 / 0.5774 GB, free: 23.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.3304, allocations: 465.6 kB / 0.5779 GB, free: 23.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006443/0.3311, allocations: 1.318 MB / 0.5792 GB, free: 21.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.41e-05/0.3312, allocations: 0.6743 MB / 0.5798 GB, free: 21.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.772e-05/0.3312, allocations: 6.922 kB / 0.5798 GB, free: 21.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.777e-05/0.3312, allocations: 9.641 kB / 0.5798 GB, free: 21.03 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3312, allocations: 0.875 kB / 0.5798 GB, free: 21.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01583/0.3471, allocations: 1.484 MB / 0.5813 GB, free: 20.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.943/7.29, allocations: 14.11 kB / 0.5813 GB, free: 20.69 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion_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_Examples_WaterTemperatureEnthalpyInversion.fmu > IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)