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.004505/0.004505, allocations: 95.17 kB / 15.73 MB, free: 6.047 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.001248/0.001248, allocations: 206.5 kB / 16.68 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.018/1.018, allocations: 135.6 MB / 426.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 71.88 kB / 0.5857 GB, free: 3.25 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.382, allocations: 81.02 MB / 0.6649 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1574/0.5394, allocations: 135.4 MB / 0.7971 GB, free: 9.012 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0001974/0.5397, allocations: 55.73 kB / 0.7972 GB, free: 8.961 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.86e-05/0.5397, allocations: 3.938 kB / 0.7972 GB, free: 8.957 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.0001006/0.5398, allocations: 7.922 kB / 0.7972 GB, free: 8.949 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 7.654e-05/0.5399, allocations: 15.92 kB / 0.7972 GB, free: 8.934 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008782/0.5408, allocations: 234.9 kB / 0.7974 GB, free: 8.703 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 9.234e-05/0.5409, allocations: 35.84 kB / 0.7974 GB, free: 8.668 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 3.887e-05/0.541, allocations: 4 kB / 0.7974 GB, free: 8.664 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 4.04e-05/0.541, allocations: 15.97 kB / 0.7975 GB, free: 8.648 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 7.669e-05/0.5411, allocations: 15.94 kB / 0.7975 GB, free: 8.633 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.5411, allocations: 0 / 0.7975 GB, free: 8.633 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005473/0.5417, allocations: 247.4 kB / 0.7977 GB, free: 8.391 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 4.247e-05/0.5417, allocations: 11.98 kB / 0.7977 GB, free: 8.379 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 2.486e-05/0.5417, allocations: 4 kB / 0.7977 GB, free: 8.375 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.5422, allocations: 196.4 kB / 0.7979 GB, free: 8.188 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.5422, allocations: 0 / 0.7979 GB, free: 8.188 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.242e-06/0.5422, allocations: 0 / 0.7979 GB, free: 8.188 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.206e-06/0.5422, allocations: 0 / 0.7979 GB, free: 8.188 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.0004864/0.5427, allocations: 363.2 kB / 0.7983 GB, free: 7.785 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.5427, allocations: 8.031 kB / 0.7983 GB, free: 7.777 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.585e-05/0.5428, allocations: 34.75 kB / 0.7983 GB, free: 7.734 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.436e-05/0.5428, allocations: 8.891 kB / 0.7983 GB, free: 7.727 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.543, allocations: 164.3 kB / 0.7985 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.158e-05/0.543, allocations: 30.02 kB / 0.7985 GB, free: 7.492 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.5431, allocations: 8 kB / 0.7985 GB, free: 7.484 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001444/0.5432, allocations: 41.67 kB / 0.7985 GB, free: 7.438 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.5432, allocations: 7.875 kB / 0.7985 GB, free: 7.43 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.5433, allocations: 0 / 0.7985 GB, free: 7.43 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.5433, allocations: 4 kB / 0.7985 GB, free: 7.426 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.741e-05/0.5433, allocations: 19.98 kB / 0.7986 GB, free: 7.406 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000832/0.5442, allocations: 0.595 MB / 0.7991 GB, free: 6.688 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 4.515e-05/0.5442, allocations: 18.58 kB / 0.7992 GB, free: 6.66 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.507e-05/0.5443, allocations: 4.859 kB / 0.7992 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002448/0.5445, allocations: 336.5 kB / 0.7995 GB, free: 6.25 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.5446, allocations: 46.44 kB / 0.7995 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.5446, allocations: 0 / 0.7995 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of matching and sorting (n=1): time 0.0001473/0.5447, allocations: 33.69 kB / 0.7996 GB, free: 6.156 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.5448, allocations: 51.41 kB / 0.7996 GB, free: 6.094 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.387e-05/0.5449, allocations: 101.9 kB / 0.7997 GB, free: 5.984 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.5449, allocations: 25.7 kB / 0.7997 GB, free: 5.953 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.5449, allocations: 88.08 kB / 0.7998 GB, free: 5.863 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 1.23e-05/0.545, allocations: 16.08 kB / 0.7998 GB, free: 5.848 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.545, allocations: 9.719 kB / 0.7998 GB, free: 5.832 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.5451, allocations: 318.8 kB / 0.8002 GB, free: 5.512 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.41e-05/0.5452, allocations: 0 / 0.8002 GB, free: 5.512 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.034e-05/0.5452, allocations: 25.64 kB / 0.8002 GB, free: 5.48 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.296e-05/0.5452, allocations: 25.72 kB / 0.8002 GB, free: 5.449 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5453, allocations: 0 / 0.8002 GB, free: 5.449 MB / 0.6231 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.407e-05/0.5453, allocations: 49.62 kB / 0.8002 GB, free: 5.395 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.5454, allocations: 11.12 kB / 0.8003 GB, free: 5.387 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.5454, allocations: 0 / 0.8003 GB, free: 5.387 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.5454, allocations: 288 / 0.8003 GB, free: 5.387 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.243e-05/0.5454, allocations: 4 kB / 0.8003 GB, free: 5.383 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.5454, allocations: 0 / 0.8003 GB, free: 5.383 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.343e-05/0.5455, allocations: 11.94 kB / 0.8003 GB, free: 5.371 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.5455, allocations: 3.984 kB / 0.8003 GB, free: 5.367 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 8.463e-05/0.5456, allocations: 113.9 kB / 0.8004 GB, free: 5.246 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.5456, allocations: 7.938 kB / 0.8004 GB, free: 5.238 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.5457, allocations: 116.9 kB / 0.8005 GB, free: 5.113 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.938e-05/0.5458, allocations: 188.2 kB / 0.8007 GB, free: 4.922 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.247e-05/0.5459, allocations: 180.2 kB / 0.8009 GB, free: 4.738 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.253e-05/0.546, allocations: 188.2 kB / 0.801 GB, free: 4.547 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002834/0.5463, allocations: 405.2 kB / 0.8014 GB, free: 4.094 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.513e-05/0.5463, allocations: 108.9 kB / 0.8015 GB, free: 3.98 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-05/0.5464, allocations: 101 kB / 0.8016 GB, free: 3.875 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.759e-05/0.5465, allocations: 180.2 kB / 0.8018 GB, free: 3.691 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.602e-05/0.5466, allocations: 184.2 kB / 0.802 GB, free: 3.504 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.656e-05/0.5467, allocations: 184.3 kB / 0.8021 GB, free: 3.316 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.94e-05/0.5467, allocations: 184.2 kB / 0.8023 GB, free: 3.129 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001614/0.5469, allocations: 303.7 kB / 0.8026 GB, free: 2.809 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 8.966e-05/0.547, allocations: 182.3 kB / 0.8028 GB, free: 2.605 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.371e-05/0.5471, allocations: 192.2 kB / 0.803 GB, free: 2.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.5473, allocations: 112.9 kB / 0.8031 GB, free: 2.293 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.32e-05/0.5474, allocations: 180.3 kB / 0.8032 GB, free: 2.109 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.5474, allocations: 108.9 kB / 0.8034 GB, free: 1.996 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 5.486e-05/0.5475, allocations: 83.28 kB / 0.8034 GB, free: 1.914 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5475, allocations: 0 / 0.8034 GB, free: 1.914 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003166/0.5478, allocations: 55.8 kB / 0.8035 GB, free: 1.859 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.0006466/0.5485, allocations: 0.8829 MB / 0.8043 GB, free: 0.9453 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 6.954e-05/0.5485, allocations: 15.92 kB / 0.8044 GB, free: 0.9297 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5485, allocations: 4 kB / 0.8044 GB, free: 0.9258 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.5486, allocations: 0 / 0.8044 GB, free: 0.9258 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.549, allocations: 459.6 kB / 0.8048 GB, free: 484 kB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.5501, allocations: 1.348 MB / 0.8061 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.5504, allocations: 0.6729 MB / 0.8068 GB, free: 14.34 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 3.893e-05/0.5505, allocations: 7.984 kB / 0.8068 GB, free: 14.33 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.632e-05/0.5505, allocations: 7.438 kB / 0.8068 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of SimCode: time 2.225e-06/0.5505, allocations: 4 kB / 0.8068 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.5734, allocations: 2.205 MB / 0.8089 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.663, allocations: 0.6562 kB / 0.8089 GB, free: 12.21 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)