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.001148/0.001148, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9173/0.9173, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 60.78 kB / 0.5054 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1467, allocations: 80.93 MB / 0.5845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.4007/0.5474, allocations: 135.4 MB / 0.7167 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001778/0.5476, allocations: 48.66 kB / 0.7167 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.804e-05/0.5476, allocations: 4 kB / 0.7167 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.5478, allocations: 10.44 kB / 0.7168 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.974e-05/0.5479, allocations: 5.406 kB / 0.7168 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008508/0.5487, allocations: 247.2 kB / 0.717 GB, free: 10.47 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.573e-05/0.5488, allocations: 33.3 kB / 0.717 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.807e-05/0.5489, allocations: 2.062 kB / 0.717 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.479e-05/0.5489, allocations: 23.86 kB / 0.7171 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.717e-05/0.549, allocations: 12.23 kB / 0.7171 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.549, allocations: 1.406 kB / 0.7171 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006389/0.5497, allocations: 242.5 kB / 0.7173 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.812e-05/0.5497, allocations: 6.391 kB / 0.7173 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.428e-05/0.5498, allocations: 13.11 kB / 0.7173 GB, free: 10.35 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005577/0.5503, allocations: 192.8 kB / 0.7175 GB, free: 10.3 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.5504, allocations: 4 kB / 0.7175 GB, free: 10.3 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.944e-06/0.5504, allocations: 0 / 0.7175 GB, free: 10.3 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.5504, allocations: 1.344 kB / 0.7175 GB, free: 10.3 MB / 0.545 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.000571/0.551, allocations: 356.8 kB / 0.7178 GB, free: 9.93 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.551, allocations: 14.09 kB / 0.7179 GB, free: 9.926 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.943e-05/0.5511, allocations: 35.02 kB / 0.7179 GB, free: 9.887 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.737e-05/0.5511, allocations: 4.156 kB / 0.7179 GB, free: 9.887 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.5513, allocations: 162.5 kB / 0.718 GB, free: 9.691 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.5514, allocations: 33.59 kB / 0.7181 GB, free: 9.656 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.5514, allocations: 9.312 kB / 0.7181 GB, free: 9.648 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.5516, allocations: 40.72 kB / 0.7181 GB, free: 9.617 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.5516, allocations: 0 / 0.7181 GB, free: 9.617 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.5516, allocations: 1.688 kB / 0.7181 GB, free: 9.617 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.5517, allocations: 0.8438 kB / 0.7181 GB, free: 9.617 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.246e-05/0.5517, allocations: 21.44 kB / 0.7182 GB, free: 9.609 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009173/0.5526, allocations: 0.6001 MB / 0.7187 GB, free: 8.949 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.552e-05/0.5527, allocations: 16.86 kB / 0.7188 GB, free: 8.926 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.019e-05/0.5527, allocations: 6.844 kB / 0.7188 GB, free: 8.918 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002216/0.553, allocations: 341.5 kB / 0.7191 GB, free: 8.531 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.553, allocations: 32.11 kB / 0.7191 GB, free: 8.492 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.343e-06/0.553, allocations: 1.188 kB / 0.7191 GB, free: 8.492 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001524/0.5532, allocations: 48.41 kB / 0.7192 GB, free: 8.445 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.5532, allocations: 52.2 kB / 0.7192 GB, free: 8.383 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.23e-05/0.5533, allocations: 102.9 kB / 0.7193 GB, free: 8.281 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.5533, allocations: 26.61 kB / 0.7193 GB, free: 8.25 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.155e-05/0.5533, allocations: 81.72 kB / 0.7194 GB, free: 8.168 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.061e-05/0.5534, allocations: 13.72 kB / 0.7194 GB, free: 8.156 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.342e-05/0.5534, allocations: 18.09 kB / 0.7194 GB, free: 8.137 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.419e-05/0.5535, allocations: 316.7 kB / 0.7197 GB, free: 7.82 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.749e-05/0.5535, allocations: 7.5 kB / 0.7198 GB, free: 7.816 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.535e-05/0.5536, allocations: 20.02 kB / 0.7198 GB, free: 7.797 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.793e-05/0.5536, allocations: 27.39 kB / 0.7198 GB, free: 7.773 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.5536, allocations: 0 / 0.7198 GB, free: 7.773 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.319e-05/0.5537, allocations: 41.31 kB / 0.7198 GB, free: 7.742 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.5537, allocations: 6.016 kB / 0.7198 GB, free: 7.742 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.5537, allocations: 5.281 kB / 0.7198 GB, free: 7.738 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.5537, allocations: 0.75 kB / 0.7199 GB, free: 7.738 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.285e-05/0.5538, allocations: 10.41 kB / 0.7199 GB, free: 7.734 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.5538, allocations: 0 / 0.7199 GB, free: 7.734 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.184e-05/0.5538, allocations: 6.25 kB / 0.7199 GB, free: 7.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.5538, allocations: 5.906 kB / 0.7199 GB, free: 7.727 MB / 0.545 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 6.32e-05/0.5539, allocations: 108.6 kB / 0.72 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.054e-05/0.5539, allocations: 6.188 kB / 0.72 GB, free: 7.609 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.5541, allocations: 119 kB / 0.7201 GB, free: 7.492 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.887e-05/0.5541, allocations: 186 kB / 0.7203 GB, free: 7.305 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.075e-05/0.5542, allocations: 178.2 kB / 0.7204 GB, free: 7.125 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.046e-05/0.5542, allocations: 181.9 kB / 0.7206 GB, free: 6.941 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.5544, allocations: 411.9 kB / 0.721 GB, free: 6.488 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.933e-05/0.5545, allocations: 106.8 kB / 0.7211 GB, free: 6.379 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.155e-05/0.5545, allocations: 105.6 kB / 0.7212 GB, free: 6.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.078e-05/0.5546, allocations: 179.8 kB / 0.7214 GB, free: 6.09 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.5546, allocations: 182 kB / 0.7216 GB, free: 5.906 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.292e-05/0.5547, allocations: 180.7 kB / 0.7217 GB, free: 5.727 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.905e-05/0.5547, allocations: 186.1 kB / 0.7219 GB, free: 5.539 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001375/0.5549, allocations: 309.9 kB / 0.7222 GB, free: 5.219 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.182e-05/0.555, allocations: 184.7 kB / 0.7224 GB, free: 5.016 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.641e-05/0.555, allocations: 187 kB / 0.7226 GB, free: 4.828 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.5552, allocations: 106.2 kB / 0.7227 GB, free: 4.723 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.709e-05/0.5553, allocations: 186.1 kB / 0.7228 GB, free: 4.535 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.36e-05/0.5553, allocations: 101.8 kB / 0.7229 GB, free: 4.43 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.126e-05/0.5554, allocations: 90.58 kB / 0.723 GB, free: 4.348 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5554, allocations: 0 / 0.723 GB, free: 4.348 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003565/0.5557, allocations: 56.72 kB / 0.7231 GB, free: 4.332 MB / 0.545 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.0006583/0.5564, allocations: 0.8797 MB / 0.7239 GB, free: 3.504 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 8.04e-05/0.5565, allocations: 12.56 kB / 0.7239 GB, free: 3.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.5565, allocations: 4.125 kB / 0.7239 GB, free: 3.496 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.789e-06/0.5565, allocations: 3.938 kB / 0.724 GB, free: 3.492 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.5569, allocations: 456.2 kB / 0.7244 GB, free: 3.047 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.5579, allocations: 1.344 MB / 0.7257 GB, free: 1.707 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.5581, allocations: 0.673 MB / 0.7264 GB, free: 1.012 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.464e-05/0.5582, allocations: 8.031 kB / 0.7264 GB, free: 1.012 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.406e-05/0.5582, allocations: 8.562 kB / 0.7264 GB, free: 1.004 MB / 0.545 GB Notification: Performance of SimCode: time 3.1e-07/0.5582, allocations: 1.188 kB / 0.7264 GB, free: 1.004 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0181/0.5763, allocations: 2.191 MB / 0.7285 GB, free: 0.543 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.202/7.778, allocations: 9.344 kB / 0.7285 GB, free: 0.5391 MB / 0.545 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)