Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_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.001088/0.001088, 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.001094/0.001094, allocations: 197 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.781/1.781, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001492, allocations: 69.06 kB / 0.6716 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2404, allocations: 114.5 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.7531/0.9936, allocations: 147.8 MB / 0.9278 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001497/0.9938, allocations: 53.23 kB / 0.9279 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.675e-05/0.9939, allocations: 0 / 0.9279 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.994, allocations: 1.172 kB / 0.9279 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.291e-05/0.9941, allocations: 13.73 kB / 0.9279 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004559/0.9946, allocations: 99.92 kB / 0.928 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.08e-05/0.9947, allocations: 31.17 kB / 0.928 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.223e-05/0.9947, allocations: 3.297 kB / 0.928 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.199e-05/0.9948, allocations: 19.3 kB / 0.928 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.081e-05/0.9949, allocations: 15.28 kB / 0.9281 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.9949, allocations: 1.203 kB / 0.9281 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002503/0.9951, allocations: 80.88 kB / 0.9281 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.896e-05/0.9952, allocations: 10.42 kB / 0.9281 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.103e-05/0.9952, allocations: 7.234 kB / 0.9282 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.9954, allocations: 75.55 kB / 0.9282 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.9954, allocations: 0 / 0.9282 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.172e-06/0.9954, allocations: 0 / 0.9282 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.553e-06/0.9954, allocations: 2.344 kB / 0.9282 GB, free: 3.137 MB / 0.7169 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.0005514/0.996, allocations: 337.7 kB / 0.9285 GB, free: 18.79 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.996, allocations: 8.562 kB / 0.9286 GB, free: 18.79 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.553e-05/0.9961, allocations: 33.91 kB / 0.9286 GB, free: 18.75 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000242/0.9963, allocations: 19.59 kB / 0.9286 GB, free: 18.74 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.9965, allocations: 172.3 kB / 0.9288 GB, free: 18.54 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.702e-05/0.9966, allocations: 34.06 kB / 0.9288 GB, free: 18.5 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.9966, allocations: 2.109 kB / 0.9288 GB, free: 18.5 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.9968, allocations: 50.2 kB / 0.9289 GB, free: 18.47 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.9968, allocations: 1.312 kB / 0.9289 GB, free: 18.47 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.9968, allocations: 2.562 kB / 0.9289 GB, free: 18.47 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.9968, allocations: 0.7969 kB / 0.9289 GB, free: 18.47 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.032e-05/0.9969, allocations: 20.61 kB / 0.9289 GB, free: 18.47 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003821/0.9973, allocations: 257.5 kB / 0.9291 GB, free: 18.2 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 3.476e-05/0.9973, allocations: 25.89 kB / 0.9291 GB, free: 18.17 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.68e-05/0.9973, allocations: 5.953 kB / 0.9292 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 6.622e-06/0.9973, allocations: 0 / 0.9292 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.9974, allocations: 37.75 kB / 0.9292 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.9974, allocations: 0 / 0.9292 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0001407/0.9975, allocations: 31.69 kB / 0.9292 GB, free: 18.09 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.9976, allocations: 56 kB / 0.9293 GB, free: 18.02 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.042e-05/0.9977, allocations: 108.8 kB / 0.9294 GB, free: 17.92 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.9977, allocations: 33.03 kB / 0.9294 GB, free: 17.89 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.9977, allocations: 92.67 kB / 0.9295 GB, free: 17.8 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.536e-06/0.9978, allocations: 4.656 kB / 0.9295 GB, free: 17.8 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.9978, allocations: 21.19 kB / 0.9295 GB, free: 17.78 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.9979, allocations: 315.6 kB / 0.9298 GB, free: 17.46 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.874e-05/0.9979, allocations: 3.859 kB / 0.9298 GB, free: 17.46 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.112e-05/0.998, allocations: 25.94 kB / 0.9299 GB, free: 17.44 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.501e-05/0.998, allocations: 27.73 kB / 0.9299 GB, free: 17.41 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.998, allocations: 5.375 kB / 0.9299 GB, free: 17.41 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.803e-05/0.9981, allocations: 57 kB / 0.9299 GB, free: 17.37 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.9981, allocations: 6.578 kB / 0.9299 GB, free: 17.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.9981, allocations: 6.688 kB / 0.93 GB, free: 17.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.9982, allocations: 0 / 0.93 GB, free: 17.37 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.137e-05/0.9982, allocations: 6.859 kB / 0.93 GB, free: 17.37 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.9982, allocations: 7.344 kB / 0.93 GB, free: 17.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.73e-05/0.9983, allocations: 0 / 0.93 GB, free: 17.36 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.9983, allocations: 2.969 kB / 0.93 GB, free: 17.36 MB / 0.7325 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.248e-05/0.9984, allocations: 118.2 kB / 0.9301 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.9984, allocations: 0 / 0.9301 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.97e-05/0.9984, allocations: 6.312 kB / 0.9301 GB, free: 17.24 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.9984, allocations: 0.9844 kB / 0.9301 GB, free: 17.24 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.9985, allocations: 3.938 kB / 0.9301 GB, free: 17.23 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.9985, allocations: 2.062 kB / 0.9301 GB, free: 17.23 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.9987, allocations: 348.2 kB / 0.9304 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.9987, allocations: 5.125 kB / 0.9304 GB, free: 16.85 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.233e-05/0.9987, allocations: 0 / 0.9304 GB, free: 16.85 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.9988, allocations: 4.594 kB / 0.9304 GB, free: 16.85 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.9988, allocations: 0 / 0.9304 GB, free: 16.85 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.9988, allocations: 2.562 kB / 0.9304 GB, free: 16.85 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.9988, allocations: 0.7031 kB / 0.9304 GB, free: 16.85 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.995e-05/0.9988, allocations: 59.42 kB / 0.9305 GB, free: 16.78 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.999, allocations: 88.22 kB / 0.9306 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.999, allocations: 0.6094 kB / 0.9306 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.608e-05/0.9991, allocations: 4.141 kB / 0.9306 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.9991, allocations: 1.906 kB / 0.9306 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.9991, allocations: 10.58 kB / 0.9306 GB, free: 16.67 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.9e-05/0.9991, allocations: 88.25 kB / 0.9307 GB, free: 16.6 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9991, allocations: 0 / 0.9307 GB, free: 16.6 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000193/0.9993, allocations: 5.344 kB / 0.9307 GB, free: 16.6 MB / 0.7325 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.000324/0.9997, allocations: 0.6017 MB / 0.9313 GB, free: 16 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 8.553e-05/0.9998, allocations: 16.61 kB / 0.9313 GB, free: 16 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.9998, allocations: 3.938 kB / 0.9313 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.879e-06/0.9998, allocations: 2.125 kB / 0.9313 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/1, allocations: 8.734 kB / 0.9313 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003947/1, allocations: 144.1 kB / 0.9314 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/1.001, allocations: 0.6774 MB / 0.9321 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.346e-05/1.001, allocations: 6.562 kB / 0.9321 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.052e-05/1.001, allocations: 7.438 kB / 0.9321 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/1.001, allocations: 4 kB / 0.9321 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/1.02, allocations: 1.294 MB / 0.9334 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.479/8.5, allocations: 9.984 kB / 0.9334 GB, free: 14.81 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)