Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_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.00504/0.00504, allocations: 100.9 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.001288/0.001288, allocations: 195.4 kB / 16.67 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8777/0.8777, allocations: 132.2 MB / 422.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 67.41 kB / 0.5809 GB, free: 24.37 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1403, allocations: 80.2 MB / 0.6592 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.4887/0.629, allocations: 147.8 MB / 0.8036 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0001204/0.6292, allocations: 56.44 kB / 0.8036 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.058e-05/0.6292, allocations: 0 / 0.8036 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 9.374e-05/0.6293, allocations: 2.156 kB / 0.8036 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 6.778e-05/0.6294, allocations: 15.45 kB / 0.8036 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.6298, allocations: 106.1 kB / 0.8037 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 7.948e-05/0.6299, allocations: 33.86 kB / 0.8038 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.474e-05/0.63, allocations: 2.984 kB / 0.8038 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.807e-05/0.63, allocations: 15.84 kB / 0.8038 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 7.318e-05/0.6301, allocations: 19.25 kB / 0.8038 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.6301, allocations: 5.531 kB / 0.8038 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002363/0.6304, allocations: 86.17 kB / 0.8039 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 3.885e-05/0.6304, allocations: 5.078 kB / 0.8039 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 3.014e-05/0.6304, allocations: 14.5 kB / 0.8039 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.6306, allocations: 66.77 kB / 0.804 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.6306, allocations: 3.312 kB / 0.804 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.232e-06/0.6306, allocations: 1.344 kB / 0.804 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.6306, allocations: 0 / 0.804 GB, free: 11.63 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.0004252/0.6311, allocations: 345.5 kB / 0.8043 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.6311, allocations: 13.12 kB / 0.8043 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.123e-05/0.6311, allocations: 32.69 kB / 0.8044 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.6313, allocations: 16.44 kB / 0.8044 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.6315, allocations: 164.3 kB / 0.8045 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.704e-05/0.6316, allocations: 37.02 kB / 0.8046 GB, free: 11 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-06/0.6316, allocations: 1.156 kB / 0.8046 GB, free: 11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.6317, allocations: 46.98 kB / 0.8046 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.6317, allocations: 5.375 kB / 0.8046 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.6318, allocations: 3.047 kB / 0.8046 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.6318, allocations: 7.5 kB / 0.8046 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.167e-05/0.6318, allocations: 18.34 kB / 0.8046 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000405/0.6323, allocations: 265.8 kB / 0.8049 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 4.016e-05/0.6323, allocations: 24.08 kB / 0.8049 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.706e-05/0.6323, allocations: 5.828 kB / 0.8049 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-06/0.6323, allocations: 0 / 0.8049 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.6324, allocations: 35.88 kB / 0.805 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.6324, allocations: 0 / 0.805 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1): time 0.0001302/0.6325, allocations: 33.11 kB / 0.805 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.6326, allocations: 56.66 kB / 0.805 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.521e-05/0.6327, allocations: 107.5 kB / 0.8052 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.6327, allocations: 29.7 kB / 0.8052 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 5.6e-05/0.6328, allocations: 91.95 kB / 0.8053 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.763e-06/0.6328, allocations: 5.797 kB / 0.8053 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.6328, allocations: 16.25 kB / 0.8053 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.633, allocations: 312.7 kB / 0.8056 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.557e-05/0.633, allocations: 3.062 kB / 0.8056 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.344e-05/0.633, allocations: 27.17 kB / 0.8056 GB, free: 9.938 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.695e-05/0.6331, allocations: 39.5 kB / 0.8057 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.6331, allocations: 0 / 0.8057 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.406e-05/0.6332, allocations: 51.86 kB / 0.8057 GB, free: 9.867 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.6332, allocations: 5.281 kB / 0.8057 GB, free: 9.867 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.6332, allocations: 5.125 kB / 0.8057 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.6332, allocations: 6.875 kB / 0.8057 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.768e-05/0.6333, allocations: 10.33 kB / 0.8057 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.6333, allocations: 5.25 kB / 0.8057 GB, free: 9.855 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.051e-05/0.6333, allocations: 5.141 kB / 0.8057 GB, free: 9.852 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.6334, allocations: 1.25 kB / 0.8057 GB, free: 9.852 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 9.692e-05/0.6335, allocations: 117.4 kB / 0.8059 GB, free: 9.734 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/0.6335, allocations: 7.766 kB / 0.8059 GB, free: 9.73 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.057e-05/0.6335, allocations: 3.125 kB / 0.8059 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.6335, allocations: 0 / 0.8059 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.6335, allocations: 9.438 kB / 0.8059 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.6335, allocations: 0 / 0.8059 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002942/0.6338, allocations: 348 kB / 0.8062 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.6339, allocations: 0 / 0.8062 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.358e-05/0.6339, allocations: 3.062 kB / 0.8062 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.6339, allocations: 3.938 kB / 0.8062 GB, free: 9.332 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.6339, allocations: 0 / 0.8062 GB, free: 9.332 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.6339, allocations: 3.938 kB / 0.8062 GB, free: 9.328 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.6339, allocations: 5.25 kB / 0.8062 GB, free: 9.328 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.404e-05/0.634, allocations: 61.52 kB / 0.8063 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.6341, allocations: 90.06 kB / 0.8064 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.6341, allocations: 3.766 kB / 0.8064 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-05/0.6342, allocations: 2.469 kB / 0.8064 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.054e-05/0.6342, allocations: 1.781 kB / 0.8064 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.6342, allocations: 1 kB / 0.8064 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 5.413e-05/0.6343, allocations: 90.48 kB / 0.8065 GB, free: 9.078 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6343, allocations: 0 / 0.8065 GB, free: 9.078 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001893/0.6345, allocations: 6.344 kB / 0.8065 GB, free: 9.078 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.0003958/0.6349, allocations: 0.5897 MB / 0.807 GB, free: 8.488 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 8.99e-05/0.635, allocations: 22.67 kB / 0.8071 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.635, allocations: 0 / 0.8071 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 6.041e-06/0.635, allocations: 2.281 kB / 0.8071 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.6352, allocations: 2.375 kB / 0.8071 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003726/0.6356, allocations: 135.2 kB / 0.8072 GB, free: 8.344 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.6359, allocations: 0.6791 MB / 0.8079 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.992e-05/0.636, allocations: 10.61 kB / 0.8079 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.636, allocations: 12.34 kB / 0.8079 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of SimCode: time 2.6e-07/0.636, allocations: 1.5 kB / 0.8079 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.657, allocations: 1.349 MB / 0.8092 GB, free: 7.332 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.617/8.274, allocations: 10.22 kB / 0.8092 GB, free: 7.324 MB / 0.5919 GB (rm -f IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)