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.008186/0.008185, allocations: 100.3 kB / 15.73 MB, free: 6.02 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.001796/0.001796, allocations: 192.4 kB / 16.67 MB, free: 5.938 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.009/1.009, allocations: 135.6 MB / 426.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 63.89 kB / 0.5858 GB, free: 3.137 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4006, allocations: 81.02 MB / 0.6649 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1819/0.5825, allocations: 147.8 MB / 0.8093 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.0001421/0.5827, allocations: 51.86 kB / 0.8093 GB, free: 12.41 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.686e-05/0.5827, allocations: 0 / 0.8093 GB, free: 12.41 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 9.937e-05/0.5828, allocations: 3.938 kB / 0.8093 GB, free: 12.41 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 7.878e-05/0.5829, allocations: 15.97 kB / 0.8093 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004638/0.5834, allocations: 114.9 kB / 0.8094 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 9.992e-05/0.5835, allocations: 31.92 kB / 0.8095 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 3.198e-05/0.5836, allocations: 3.938 kB / 0.8095 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 3.951e-05/0.5836, allocations: 15.98 kB / 0.8095 GB, free: 12.23 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 7e-05/0.5837, allocations: 15.92 kB / 0.8095 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.301e-05/0.5837, allocations: 0 / 0.8095 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002683/0.584, allocations: 87.72 kB / 0.8096 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 4.154e-05/0.584, allocations: 3.984 kB / 0.8096 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 3.683e-05/0.5841, allocations: 19.92 kB / 0.8096 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.5842, allocations: 63.42 kB / 0.8097 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.5842, allocations: 0 / 0.8097 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5843, allocations: 0 / 0.8097 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.5843, allocations: 4 kB / 0.8097 GB, free: 12.05 MB / 0.6387 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.0004337/0.5847, allocations: 336.7 kB / 0.81 GB, free: 11.67 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.5848, allocations: 8.031 kB / 0.81 GB, free: 11.66 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.039e-05/0.5848, allocations: 46.67 kB / 0.81 GB, free: 11.61 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.585, allocations: 24.86 kB / 0.8101 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.5852, allocations: 168.1 kB / 0.8102 GB, free: 11.38 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.571e-05/0.5852, allocations: 25.7 kB / 0.8102 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.5853, allocations: 4 kB / 0.8103 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.5855, allocations: 45.67 kB / 0.8103 GB, free: 11.3 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.5855, allocations: 4 kB / 0.8103 GB, free: 11.29 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.5855, allocations: 11.98 kB / 0.8103 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.5855, allocations: 0 / 0.8103 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.899e-05/0.5856, allocations: 19.98 kB / 0.8103 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003895/0.586, allocations: 260.8 kB / 0.8106 GB, free: 10.96 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 4.559e-05/0.586, allocations: 18.52 kB / 0.8106 GB, free: 10.93 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.595e-05/0.5861, allocations: 4.859 kB / 0.8106 GB, free: 10.92 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.5861, allocations: 12.05 kB / 0.8106 GB, free: 10.91 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.5861, allocations: 30.56 kB / 0.8106 GB, free: 10.87 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.5861, allocations: 0 / 0.8106 GB, free: 10.87 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1): time 0.0001406/0.5863, allocations: 45.58 kB / 0.8107 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.5863, allocations: 55.34 kB / 0.8107 GB, free: 10.75 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.8e-05/0.5864, allocations: 105.8 kB / 0.8108 GB, free: 10.64 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.5865, allocations: 29.7 kB / 0.8109 GB, free: 10.61 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.5865, allocations: 88.22 kB / 0.811 GB, free: 10.52 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 6.362e-06/0.5865, allocations: 3.953 kB / 0.811 GB, free: 10.51 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.5866, allocations: 17.72 kB / 0.811 GB, free: 10.49 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.5867, allocations: 310.8 kB / 0.8113 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.038e-05/0.5867, allocations: 11.98 kB / 0.8113 GB, free: 10.16 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.831e-05/0.5868, allocations: 18.58 kB / 0.8113 GB, free: 10.14 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.41e-05/0.5868, allocations: 34.52 kB / 0.8113 GB, free: 10.09 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5868, allocations: 0 / 0.8113 GB, free: 10.09 MB / 0.6387 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.874e-05/0.5869, allocations: 57.62 kB / 0.8114 GB, free: 10.03 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.587, allocations: 4 kB / 0.8114 GB, free: 10.03 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.587, allocations: 0 / 0.8114 GB, free: 10.03 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.587, allocations: 0 / 0.8114 GB, free: 10.03 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.217e-05/0.587, allocations: 15.92 kB / 0.8114 GB, free: 10.01 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.5871, allocations: 4.094 kB / 0.8114 GB, free: 10.01 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.713e-05/0.5871, allocations: 3.938 kB / 0.8114 GB, free: 10 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-06/0.5871, allocations: 4 kB / 0.8114 GB, free: 10 MB / 0.6387 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 8.957e-05/0.5872, allocations: 117.8 kB / 0.8115 GB, free: 9.875 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.5872, allocations: 3.953 kB / 0.8115 GB, free: 9.871 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.859e-05/0.5873, allocations: 3.125 kB / 0.8115 GB, free: 9.863 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.5873, allocations: 3.938 kB / 0.8115 GB, free: 9.859 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.5873, allocations: 0 / 0.8115 GB, free: 9.859 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.5873, allocations: 3.984 kB / 0.8115 GB, free: 9.855 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002863/0.5876, allocations: 350.7 kB / 0.8119 GB, free: 9.453 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.5876, allocations: 3.938 kB / 0.8119 GB, free: 9.449 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.562e-05/0.5876, allocations: 3.938 kB / 0.8119 GB, free: 9.445 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.5876, allocations: 0 / 0.8119 GB, free: 9.445 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.519e-06/0.5876, allocations: 0 / 0.8119 GB, free: 9.445 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.5876, allocations: 256 / 0.8119 GB, free: 9.445 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.5876, allocations: 0 / 0.8119 GB, free: 9.445 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.239e-05/0.5877, allocations: 73.09 kB / 0.812 GB, free: 9.355 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.5878, allocations: 81.05 kB / 0.812 GB, free: 9.258 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.5878, allocations: 4 kB / 0.812 GB, free: 9.254 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.426e-05/0.5879, allocations: 3.984 kB / 0.812 GB, free: 9.25 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-06/0.5879, allocations: 0 / 0.812 GB, free: 9.25 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.5879, allocations: 4 kB / 0.812 GB, free: 9.246 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 5.814e-05/0.588, allocations: 83.28 kB / 0.8121 GB, free: 9.164 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.2e-07/0.588, allocations: 0 / 0.8121 GB, free: 9.164 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0001868/0.5882, allocations: 8.031 kB / 0.8121 GB, free: 9.156 MB / 0.6387 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.0003781/0.5886, allocations: 0.5968 MB / 0.8127 GB, free: 8.531 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 7.673e-05/0.5887, allocations: 19.94 kB / 0.8127 GB, free: 8.512 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.5887, allocations: 4.219 kB / 0.8127 GB, free: 8.508 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 4.939e-06/0.5887, allocations: 0 / 0.8127 GB, free: 8.508 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.5889, allocations: 8.547 kB / 0.8127 GB, free: 8.5 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003876/0.5893, allocations: 140.3 kB / 0.8129 GB, free: 8.324 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.5897, allocations: 0.6768 MB / 0.8135 GB, free: 7.621 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 4.829e-05/0.5897, allocations: 8.062 kB / 0.8135 GB, free: 7.613 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.5897, allocations: 7.438 kB / 0.8136 GB, free: 7.605 MB / 0.6387 GB Notification: Performance of SimCode: time 2.3e-07/0.5898, allocations: 0 / 0.8136 GB, free: 7.605 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.6107, allocations: 1.36 MB / 0.8149 GB, free: 6.391 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.629/8.24, allocations: 7.172 kB / 0.8149 GB, free: 6.387 MB / 0.6387 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)