Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_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.00134/0.001341, allocations: 112.5 kB / 15.73 MB, free: 76 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.001318/0.001318, allocations: 190.6 kB / 16.67 MB, free: 6.539 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002527/0.002527, allocations: 282.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.094/1.094, allocations: 178.6 MB / 0.5074 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002771/0.002771, allocations: 103.8 kB / 0.6943 GB, free: 3.605 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.4116, allocations: 89.13 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1714/0.583, allocations: 147.9 MB / 0.9257 GB, free: 10.91 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0001383/0.5832, allocations: 55.84 kB / 0.9258 GB, free: 10.86 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.343e-05/0.5832, allocations: 0 / 0.9258 GB, free: 10.86 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 9.907e-05/0.5833, allocations: 3.938 kB / 0.9258 GB, free: 10.86 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 7.128e-05/0.5834, allocations: 11.92 kB / 0.9258 GB, free: 10.84 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.5839, allocations: 111.6 kB / 0.9259 GB, free: 10.73 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.584, allocations: 35.84 kB / 0.9259 GB, free: 10.7 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 4.01e-05/0.5841, allocations: 4 kB / 0.9259 GB, free: 10.7 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 3.888e-05/0.5841, allocations: 15.92 kB / 0.9259 GB, free: 10.68 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 6.575e-05/0.5842, allocations: 7.984 kB / 0.9259 GB, free: 10.67 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.581e-05/0.5842, allocations: 4 kB / 0.926 GB, free: 10.67 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002701/0.5845, allocations: 83.72 kB / 0.926 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 4.591e-05/0.5846, allocations: 11.98 kB / 0.926 GB, free: 10.57 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 3.023e-05/0.5846, allocations: 11.94 kB / 0.9261 GB, free: 10.56 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.5848, allocations: 79.28 kB / 0.9261 GB, free: 10.49 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.5848, allocations: 0 / 0.9261 GB, free: 10.49 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5848, allocations: 0 / 0.9261 GB, free: 10.49 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.5848, allocations: 0 / 0.9261 GB, free: 10.49 MB / 0.6856 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.0004082/0.5852, allocations: 337 kB / 0.9265 GB, free: 10.11 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.5853, allocations: 8.031 kB / 0.9265 GB, free: 10.11 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.5853, allocations: 38.73 kB / 0.9265 GB, free: 10.06 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.5855, allocations: 20.92 kB / 0.9265 GB, free: 10.04 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.5857, allocations: 168.1 kB / 0.9267 GB, free: 9.836 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.947e-05/0.5857, allocations: 25.7 kB / 0.9267 GB, free: 9.805 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-06/0.5858, allocations: 4 kB / 0.9267 GB, free: 9.801 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.5859, allocations: 45.67 kB / 0.9267 GB, free: 9.75 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.586, allocations: 0 / 0.9267 GB, free: 9.75 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.586, allocations: 4 kB / 0.9268 GB, free: 9.746 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.586, allocations: 11.88 kB / 0.9268 GB, free: 9.734 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.75e-05/0.5861, allocations: 19.98 kB / 0.9268 GB, free: 9.715 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003846/0.5864, allocations: 264.8 kB / 0.927 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 3.699e-05/0.5865, allocations: 14.58 kB / 0.9271 GB, free: 9.383 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.84e-05/0.5865, allocations: 4.859 kB / 0.9271 GB, free: 9.375 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 6.963e-06/0.5865, allocations: 4.062 kB / 0.9271 GB, free: 9.371 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.5866, allocations: 38.56 kB / 0.9271 GB, free: 9.324 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.5866, allocations: 3.938 kB / 0.9271 GB, free: 9.32 MB / 0.6856 GB Notification: Performance of matching and sorting (n=1): time 0.000206/0.5868, allocations: 29.7 kB / 0.9271 GB, free: 9.285 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.5868, allocations: 59.34 kB / 0.9272 GB, free: 9.215 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.789e-05/0.5869, allocations: 109.8 kB / 0.9273 GB, free: 9.098 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.587, allocations: 29.7 kB / 0.9273 GB, free: 9.062 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.5871, allocations: 92.03 kB / 0.9274 GB, free: 8.969 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 4.368e-06/0.5871, allocations: 4.125 kB / 0.9274 GB, free: 8.965 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.5872, allocations: 17.72 kB / 0.9274 GB, free: 8.941 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0002382/0.5874, allocations: 310.8 kB / 0.9277 GB, free: 8.629 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.684e-05/0.5874, allocations: 4 kB / 0.9277 GB, free: 8.625 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.488e-05/0.5875, allocations: 26.56 kB / 0.9278 GB, free: 8.59 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.831e-05/0.5875, allocations: 34.52 kB / 0.9278 GB, free: 8.547 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5875, allocations: 0 / 0.9278 GB, free: 8.547 MB / 0.6856 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.575e-05/0.5876, allocations: 53.62 kB / 0.9278 GB, free: 8.488 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.5877, allocations: 8 kB / 0.9278 GB, free: 8.48 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.5877, allocations: 0 / 0.9278 GB, free: 8.48 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.5877, allocations: 0 / 0.9278 GB, free: 8.48 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.965e-05/0.5877, allocations: 11.94 kB / 0.9279 GB, free: 8.469 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.5878, allocations: 3.938 kB / 0.9279 GB, free: 8.465 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.235e-05/0.5878, allocations: 8.047 kB / 0.9279 GB, free: 8.457 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-06/0.5878, allocations: 7.984 kB / 0.9279 GB, free: 8.449 MB / 0.6856 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.357e-05/0.5879, allocations: 113.8 kB / 0.928 GB, free: 8.328 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.5879, allocations: 4 kB / 0.928 GB, free: 8.324 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.154e-05/0.588, allocations: 7.203 kB / 0.928 GB, free: 8.32 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.588, allocations: 3.938 kB / 0.928 GB, free: 8.316 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.588, allocations: 0 / 0.928 GB, free: 8.316 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.588, allocations: 0 / 0.928 GB, free: 8.316 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002888/0.5883, allocations: 346.8 kB / 0.9283 GB, free: 7.918 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.5883, allocations: 4 kB / 0.9283 GB, free: 7.914 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.038e-05/0.5883, allocations: 3.938 kB / 0.9283 GB, free: 7.91 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.5883, allocations: 3.938 kB / 0.9283 GB, free: 7.906 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-06/0.5883, allocations: 0 / 0.9283 GB, free: 7.906 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.5883, allocations: 0 / 0.9283 GB, free: 7.906 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5883, allocations: 0 / 0.9283 GB, free: 7.906 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.318e-05/0.5884, allocations: 61.17 kB / 0.9284 GB, free: 7.828 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.5885, allocations: 92.92 kB / 0.9285 GB, free: 7.719 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.5885, allocations: 4 kB / 0.9285 GB, free: 7.715 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.353e-05/0.5886, allocations: 256 / 0.9285 GB, free: 7.715 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.155e-06/0.5886, allocations: 3.938 kB / 0.9285 GB, free: 7.711 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.5886, allocations: 4 kB / 0.9285 GB, free: 7.707 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 5.803e-05/0.5887, allocations: 91.27 kB / 0.9286 GB, free: 7.617 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5887, allocations: 0 / 0.9286 GB, free: 7.617 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.000204/0.5889, allocations: 4 kB / 0.9286 GB, free: 7.613 MB / 0.6856 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.0003687/0.5893, allocations: 0.6053 MB / 0.9292 GB, free: 6.98 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 7.486e-05/0.5894, allocations: 8 kB / 0.9292 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.5894, allocations: 0 / 0.9292 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 1.132e-05/0.5894, allocations: 12.16 kB / 0.9292 GB, free: 6.961 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.5896, allocations: 4 kB / 0.9292 GB, free: 6.957 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003519/0.59, allocations: 148.2 kB / 0.9293 GB, free: 6.77 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.5904, allocations: 0.6729 MB / 0.93 GB, free: 6.07 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 4.837e-05/0.5904, allocations: 7.984 kB / 0.93 GB, free: 6.062 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.765e-05/0.5905, allocations: 11.5 kB / 0.93 GB, free: 6.051 MB / 0.6856 GB Notification: Performance of SimCode: time 2.2e-07/0.5905, allocations: 0 / 0.93 GB, free: 6.051 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.6117, allocations: 1.395 MB / 0.9314 GB, free: 4.836 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/8.413, allocations: 10.5 kB / 0.9314 GB, free: 4.832 MB / 0.6856 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)