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.004946/0.004946, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.001168/0.001168, allocations: 195.3 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7626/0.7626, allocations: 132.2 MB / 422.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 66.08 kB / 0.5809 GB, free: 1.105 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1461, allocations: 80.2 MB / 0.6592 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1464/0.2926, allocations: 147.8 MB / 0.8036 GB, free: 9.535 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.0001287/0.2928, allocations: 47.88 kB / 0.8036 GB, free: 9.488 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.902e-05/0.2928, allocations: 0 / 0.8036 GB, free: 9.488 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 9.96e-05/0.2929, allocations: 15.86 kB / 0.8036 GB, free: 9.473 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 6.696e-05/0.293, allocations: 11.92 kB / 0.8036 GB, free: 9.461 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004101/0.2934, allocations: 103.6 kB / 0.8037 GB, free: 9.359 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 7.521e-05/0.2935, allocations: 31.86 kB / 0.8038 GB, free: 9.328 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 3.353e-05/0.2935, allocations: 11.97 kB / 0.8038 GB, free: 9.316 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 3.226e-05/0.2936, allocations: 12 kB / 0.8038 GB, free: 9.305 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 7.136e-05/0.2937, allocations: 19.92 kB / 0.8038 GB, free: 9.285 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.2937, allocations: 3.938 kB / 0.8038 GB, free: 9.281 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.2939, allocations: 83.78 kB / 0.8039 GB, free: 9.199 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 4.232e-05/0.294, allocations: 11.97 kB / 0.8039 GB, free: 9.188 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 2.729e-05/0.294, allocations: 4 kB / 0.8039 GB, free: 9.184 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.2942, allocations: 80 kB / 0.804 GB, free: 9.105 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2942, allocations: 0 / 0.804 GB, free: 9.105 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2942, allocations: 0 / 0.804 GB, free: 9.105 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.027e-06/0.2942, allocations: 0 / 0.804 GB, free: 9.105 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.0003685/0.2946, allocations: 343.4 kB / 0.8043 GB, free: 8.723 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.2946, allocations: 8.031 kB / 0.8043 GB, free: 8.715 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.003e-05/0.2946, allocations: 30.75 kB / 0.8044 GB, free: 8.676 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.2948, allocations: 20.91 kB / 0.8044 GB, free: 8.656 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.295, allocations: 176.1 kB / 0.8045 GB, free: 8.445 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.879e-05/0.295, allocations: 29.7 kB / 0.8046 GB, free: 8.41 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.2951, allocations: 3.984 kB / 0.8046 GB, free: 8.406 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.2952, allocations: 49.67 kB / 0.8046 GB, free: 8.352 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.2952, allocations: 3.938 kB / 0.8046 GB, free: 8.348 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.2952, allocations: 4 kB / 0.8046 GB, free: 8.344 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.2953, allocations: 4 kB / 0.8046 GB, free: 8.34 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.273e-05/0.2953, allocations: 19.92 kB / 0.8047 GB, free: 8.32 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000345/0.2957, allocations: 256.9 kB / 0.8049 GB, free: 8.02 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 3.624e-05/0.2957, allocations: 30.58 kB / 0.8049 GB, free: 7.98 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.2957, allocations: 4.859 kB / 0.8049 GB, free: 7.973 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-06/0.2957, allocations: 0 / 0.8049 GB, free: 7.973 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.2958, allocations: 38.56 kB / 0.805 GB, free: 7.926 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.2958, allocations: 0 / 0.805 GB, free: 7.926 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1): time 0.0001221/0.2959, allocations: 33.64 kB / 0.805 GB, free: 7.887 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.2959, allocations: 59.47 kB / 0.8051 GB, free: 7.816 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.372e-05/0.296, allocations: 109.8 kB / 0.8052 GB, free: 7.699 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.296, allocations: 29.7 kB / 0.8052 GB, free: 7.664 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 5.053e-05/0.2961, allocations: 92.08 kB / 0.8053 GB, free: 7.57 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 5.601e-06/0.2961, allocations: 3.953 kB / 0.8053 GB, free: 7.566 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.2962, allocations: 17.72 kB / 0.8053 GB, free: 7.543 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 9.505e-05/0.2963, allocations: 310.8 kB / 0.8056 GB, free: 7.23 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.531e-05/0.2963, allocations: 4 kB / 0.8056 GB, free: 7.227 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.833e-05/0.2963, allocations: 34.5 kB / 0.8056 GB, free: 7.184 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.442e-05/0.2964, allocations: 26.58 kB / 0.8057 GB, free: 7.148 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2964, allocations: 0 / 0.8057 GB, free: 7.148 MB / 0.6387 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.328e-05/0.2965, allocations: 53.62 kB / 0.8057 GB, free: 7.09 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2965, allocations: 12.09 kB / 0.8057 GB, free: 7.078 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.2965, allocations: 0 / 0.8057 GB, free: 7.078 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.2965, allocations: 0 / 0.8057 GB, free: 7.078 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.937e-05/0.2966, allocations: 15.88 kB / 0.8057 GB, free: 7.062 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.2966, allocations: 3.984 kB / 0.8057 GB, free: 7.059 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.231e-05/0.2966, allocations: 7.891 kB / 0.8057 GB, free: 7.051 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-06/0.2966, allocations: 4 kB / 0.8058 GB, free: 7.047 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 6.747e-05/0.2967, allocations: 106.5 kB / 0.8059 GB, free: 6.934 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.2967, allocations: 4 kB / 0.8059 GB, free: 6.93 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.922e-05/0.2968, allocations: 11.12 kB / 0.8059 GB, free: 6.914 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2968, allocations: 3.938 kB / 0.8059 GB, free: 6.91 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2968, allocations: 0 / 0.8059 GB, free: 6.91 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.2968, allocations: 0 / 0.8059 GB, free: 6.91 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.297, allocations: 346.7 kB / 0.8062 GB, free: 6.512 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.297, allocations: 3.938 kB / 0.8062 GB, free: 6.508 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.64e-05/0.2971, allocations: 7.938 kB / 0.8062 GB, free: 6.5 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.2971, allocations: 0 / 0.8062 GB, free: 6.5 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-06/0.2971, allocations: 0 / 0.8062 GB, free: 6.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2971, allocations: 4.031 kB / 0.8062 GB, free: 6.496 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2971, allocations: 0 / 0.8062 GB, free: 6.496 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.808e-05/0.2972, allocations: 61.12 kB / 0.8063 GB, free: 6.418 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.2972, allocations: 85 kB / 0.8064 GB, free: 6.316 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.2972, allocations: 0 / 0.8064 GB, free: 6.316 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.83e-05/0.2973, allocations: 4 kB / 0.8064 GB, free: 6.312 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.676e-06/0.2973, allocations: 96 / 0.8064 GB, free: 6.312 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.2973, allocations: 8.016 kB / 0.8064 GB, free: 6.305 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 5.104e-05/0.2974, allocations: 95.52 kB / 0.8065 GB, free: 6.211 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2974, allocations: 0 / 0.8065 GB, free: 6.211 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0001946/0.2976, allocations: 4 kB / 0.8065 GB, free: 6.207 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.0002904/0.2979, allocations: 0.6045 MB / 0.8071 GB, free: 5.574 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 7.3e-05/0.298, allocations: 11.94 kB / 0.8071 GB, free: 5.562 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.298, allocations: 0 / 0.8071 GB, free: 5.562 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 6.502e-06/0.298, allocations: 4 kB / 0.8071 GB, free: 5.559 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.2982, allocations: 11.53 kB / 0.8071 GB, free: 5.551 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003212/0.2986, allocations: 132.3 kB / 0.8072 GB, free: 5.383 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.2988, allocations: 0.677 MB / 0.8079 GB, free: 4.68 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 4.487e-05/0.2989, allocations: 7.984 kB / 0.8079 GB, free: 4.672 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.611e-05/0.2989, allocations: 11.44 kB / 0.8079 GB, free: 4.66 MB / 0.6387 GB Notification: Performance of SimCode: time 2.3e-07/0.2989, allocations: 0 / 0.8079 GB, free: 4.66 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01527/0.3142, allocations: 1.357 MB / 0.8092 GB, free: 3.48 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.405/7.719, allocations: 8.75 kB / 0.8092 GB, free: 3.473 MB / 0.6387 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)