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.007865/0.007865, allocations: 103.1 kB / 15.74 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.001824/0.001824, allocations: 188.8 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002112/0.002112, allocations: 275 kB / 290.8 MB, free: 1.785 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9652/0.9652, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 103.8 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1436, allocations: 86.96 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.4414/0.5851, allocations: 147.8 MB / 0.9103 GB, free: 15.33 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0001308/0.5853, allocations: 55.61 kB / 0.9103 GB, free: 15.28 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.13e-05/0.5853, allocations: 0 / 0.9103 GB, free: 15.28 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 9.611e-05/0.5854, allocations: 7.922 kB / 0.9103 GB, free: 15.27 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 6.212e-05/0.5855, allocations: 7.938 kB / 0.9103 GB, free: 15.26 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004022/0.5859, allocations: 103.6 kB / 0.9104 GB, free: 15.16 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 7.107e-05/0.586, allocations: 43.84 kB / 0.9105 GB, free: 15.12 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 2.965e-05/0.5861, allocations: 0 / 0.9105 GB, free: 15.12 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 4.037e-05/0.5861, allocations: 11.98 kB / 0.9105 GB, free: 15.11 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 5.753e-05/0.5862, allocations: 19.91 kB / 0.9105 GB, free: 15.09 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.5862, allocations: 0 / 0.9105 GB, free: 15.09 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002375/0.5864, allocations: 87.72 kB / 0.9106 GB, free: 15 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 3.598e-05/0.5865, allocations: 4 kB / 0.9106 GB, free: 15 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.5865, allocations: 15.92 kB / 0.9106 GB, free: 14.98 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.5867, allocations: 75.64 kB / 0.9107 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.5867, allocations: 0.6562 kB / 0.9107 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.403e-06/0.5867, allocations: 4 kB / 0.9107 GB, free: 14.91 MB / 0.67 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.5867, allocations: 4 kB / 0.9107 GB, free: 14.9 MB / 0.67 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.0003448/0.587, allocations: 344.7 kB / 0.911 GB, free: 14.52 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.5871, allocations: 8.031 kB / 0.911 GB, free: 14.52 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.083e-05/0.5871, allocations: 34.75 kB / 0.9111 GB, free: 14.47 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.5873, allocations: 12.92 kB / 0.9111 GB, free: 14.46 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.5874, allocations: 169.5 kB / 0.9112 GB, free: 14.26 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.202e-05/0.5875, allocations: 37.62 kB / 0.9113 GB, free: 14.21 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.5875, allocations: 0 / 0.9113 GB, free: 14.21 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.5876, allocations: 45.69 kB / 0.9113 GB, free: 14.16 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.5876, allocations: 0 / 0.9113 GB, free: 14.16 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.5877, allocations: 0 / 0.9113 GB, free: 14.16 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.5877, allocations: 4 kB / 0.9113 GB, free: 14.16 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.082e-05/0.5877, allocations: 19.92 kB / 0.9113 GB, free: 14.14 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003506/0.5881, allocations: 264.9 kB / 0.9116 GB, free: 13.83 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 3.697e-05/0.5881, allocations: 18.58 kB / 0.9116 GB, free: 13.8 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.43e-05/0.5882, allocations: 4.859 kB / 0.9116 GB, free: 13.8 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 6.923e-06/0.5882, allocations: 0 / 0.9116 GB, free: 13.8 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.5882, allocations: 38.62 kB / 0.9117 GB, free: 13.75 MB / 0.67 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.5882, allocations: 1.688 kB / 0.9117 GB, free: 13.75 MB / 0.67 GB Notification: Performance of matching and sorting (n=1): time 0.0001209/0.5883, allocations: 41.62 kB / 0.9117 GB, free: 13.7 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.5884, allocations: 55.34 kB / 0.9118 GB, free: 13.64 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.009e-05/0.5885, allocations: 105.8 kB / 0.9119 GB, free: 13.52 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.5885, allocations: 25.7 kB / 0.9119 GB, free: 13.49 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/0.5885, allocations: 96.05 kB / 0.912 GB, free: 13.39 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 4.138e-06/0.5885, allocations: 0 / 0.912 GB, free: 13.39 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.5886, allocations: 13.72 kB / 0.912 GB, free: 13.38 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.535e-05/0.5887, allocations: 318.8 kB / 0.9123 GB, free: 13.05 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.541e-05/0.5887, allocations: 8.125 kB / 0.9123 GB, free: 13.05 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.734e-05/0.5887, allocations: 26.56 kB / 0.9123 GB, free: 13.01 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.097e-05/0.5888, allocations: 34.5 kB / 0.9124 GB, free: 12.97 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5888, allocations: 0 / 0.9124 GB, free: 12.97 MB / 0.67 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.654e-05/0.5889, allocations: 53.67 kB / 0.9124 GB, free: 12.91 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.5889, allocations: 8 kB / 0.9124 GB, free: 12.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.5889, allocations: 0 / 0.9124 GB, free: 12.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.5889, allocations: 3.984 kB / 0.9124 GB, free: 12.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.681e-05/0.589, allocations: 11.94 kB / 0.9124 GB, free: 12.89 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.589, allocations: 7.875 kB / 0.9124 GB, free: 12.88 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.531e-05/0.5891, allocations: 15.83 kB / 0.9125 GB, free: 12.86 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.5891, allocations: 4 kB / 0.9125 GB, free: 12.86 MB / 0.67 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.795e-05/0.5891, allocations: 106.5 kB / 0.9126 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.5892, allocations: 8.062 kB / 0.9126 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.368e-05/0.5892, allocations: 3.125 kB / 0.9126 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.5892, allocations: 0 / 0.9126 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.5892, allocations: 7.922 kB / 0.9126 GB, free: 12.73 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.5892, allocations: 0 / 0.9126 GB, free: 12.73 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002451/0.5895, allocations: 343.6 kB / 0.9129 GB, free: 12.34 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.5895, allocations: 0 / 0.9129 GB, free: 12.34 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.63e-05/0.5895, allocations: 4 kB / 0.9129 GB, free: 12.33 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.5895, allocations: 7.969 kB / 0.9129 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.5895, allocations: 0 / 0.9129 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.5895, allocations: 4.438 kB / 0.9129 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.5895, allocations: 0 / 0.9129 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.94e-05/0.5896, allocations: 57.12 kB / 0.913 GB, free: 12.25 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.5896, allocations: 85 kB / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.5897, allocations: 1.812 kB / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.804e-05/0.5898, allocations: 11.98 kB / 0.9131 GB, free: 12.13 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.08e-05/0.5898, allocations: 4.031 kB / 0.9131 GB, free: 12.13 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-06/0.5898, allocations: 0 / 0.9131 GB, free: 12.13 MB / 0.67 GB Notification: Performance of sorting global known variables: time 3.954e-05/0.5898, allocations: 79.28 kB / 0.9131 GB, free: 12.05 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5898, allocations: 0 / 0.9131 GB, free: 12.05 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001941/0.59, allocations: 8 kB / 0.9132 GB, free: 12.04 MB / 0.67 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.0002967/0.5903, allocations: 0.6012 MB / 0.9137 GB, free: 11.41 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 6.647e-05/0.5904, allocations: 16 kB / 0.9138 GB, free: 11.4 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.5904, allocations: 0 / 0.9138 GB, free: 11.4 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 6.452e-06/0.5904, allocations: 3.938 kB / 0.9138 GB, free: 11.39 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.5907, allocations: 9.203 kB / 0.9138 GB, free: 11.39 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003107/0.591, allocations: 147.4 kB / 0.9139 GB, free: 11.2 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.5912, allocations: 0.6807 MB / 0.9146 GB, free: 10.5 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 4.337e-05/0.5913, allocations: 4 kB / 0.9146 GB, free: 10.49 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.358e-05/0.5913, allocations: 7.438 kB / 0.9146 GB, free: 10.48 MB / 0.67 GB Notification: Performance of SimCode: time 1.834e-06/0.5913, allocations: 0 / 0.9146 GB, free: 10.48 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01599/0.6073, allocations: 1.392 MB / 0.9159 GB, free: 9.293 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.175/7.782, allocations: 19.22 kB / 0.916 GB, free: 9.277 MB / 0.67 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)