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.004933/0.004933, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.001465/0.001465, allocations: 196.9 kB / 16.68 MB, free: 6.352 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002439/0.002439, allocations: 279 kB / 290.8 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9661/0.9661, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002675/0.002675, allocations: 97.98 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.154, allocations: 86.97 MB / 0.7659 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.4337/0.5877, allocations: 147.8 MB / 0.9103 GB, free: 15.32 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0001614/0.5879, allocations: 55.73 kB / 0.9103 GB, free: 15.27 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.879e-05/0.5879, allocations: 0 / 0.9103 GB, free: 15.27 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.5881, allocations: 3.938 kB / 0.9103 GB, free: 15.27 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 8.552e-05/0.5882, allocations: 11.92 kB / 0.9103 GB, free: 15.26 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004853/0.5887, allocations: 103.6 kB / 0.9104 GB, free: 15.16 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 9.003e-05/0.5888, allocations: 31.86 kB / 0.9105 GB, free: 15.12 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.237e-05/0.5888, allocations: 3.984 kB / 0.9105 GB, free: 15.12 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.5889, allocations: 23.98 kB / 0.9105 GB, free: 15.1 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 6.81e-05/0.589, allocations: 11.92 kB / 0.9105 GB, free: 15.09 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.589, allocations: 3.938 kB / 0.9105 GB, free: 15.08 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002471/0.5892, allocations: 79.78 kB / 0.9106 GB, free: 15 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 4.417e-05/0.5893, allocations: 11.98 kB / 0.9106 GB, free: 14.99 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.194e-05/0.5893, allocations: 11.92 kB / 0.9106 GB, free: 14.98 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0001786/0.5895, allocations: 71.64 kB / 0.9107 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.5895, allocations: 4 kB / 0.9107 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5895, allocations: 0 / 0.9107 GB, free: 14.91 MB / 0.67 GB Notification: Performance of Transformations before backend: time 6.762e-06/0.5895, allocations: 0 / 0.9107 GB, free: 14.91 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.0004189/0.59, allocations: 344.8 kB / 0.911 GB, free: 14.53 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.59, allocations: 8.031 kB / 0.911 GB, free: 14.52 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.759e-05/0.59, allocations: 34.75 kB / 0.9111 GB, free: 14.48 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.5903, allocations: 16.92 kB / 0.9111 GB, free: 14.46 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.5904, allocations: 168.3 kB / 0.9112 GB, free: 14.26 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/0.5905, allocations: 29.64 kB / 0.9113 GB, free: 14.23 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.5905, allocations: 8 kB / 0.9113 GB, free: 14.22 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.5906, allocations: 45.67 kB / 0.9113 GB, free: 14.17 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.5906, allocations: 5.812 kB / 0.9113 GB, free: 14.16 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.5907, allocations: 0 / 0.9113 GB, free: 14.16 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.5907, allocations: 7.984 kB / 0.9113 GB, free: 14.16 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.278e-05/0.5907, allocations: 15.98 kB / 0.9113 GB, free: 14.14 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003725/0.5911, allocations: 256.8 kB / 0.9116 GB, free: 13.84 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 3.129e-05/0.5912, allocations: 22.58 kB / 0.9116 GB, free: 13.81 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.956e-05/0.5912, allocations: 12.89 kB / 0.9116 GB, free: 13.79 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.5912, allocations: 3.984 kB / 0.9116 GB, free: 13.79 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.5912, allocations: 38.56 kB / 0.9117 GB, free: 13.74 MB / 0.67 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.5912, allocations: 0 / 0.9117 GB, free: 13.74 MB / 0.67 GB Notification: Performance of matching and sorting (n=1): time 0.0001271/0.5914, allocations: 29.7 kB / 0.9117 GB, free: 13.71 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.5914, allocations: 59.47 kB / 0.9117 GB, free: 13.64 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.763e-05/0.5915, allocations: 106.3 kB / 0.9118 GB, free: 13.52 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.5915, allocations: 25.7 kB / 0.9119 GB, free: 13.49 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 5.242e-05/0.5916, allocations: 96.05 kB / 0.912 GB, free: 13.39 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 3.948e-06/0.5916, allocations: 0 / 0.912 GB, free: 13.39 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.5917, allocations: 13.72 kB / 0.912 GB, free: 13.38 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.5918, allocations: 318.8 kB / 0.9123 GB, free: 13.05 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.613e-05/0.5918, allocations: 4 kB / 0.9123 GB, free: 13.05 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.637e-05/0.5918, allocations: 30.52 kB / 0.9123 GB, free: 13.01 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.386e-05/0.5919, allocations: 33.91 kB / 0.9123 GB, free: 12.97 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.5919, allocations: 0 / 0.9123 GB, free: 12.97 MB / 0.67 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.404e-05/0.592, allocations: 53.62 kB / 0.9124 GB, free: 12.91 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.592, allocations: 12.09 kB / 0.9124 GB, free: 12.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.592, allocations: 3.938 kB / 0.9124 GB, free: 12.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.592, allocations: 0 / 0.9124 GB, free: 12.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.725e-05/0.5921, allocations: 15.94 kB / 0.9124 GB, free: 12.88 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.5921, allocations: 3.938 kB / 0.9124 GB, free: 12.88 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.252e-05/0.5922, allocations: 7.891 kB / 0.9124 GB, free: 12.87 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.5922, allocations: 4 kB / 0.9124 GB, free: 12.87 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 7.558e-05/0.5923, allocations: 106.5 kB / 0.9125 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.5923, allocations: 4 kB / 0.9125 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.505e-05/0.5923, allocations: 11.11 kB / 0.9126 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.5923, allocations: 0 / 0.9126 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5923, allocations: 3.938 kB / 0.9126 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.5923, allocations: 3.938 kB / 0.9126 GB, free: 12.73 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/0.5926, allocations: 346.7 kB / 0.9129 GB, free: 12.34 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.5926, allocations: 0 / 0.9129 GB, free: 12.34 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.689e-05/0.5927, allocations: 5.812 kB / 0.9129 GB, free: 12.33 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.5927, allocations: 3.938 kB / 0.9129 GB, free: 12.33 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.5927, allocations: 3.984 kB / 0.9129 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.5927, allocations: 4.031 kB / 0.9129 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5927, allocations: 0 / 0.9129 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.24e-05/0.5928, allocations: 57.14 kB / 0.913 GB, free: 12.25 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 4.365e-05/0.5928, allocations: 85 kB / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.5928, allocations: 0 / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.241e-05/0.5929, allocations: 7.984 kB / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.357e-05/0.5929, allocations: 0 / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-06/0.5929, allocations: 4.031 kB / 0.9131 GB, free: 12.13 MB / 0.67 GB Notification: Performance of sorting global known variables: time 5.202e-05/0.593, allocations: 87.22 kB / 0.9131 GB, free: 12.05 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.31e-07/0.593, allocations: 0 / 0.9131 GB, free: 12.05 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001861/0.5932, 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.0003668/0.5936, allocations: 0.6007 MB / 0.9137 GB, free: 11.41 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 8.573e-05/0.5937, allocations: 23.92 kB / 0.9138 GB, free: 11.39 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5937, allocations: 0 / 0.9138 GB, free: 11.39 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 4.729e-06/0.5937, allocations: 0 / 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.0002187/0.5939, allocations: 9.875 kB / 0.9138 GB, free: 11.38 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003388/0.5943, allocations: 140 kB / 0.9139 GB, free: 11.21 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.5946, allocations: 0.6815 MB / 0.9146 GB, free: 10.5 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 4.387e-05/0.5946, allocations: 4 kB / 0.9146 GB, free: 10.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.095e-05/0.5947, allocations: 19.36 kB / 0.9146 GB, free: 10.48 MB / 0.67 GB Notification: Performance of SimCode: time 2.31e-07/0.5947, allocations: 0 / 0.9146 GB, free: 10.48 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.6169, allocations: 1.382 MB / 0.9159 GB, free: 9.293 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.472/8.089, allocations: 14.06 kB / 0.916 GB, free: 9.281 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)