Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_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.004766/0.004766, allocations: 102.9 kB / 15.74 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.001125/0.001125, allocations: 201.2 kB / 16.68 MB, free: 5.965 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9009/0.9009, allocations: 135.1 MB / 425.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.89 kB / 0.5851 GB, free: 3.859 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3652, allocations: 80.91 MB / 0.6641 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.141/0.5063, allocations: 135.4 MB / 0.7964 GB, free: 9.684 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0001968/0.5066, allocations: 55.86 kB / 0.7964 GB, free: 9.629 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.277e-05/0.5066, allocations: 3.938 kB / 0.7964 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.5068, allocations: 7.938 kB / 0.7964 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 7.636e-05/0.5069, allocations: 19.91 kB / 0.7965 GB, free: 9.598 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009396/0.5078, allocations: 239 kB / 0.7967 GB, free: 9.363 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.5079, allocations: 35.84 kB / 0.7967 GB, free: 9.328 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 5.155e-05/0.508, allocations: 4 kB / 0.7967 GB, free: 9.324 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 4.479e-05/0.508, allocations: 11.98 kB / 0.7967 GB, free: 9.312 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 8.167e-05/0.5081, allocations: 23.91 kB / 0.7968 GB, free: 9.289 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.5081, allocations: 0 / 0.7968 GB, free: 9.289 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005173/0.5087, allocations: 247.3 kB / 0.797 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 4.647e-05/0.5087, allocations: 8 kB / 0.797 GB, free: 9.039 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 2.717e-05/0.5088, allocations: 7.984 kB / 0.797 GB, free: 9.031 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0003933/0.5092, allocations: 196.4 kB / 0.7972 GB, free: 8.844 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.5092, allocations: 0 / 0.7972 GB, free: 8.844 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.294e-06/0.5092, allocations: 0 / 0.7972 GB, free: 8.844 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 6.281e-06/0.5092, allocations: 0 / 0.7972 GB, free: 8.844 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.0004552/0.5096, allocations: 363.2 kB / 0.7976 GB, free: 8.441 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.996e-05/0.5097, allocations: 8.031 kB / 0.7976 GB, free: 8.434 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.091e-05/0.5097, allocations: 30.75 kB / 0.7976 GB, free: 8.395 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.787e-05/0.5098, allocations: 12.89 kB / 0.7976 GB, free: 8.383 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.5099, allocations: 164.3 kB / 0.7978 GB, free: 8.184 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.888e-05/0.51, allocations: 42 kB / 0.7978 GB, free: 8.137 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-06/0.51, allocations: 4 kB / 0.7978 GB, free: 8.133 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.5101, allocations: 41.62 kB / 0.7978 GB, free: 8.086 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.5101, allocations: 3.938 kB / 0.7978 GB, free: 8.082 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.5102, allocations: 3.984 kB / 0.7979 GB, free: 8.078 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.5102, allocations: 4 kB / 0.7979 GB, free: 8.074 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.478e-05/0.5102, allocations: 15.98 kB / 0.7979 GB, free: 8.059 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007748/0.511, allocations: 0.595 MB / 0.7985 GB, free: 7.34 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 4.006e-05/0.5111, allocations: 22.52 kB / 0.7985 GB, free: 7.309 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.449e-05/0.5111, allocations: 4.859 kB / 0.7985 GB, free: 7.301 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001981/0.5113, allocations: 336.5 kB / 0.7988 GB, free: 6.898 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.5113, allocations: 34.56 kB / 0.7988 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.5113, allocations: 4 kB / 0.7988 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of matching and sorting (n=1): time 0.0001476/0.5115, allocations: 33.69 kB / 0.7989 GB, free: 6.812 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.5115, allocations: 51.41 kB / 0.7989 GB, free: 6.75 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.22e-05/0.5116, allocations: 105.8 kB / 0.799 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.5116, allocations: 25.7 kB / 0.799 GB, free: 6.605 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.5117, allocations: 84.09 kB / 0.7991 GB, free: 6.52 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 1.009e-05/0.5117, allocations: 19.88 kB / 0.7991 GB, free: 6.5 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.5117, allocations: 13.72 kB / 0.7992 GB, free: 6.48 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.647e-05/0.5118, allocations: 322.9 kB / 0.7995 GB, free: 6.156 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.55e-05/0.5119, allocations: 4 kB / 0.7995 GB, free: 6.152 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.291e-05/0.5119, allocations: 13.72 kB / 0.7995 GB, free: 6.133 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.544e-05/0.5119, allocations: 21.72 kB / 0.7995 GB, free: 6.105 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5119, allocations: 0 / 0.7995 GB, free: 6.105 MB / 0.6231 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.434e-05/0.512, allocations: 45.69 kB / 0.7995 GB, free: 6.055 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.512, allocations: 12 kB / 0.7996 GB, free: 6.043 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.512, allocations: 0 / 0.7996 GB, free: 6.043 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.5121, allocations: 0 / 0.7996 GB, free: 6.043 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.772e-05/0.5121, allocations: 11.98 kB / 0.7996 GB, free: 6.031 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.5121, allocations: 3.938 kB / 0.7996 GB, free: 6.027 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.08e-05/0.5122, allocations: 7.938 kB / 0.7996 GB, free: 6.02 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.5122, allocations: 0 / 0.7996 GB, free: 6.02 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.337e-05/0.5123, allocations: 109.8 kB / 0.7997 GB, free: 5.902 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.869e-05/0.5123, allocations: 3.953 kB / 0.7997 GB, free: 5.898 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.5124, allocations: 128.9 kB / 0.7998 GB, free: 5.762 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.455e-05/0.5125, allocations: 180.2 kB / 0.8 GB, free: 5.578 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.383e-05/0.5125, allocations: 180.2 kB / 0.8002 GB, free: 5.395 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.622e-05/0.5126, allocations: 184.2 kB / 0.8003 GB, free: 5.207 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.5128, allocations: 413.1 kB / 0.8007 GB, free: 4.746 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.836e-05/0.5129, allocations: 105 kB / 0.8008 GB, free: 4.637 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-05/0.5129, allocations: 105 kB / 0.8009 GB, free: 4.527 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.897e-05/0.513, allocations: 180.2 kB / 0.8011 GB, free: 4.344 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.224e-05/0.5131, allocations: 180.3 kB / 0.8013 GB, free: 4.16 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.165e-05/0.5131, allocations: 184.2 kB / 0.8014 GB, free: 3.973 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.316e-05/0.5132, allocations: 188.3 kB / 0.8016 GB, free: 3.781 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.5134, allocations: 307.7 kB / 0.8019 GB, free: 3.457 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 7.671e-05/0.5134, allocations: 178.3 kB / 0.8021 GB, free: 3.258 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.28e-05/0.5135, allocations: 188.2 kB / 0.8023 GB, free: 3.066 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.5137, allocations: 113 kB / 0.8024 GB, free: 2.949 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.5138, allocations: 180.3 kB / 0.8025 GB, free: 2.766 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.5138, allocations: 108.9 kB / 0.8026 GB, free: 2.652 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 5.298e-05/0.5139, allocations: 87.27 kB / 0.8027 GB, free: 2.566 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.5139, allocations: 0 / 0.8027 GB, free: 2.566 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003406/0.5142, allocations: 51.81 kB / 0.8028 GB, free: 2.516 MB / 0.6231 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.0005778/0.5148, allocations: 0.8882 MB / 0.8036 GB, free: 1.598 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 7.03e-05/0.5149, allocations: 11.94 kB / 0.8037 GB, free: 1.586 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5149, allocations: 4 kB / 0.8037 GB, free: 1.582 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 1.463e-06/0.5149, allocations: 0 / 0.8037 GB, free: 1.582 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.5153, allocations: 463.6 kB / 0.8041 GB, free: 1.125 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.5163, allocations: 1.348 MB / 0.8054 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/0.5166, allocations: 0.6806 MB / 0.8061 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 3.854e-05/0.5166, allocations: 4 kB / 0.8061 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.503e-05/0.5167, allocations: 7.438 kB / 0.8061 GB, free: 14.97 MB / 0.6387 GB Notification: Performance of SimCode: time 2.91e-07/0.5167, allocations: 0 / 0.8061 GB, free: 14.97 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01616/0.5328, allocations: 2.209 MB / 0.8083 GB, free: 12.85 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/7.883, allocations: 2.344 kB / 0.8083 GB, free: 12.85 MB / 0.6387 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > IDEAS_dev_IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)