Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.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.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",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.004197/0.004197, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001065/0.001066, allocations: 192.2 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7611/0.7611, allocations: 135.1 MB / 425.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 67.14 kB / 0.5851 GB, free: 21.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1474, allocations: 80.92 MB / 0.6642 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.5142/0.6616, allocations: 147.8 MB / 0.8085 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.000121/0.6618, allocations: 50.83 kB / 0.8086 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.284e-05/0.6618, allocations: 2.5 kB / 0.8086 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 9.586e-05/0.6619, allocations: 6.281 kB / 0.8086 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 7.164e-05/0.662, allocations: 18.69 kB / 0.8086 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.6624, allocations: 103.1 kB / 0.8087 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 8.027e-05/0.6625, allocations: 36.62 kB / 0.8087 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.645e-05/0.6626, allocations: 2.438 kB / 0.8087 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.567e-05/0.6626, allocations: 18.89 kB / 0.8088 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 5.986e-05/0.6627, allocations: 10.2 kB / 0.8088 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.6627, allocations: 0 / 0.8088 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.6629, allocations: 93.75 kB / 0.8089 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 4.05e-05/0.663, allocations: 11.38 kB / 0.8089 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.618e-05/0.663, allocations: 11.25 kB / 0.8089 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.6632, allocations: 76.33 kB / 0.809 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.6632, allocations: 3.938 kB / 0.809 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of FrontEnd: time 8.11e-07/0.6632, allocations: 0 / 0.809 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.6632, allocations: 0 / 0.809 GB, free: 11.23 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003608/0.6636, allocations: 340 kB / 0.8093 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.912e-05/0.6636, allocations: 12.08 kB / 0.8093 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.297e-05/0.6636, allocations: 34.75 kB / 0.8093 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.6638, allocations: 17.94 kB / 0.8093 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.664, allocations: 162.4 kB / 0.8095 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.653e-05/0.664, allocations: 39.33 kB / 0.8095 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-06/0.664, allocations: 0 / 0.8095 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.6642, allocations: 48.25 kB / 0.8096 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.6642, allocations: 3.938 kB / 0.8096 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.6642, allocations: 4 kB / 0.8096 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.6642, allocations: 2.156 kB / 0.8096 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.516e-05/0.6643, allocations: 18.81 kB / 0.8096 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003296/0.6646, allocations: 258.4 kB / 0.8099 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 3.072e-05/0.6646, allocations: 17.55 kB / 0.8099 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.444e-05/0.6646, allocations: 12.05 kB / 0.8099 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 4.658e-06/0.6647, allocations: 0 / 0.8099 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.6647, allocations: 38.97 kB / 0.8099 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.6647, allocations: 0 / 0.8099 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1): time 0.0001069/0.6648, allocations: 37.22 kB / 0.81 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.6648, allocations: 55.34 kB / 0.81 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.797e-05/0.6649, allocations: 108.9 kB / 0.8101 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.6649, allocations: 29.08 kB / 0.8101 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 4.288e-05/0.665, allocations: 93.41 kB / 0.8102 GB, free: 9.898 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.879e-06/0.665, allocations: 3.953 kB / 0.8102 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.665, allocations: 21.11 kB / 0.8103 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.391e-05/0.6651, allocations: 310.8 kB / 0.8106 GB, free: 9.566 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.466e-05/0.6651, allocations: 6.906 kB / 0.8106 GB, free: 9.566 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.59e-05/0.6652, allocations: 24.56 kB / 0.8106 GB, free: 9.539 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.954e-05/0.6652, allocations: 36.64 kB / 0.8106 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.6652, allocations: 3.938 kB / 0.8106 GB, free: 9.504 MB / 0.5919 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.452e-05/0.6653, allocations: 54.83 kB / 0.8107 GB, free: 9.469 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.6653, allocations: 5.125 kB / 0.8107 GB, free: 9.469 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.6653, allocations: 5.125 kB / 0.8107 GB, free: 9.469 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.6654, allocations: 0 / 0.8107 GB, free: 9.469 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.427e-05/0.6654, allocations: 16.91 kB / 0.8107 GB, free: 9.457 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.6654, allocations: 6.812 kB / 0.8107 GB, free: 9.453 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.718e-05/0.6655, allocations: 0 / 0.8107 GB, free: 9.453 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.6655, allocations: 2.531 kB / 0.8107 GB, free: 9.453 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.322e-05/0.6656, allocations: 115.6 kB / 0.8108 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.6656, allocations: 3.953 kB / 0.8108 GB, free: 9.332 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.925e-05/0.6656, allocations: 8.812 kB / 0.8108 GB, free: 9.324 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.6656, allocations: 0 / 0.8108 GB, free: 9.324 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.6656, allocations: 6.562 kB / 0.8108 GB, free: 9.32 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.6656, allocations: 6.531 kB / 0.8108 GB, free: 9.316 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/0.6659, allocations: 336.1 kB / 0.8112 GB, free: 8.941 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.6659, allocations: 6.281 kB / 0.8112 GB, free: 8.938 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.253e-05/0.6659, allocations: 0 / 0.8112 GB, free: 8.938 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.6659, allocations: 6.5 kB / 0.8112 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.6659, allocations: 6.516 kB / 0.8112 GB, free: 8.93 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.6659, allocations: 0 / 0.8112 GB, free: 8.93 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6659, allocations: 0 / 0.8112 GB, free: 8.93 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.009e-05/0.666, allocations: 59.2 kB / 0.8112 GB, free: 8.863 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.666, allocations: 84.56 kB / 0.8113 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.6661, allocations: 2.875 kB / 0.8113 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.158e-05/0.6661, allocations: 6.188 kB / 0.8113 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.275e-06/0.6662, allocations: 2.938 kB / 0.8113 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-06/0.6662, allocations: 0 / 0.8113 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 5.011e-05/0.6662, allocations: 86.25 kB / 0.8114 GB, free: 8.691 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6662, allocations: 4.031 kB / 0.8114 GB, free: 8.688 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001972/0.6664, allocations: 5.344 kB / 0.8114 GB, free: 8.688 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 (1): * Single equations (assignments): 1 * 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.0003159/0.6668, allocations: 0.5996 MB / 0.812 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 7.21e-05/0.6668, allocations: 17.03 kB / 0.812 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.6669, allocations: 4.062 kB / 0.812 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 6.783e-06/0.6669, allocations: 2.969 kB / 0.812 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.6671, allocations: 11.11 kB / 0.812 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003334/0.6674, allocations: 127 kB / 0.8122 GB, free: 7.945 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.6677, allocations: 0.6745 MB / 0.8128 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.377e-05/0.6677, allocations: 11.88 kB / 0.8128 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.525e-05/0.6678, allocations: 10.75 kB / 0.8128 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/0.6678, allocations: 1.844 kB / 0.8128 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01336/0.6811, allocations: 1.357 MB / 0.8142 GB, free: 6.898 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.822, allocations: 11.89 kB / 0.8142 GB, free: 6.895 MB / 0.5919 GB (rm -f IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_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_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)