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.005822/0.005822, allocations: 99.45 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.00162/0.00162, allocations: 193.7 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.78/0.78, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 62.34 kB / 0.5808 GB, free: 24.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1345, allocations: 80.2 MB / 0.6592 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.4817/0.6162, allocations: 135.4 MB / 0.7914 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0001711/0.6165, allocations: 52.88 kB / 0.7915 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.256e-05/0.6165, allocations: 0 / 0.7915 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.6166, allocations: 3.938 kB / 0.7915 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 7.109e-05/0.6167, allocations: 11.67 kB / 0.7915 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.000786/0.6175, allocations: 252.9 kB / 0.7917 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 8.281e-05/0.6176, allocations: 35 kB / 0.7918 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.666e-05/0.6177, allocations: 5.188 kB / 0.7918 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.405e-05/0.6177, allocations: 11.33 kB / 0.7918 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 6.874e-05/0.6178, allocations: 11.5 kB / 0.7918 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.6178, allocations: 5.188 kB / 0.7918 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004387/0.6182, allocations: 246.4 kB / 0.792 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 4.338e-05/0.6183, allocations: 8.125 kB / 0.792 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.586e-05/0.6183, allocations: 11.75 kB / 0.792 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0003288/0.6187, allocations: 185.3 kB / 0.7922 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.6187, allocations: 0 / 0.7922 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.867e-06/0.6187, allocations: 0 / 0.7922 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.6187, allocations: 5.406 kB / 0.7922 GB, free: 12.92 MB / 0.5919 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.0004109/0.6191, allocations: 360.9 kB / 0.7926 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.6191, allocations: 10.38 kB / 0.7926 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.932e-05/0.6192, allocations: 40.39 kB / 0.7926 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/0.6192, allocations: 6.156 kB / 0.7926 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.846e-05/0.6193, allocations: 169.2 kB / 0.7928 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.637e-05/0.6194, allocations: 27.36 kB / 0.7928 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.6194, allocations: 9.453 kB / 0.7928 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.6196, allocations: 47.56 kB / 0.7929 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.6196, allocations: 0 / 0.7929 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.6196, allocations: 0 / 0.7929 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.6196, allocations: 5.156 kB / 0.7929 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.444e-05/0.6197, allocations: 19.22 kB / 0.7929 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007125/0.6204, allocations: 0.5971 MB / 0.7935 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 4.268e-05/0.6204, allocations: 16.8 kB / 0.7935 GB, free: 11.56 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.518e-05/0.6205, allocations: 9.484 kB / 0.7935 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001877/0.6207, allocations: 337.4 kB / 0.7938 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.6207, allocations: 36.39 kB / 0.7939 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.6207, allocations: 1.469 kB / 0.7939 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1): time 0.0001372/0.6208, allocations: 40.92 kB / 0.7939 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.6209, allocations: 51.41 kB / 0.7939 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.501e-05/0.621, allocations: 106.2 kB / 0.794 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.621, allocations: 25.7 kB / 0.7941 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 4.301e-05/0.621, allocations: 86.03 kB / 0.7942 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.544e-06/0.621, allocations: 3.953 kB / 0.7942 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.6211, allocations: 23.59 kB / 0.7942 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.648e-05/0.6212, allocations: 315.6 kB / 0.7945 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.454e-05/0.6212, allocations: 4.625 kB / 0.7945 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.433e-05/0.6212, allocations: 17.56 kB / 0.7945 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.332e-05/0.6213, allocations: 25.69 kB / 0.7945 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.6213, allocations: 0.7188 kB / 0.7945 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.503e-05/0.6214, allocations: 49.14 kB / 0.7946 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.6214, allocations: 11.27 kB / 0.7946 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.6214, allocations: 3.156 kB / 0.7946 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.6214, allocations: 1.25 kB / 0.7946 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.287e-05/0.6215, allocations: 5.094 kB / 0.7946 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.6215, allocations: 0 / 0.7946 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.777e-05/0.6215, allocations: 1.125 kB / 0.7946 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.6215, allocations: 6.219 kB / 0.7946 GB, free: 10.4 MB / 0.5919 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.009e-05/0.6216, allocations: 114 kB / 0.7947 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.6216, allocations: 5.078 kB / 0.7947 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.6217, allocations: 119.5 kB / 0.7948 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.163e-05/0.6218, allocations: 181.4 kB / 0.795 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.546e-05/0.6218, allocations: 182.4 kB / 0.7952 GB, free: 9.797 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.263e-05/0.6219, allocations: 185.1 kB / 0.7954 GB, free: 9.609 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.6221, allocations: 416.5 kB / 0.7957 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/0.6222, allocations: 106 kB / 0.7958 GB, free: 9.047 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.899e-05/0.6222, allocations: 102.1 kB / 0.7959 GB, free: 8.941 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.147e-05/0.6222, allocations: 182.6 kB / 0.7961 GB, free: 8.762 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.305e-05/0.6223, allocations: 181.4 kB / 0.7963 GB, free: 8.578 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.419e-05/0.6224, allocations: 181.3 kB / 0.7965 GB, free: 8.395 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.983e-05/0.6224, allocations: 184.9 kB / 0.7966 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001156/0.6225, allocations: 311 kB / 0.7969 GB, free: 7.895 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.334e-05/0.6226, allocations: 187 kB / 0.7971 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.44e-05/0.6227, allocations: 177.4 kB / 0.7973 GB, free: 7.508 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.6228, allocations: 119.1 kB / 0.7974 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.6229, allocations: 177.5 kB / 0.7976 GB, free: 7.215 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.6229, allocations: 102.2 kB / 0.7977 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 4.235e-05/0.623, allocations: 90.14 kB / 0.7978 GB, free: 7.031 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.623, allocations: 1.25 kB / 0.7978 GB, free: 7.031 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000313/0.6233, allocations: 51.92 kB / 0.7978 GB, free: 7.02 MB / 0.5919 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.0005154/0.6238, allocations: 0.8874 MB / 0.7987 GB, free: 6.188 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 6.983e-05/0.6239, allocations: 9.641 kB / 0.7987 GB, free: 6.188 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6239, allocations: 3.938 kB / 0.7987 GB, free: 6.184 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.152e-06/0.6239, allocations: 0 / 0.7987 GB, free: 6.184 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004521/0.6244, allocations: 460.2 kB / 0.7991 GB, free: 5.738 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009299/0.6253, allocations: 1.347 MB / 0.8004 GB, free: 4.41 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.6255, allocations: 0.6756 MB / 0.8011 GB, free: 3.715 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 3.605e-05/0.6256, allocations: 4.219 kB / 0.8011 GB, free: 3.715 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.304e-05/0.6256, allocations: 13.56 kB / 0.8011 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/0.6256, allocations: 0 / 0.8011 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01774/0.6434, allocations: 2.203 MB / 0.8033 GB, free: 3.23 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.387/8.03, allocations: 7.188 kB / 0.8033 GB, free: 3.227 MB / 0.5919 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)