Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_SteamTemperatureEnthalpyInversion",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.007356/0.007356, allocations: 100.1 kB / 15.73 MB, free: 6.445 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.001918/0.001918, allocations: 191.5 kB / 16.67 MB, free: 6.348 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8065/0.8065, allocations: 132.2 MB / 422.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002601/0.002601, allocations: 70.56 kB / 0.5809 GB, free: 1.113 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.1715, allocations: 80.21 MB / 0.6592 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1692/0.3407, allocations: 135.4 MB / 0.7914 GB, free: 6.035 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0001697/0.3409, allocations: 59.84 kB / 0.7915 GB, free: 5.977 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.179e-05/0.3409, allocations: 3.938 kB / 0.7915 GB, free: 5.973 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.341, allocations: 3.938 kB / 0.7915 GB, free: 5.969 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 6.907e-05/0.3411, allocations: 11.92 kB / 0.7915 GB, free: 5.957 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008042/0.342, allocations: 239 kB / 0.7917 GB, free: 5.723 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 8.651e-05/0.3421, allocations: 39.84 kB / 0.7918 GB, free: 5.684 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 3.25e-05/0.3421, allocations: 0 / 0.7918 GB, free: 5.684 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 3.229e-05/0.3421, allocations: 8 kB / 0.7918 GB, free: 5.676 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 8.15e-05/0.3422, allocations: 23.91 kB / 0.7918 GB, free: 5.652 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.3422, allocations: 4 kB / 0.7918 GB, free: 5.648 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004861/0.3427, allocations: 243.4 kB / 0.792 GB, free: 5.41 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 4.341e-05/0.3428, allocations: 7.984 kB / 0.792 GB, free: 5.402 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 2.494e-05/0.3428, allocations: 4 kB / 0.792 GB, free: 5.398 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.000382/0.3432, allocations: 193.2 kB / 0.7922 GB, free: 5.211 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3432, allocations: 0 / 0.7922 GB, free: 5.211 MB / 0.6231 GB Notification: Performance of FrontEnd: time 3.317e-06/0.3432, allocations: 7.938 kB / 0.7922 GB, free: 5.203 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3432, allocations: 0 / 0.7922 GB, free: 5.203 MB / 0.6231 GB 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.0004854/0.3437, allocations: 363.1 kB / 0.7926 GB, free: 4.801 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.3438, allocations: 12.03 kB / 0.7926 GB, free: 4.789 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.666e-05/0.3438, allocations: 30.75 kB / 0.7926 GB, free: 4.75 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.153e-05/0.3439, allocations: 12.86 kB / 0.7926 GB, free: 4.738 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.344, allocations: 164.4 kB / 0.7928 GB, free: 4.539 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.012e-05/0.3441, allocations: 30.02 kB / 0.7928 GB, free: 4.504 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.3441, allocations: 4 kB / 0.7928 GB, free: 4.5 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.3443, allocations: 37.69 kB / 0.7929 GB, free: 4.457 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3443, allocations: 3.938 kB / 0.7929 GB, free: 4.453 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.587e-06/0.3443, allocations: 0 / 0.7929 GB, free: 4.453 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.3443, allocations: 11.98 kB / 0.7929 GB, free: 4.441 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.063e-05/0.3444, allocations: 15.94 kB / 0.7929 GB, free: 4.426 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008292/0.3452, allocations: 0.5989 MB / 0.7935 GB, free: 3.703 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 4.416e-05/0.3453, allocations: 18.58 kB / 0.7935 GB, free: 3.676 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.114e-05/0.3453, allocations: 8.859 kB / 0.7935 GB, free: 3.664 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002462/0.3456, allocations: 344.5 kB / 0.7938 GB, free: 3.254 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.3456, allocations: 30.56 kB / 0.7939 GB, free: 3.215 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.3456, allocations: 0 / 0.7939 GB, free: 3.215 MB / 0.6231 GB Notification: Performance of matching and sorting (n=1): time 0.0001538/0.3457, allocations: 37.59 kB / 0.7939 GB, free: 3.172 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.3458, allocations: 55.41 kB / 0.794 GB, free: 3.105 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.587e-05/0.3459, allocations: 101.8 kB / 0.794 GB, free: 2.996 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.3459, allocations: 25.7 kB / 0.7941 GB, free: 2.965 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 5.94e-05/0.346, allocations: 96.22 kB / 0.7942 GB, free: 2.867 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.389e-06/0.346, allocations: 0 / 0.7942 GB, free: 2.867 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.346, allocations: 17.7 kB / 0.7942 GB, free: 2.844 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3462, allocations: 314.8 kB / 0.7945 GB, free: 2.527 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.261e-05/0.3462, allocations: 12 kB / 0.7945 GB, free: 2.516 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.333e-05/0.3462, allocations: 13.72 kB / 0.7945 GB, free: 2.496 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.609e-05/0.3463, allocations: 29.64 kB / 0.7945 GB, free: 2.461 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3463, allocations: 0 / 0.7945 GB, free: 2.461 MB / 0.6231 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.914e-05/0.3464, allocations: 49.62 kB / 0.7946 GB, free: 2.406 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3464, allocations: 10.34 kB / 0.7946 GB, free: 2.398 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.3464, allocations: 0 / 0.7946 GB, free: 2.398 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.3464, allocations: 0 / 0.7946 GB, free: 2.398 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.425e-05/0.3465, allocations: 4 kB / 0.7946 GB, free: 2.395 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3465, allocations: 4 kB / 0.7946 GB, free: 2.391 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.331e-05/0.3465, allocations: 11.83 kB / 0.7946 GB, free: 2.379 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/0.3465, allocations: 64 / 0.7946 GB, free: 2.379 MB / 0.6231 GB 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 7.98e-05/0.3466, allocations: 113.8 kB / 0.7947 GB, free: 2.258 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.3466, allocations: 0 / 0.7947 GB, free: 2.258 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.3468, allocations: 128.8 kB / 0.7948 GB, free: 2.121 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-05/0.3468, allocations: 180.2 kB / 0.795 GB, free: 1.938 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.458e-05/0.3469, allocations: 176.3 kB / 0.7952 GB, free: 1.758 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.148e-05/0.347, allocations: 196.1 kB / 0.7954 GB, free: 1.559 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.3473, allocations: 401.2 kB / 0.7958 GB, free: 1.109 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.975e-05/0.3474, allocations: 112.9 kB / 0.7959 GB, free: 0.9922 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.148e-05/0.3474, allocations: 101 kB / 0.796 GB, free: 0.8867 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.823e-05/0.3475, allocations: 176.3 kB / 0.7961 GB, free: 0.707 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-05/0.3476, allocations: 184.2 kB / 0.7963 GB, free: 0.5195 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-05/0.3477, allocations: 184.3 kB / 0.7965 GB, free: 340 kB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.788e-05/0.3477, allocations: 184.4 kB / 0.7967 GB, free: 148 kB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.348, allocations: 303.8 kB / 0.7969 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 8.624e-05/0.348, allocations: 186 kB / 0.7971 GB, free: 15.62 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.256e-05/0.3481, allocations: 188.2 kB / 0.7973 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.3483, allocations: 104.9 kB / 0.7974 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.152e-05/0.3484, allocations: 180.3 kB / 0.7976 GB, free: 15.13 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.973e-05/0.3485, allocations: 108.9 kB / 0.7977 GB, free: 15.02 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 5.853e-05/0.3485, allocations: 87.28 kB / 0.7978 GB, free: 14.93 MB / 0.6387 GB Notification: Performance of sort global known variables: time 3.236e-06/0.3485, allocations: 0 / 0.7978 GB, free: 14.93 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0003198/0.3489, allocations: 67.67 kB / 0.7978 GB, free: 14.87 MB / 0.6387 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 (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.0006502/0.3495, allocations: 0.8829 MB / 0.7987 GB, free: 13.95 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 7.266e-05/0.3496, allocations: 7.938 kB / 0.7987 GB, free: 13.95 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3496, allocations: 4 kB / 0.7987 GB, free: 13.94 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 1.433e-06/0.3496, allocations: 0 / 0.7987 GB, free: 13.94 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.35, allocations: 471.7 kB / 0.7991 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.3512, allocations: 1.336 MB / 0.8005 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.3516, allocations: 0.6768 MB / 0.8011 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 4.244e-05/0.3516, allocations: 6.188 kB / 0.8011 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.702e-05/0.3516, allocations: 11.44 kB / 0.8011 GB, free: 11.34 MB / 0.6387 GB Notification: Performance of SimCode: time 2.61e-07/0.3516, allocations: 3.938 kB / 0.8011 GB, free: 11.33 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.3764, allocations: 2.189 MB / 0.8033 GB, free: 9.254 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.762/8.138, allocations: 11.41 kB / 0.8033 GB, free: 9.25 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)