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.001496/0.001496, allocations: 108 kB / 15.6 MB, free: 132 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.001506/0.001506, allocations: 194 kB / 16.53 MB, free: 6.391 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002462/0.002463, allocations: 271 kB / 290.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.027/1.027, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002677/0.002677, allocations: 96.3 kB / 0.6065 GB, free: 24.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1453, allocations: 89.15 MB / 0.6936 GB, free: 4.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.3956/0.541, allocations: 147.8 MB / 0.838 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0001288/0.5411, allocations: 56.58 kB / 0.838 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.405e-05/0.5412, allocations: 4 kB / 0.838 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 8.512e-05/0.5413, allocations: 1.062 kB / 0.838 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 7.144e-05/0.5413, allocations: 14.47 kB / 0.838 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004121/0.5418, allocations: 115.6 kB / 0.8381 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.713e-05/0.5418, allocations: 25.98 kB / 0.8382 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.392e-05/0.5419, allocations: 1.281 kB / 0.8382 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.949e-05/0.5419, allocations: 20.83 kB / 0.8382 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.915e-05/0.542, allocations: 17.89 kB / 0.8382 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.542, allocations: 1.062 kB / 0.8382 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002366/0.5423, allocations: 80.91 kB / 0.8383 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.008e-05/0.5423, allocations: 11.33 kB / 0.8383 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.031e-05/0.5423, allocations: 13.67 kB / 0.8383 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.5425, allocations: 76.47 kB / 0.8384 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.5425, allocations: 0 / 0.8384 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5425, allocations: 0 / 0.8384 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.5425, allocations: 1.281 kB / 0.8384 GB, free: 13.26 MB / 0.5762 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.0003814/0.5429, allocations: 337.3 kB / 0.8387 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.543, allocations: 8.969 kB / 0.8387 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.547e-05/0.543, allocations: 31.94 kB / 0.8387 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002079/0.5432, allocations: 24.16 kB / 0.8388 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.5433, allocations: 161.5 kB / 0.8389 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.659e-05/0.5434, allocations: 31.89 kB / 0.839 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-06/0.5434, allocations: 1.438 kB / 0.839 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.5436, allocations: 55.95 kB / 0.839 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.5436, allocations: 0 / 0.839 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.5436, allocations: 3.984 kB / 0.839 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.5436, allocations: 2.375 kB / 0.839 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.802e-05/0.5437, allocations: 18.8 kB / 0.839 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003672/0.544, allocations: 257.1 kB / 0.8393 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.178e-05/0.5441, allocations: 24.83 kB / 0.8393 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.612e-05/0.5441, allocations: 10.05 kB / 0.8393 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.124e-06/0.5441, allocations: 3.984 kB / 0.8393 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.5442, allocations: 31.75 kB / 0.8393 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.5442, allocations: 0 / 0.8393 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001216/0.5443, allocations: 32.27 kB / 0.8394 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.5443, allocations: 56.38 kB / 0.8394 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.637e-05/0.5444, allocations: 114 kB / 0.8395 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.5445, allocations: 25.7 kB / 0.8396 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.5445, allocations: 98.11 kB / 0.8397 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.429e-06/0.5445, allocations: 1.219 kB / 0.8397 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.442e-05/0.5446, allocations: 21.36 kB / 0.8397 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.5447, allocations: 312 kB / 0.84 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.542e-05/0.5447, allocations: 6.938 kB / 0.84 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.181e-05/0.5448, allocations: 30.78 kB / 0.84 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.053e-05/0.5448, allocations: 22.64 kB / 0.84 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.5448, allocations: 0 / 0.84 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.663e-05/0.5449, allocations: 66.31 kB / 0.8401 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.5449, allocations: 5.844 kB / 0.8401 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.5449, allocations: 4.094 kB / 0.8401 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.5449, allocations: 5.281 kB / 0.8401 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.905e-05/0.545, allocations: 5.375 kB / 0.8401 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.545, allocations: 5.219 kB / 0.8401 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.95e-05/0.5451, allocations: 1.281 kB / 0.8401 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.5451, allocations: 2.688 kB / 0.8401 GB, free: 11.38 MB / 0.5762 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.721e-05/0.5452, allocations: 112.5 kB / 0.8402 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.5452, allocations: 1.469 kB / 0.8402 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.538e-05/0.5452, allocations: 7.125 kB / 0.8402 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.5452, allocations: 5.844 kB / 0.8402 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.5452, allocations: 3.938 kB / 0.8402 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.5452, allocations: 1.562 kB / 0.8402 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.5455, allocations: 342.1 kB / 0.8406 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.5455, allocations: 3.984 kB / 0.8406 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.474e-05/0.5456, allocations: 2.969 kB / 0.8406 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.5456, allocations: 5.125 kB / 0.8406 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-06/0.5456, allocations: 0 / 0.8406 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.5456, allocations: 1.125 kB / 0.8406 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5456, allocations: 4 kB / 0.8406 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.699e-05/0.5457, allocations: 59.67 kB / 0.8406 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.5457, allocations: 86.16 kB / 0.8407 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.5457, allocations: 1.219 kB / 0.8407 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.945e-05/0.5458, allocations: 2.312 kB / 0.8407 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.774e-06/0.5458, allocations: 0 / 0.8407 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.5458, allocations: 5.156 kB / 0.8407 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 5.438e-05/0.5459, allocations: 90.2 kB / 0.8408 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5459, allocations: 5.156 kB / 0.8408 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002033/0.5461, allocations: 9.469 kB / 0.8408 GB, free: 10.58 MB / 0.5762 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.0003925/0.5465, allocations: 0.5941 MB / 0.8414 GB, free: 9.984 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 7.217e-05/0.5466, allocations: 21.55 kB / 0.8414 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5466, allocations: 0 / 0.8414 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 5.51e-06/0.5466, allocations: 2.062 kB / 0.8414 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.5468, allocations: 9.688 kB / 0.8415 GB, free: 9.969 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003212/0.5472, allocations: 141.6 kB / 0.8416 GB, free: 9.812 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.5475, allocations: 0.6812 MB / 0.8423 GB, free: 9.109 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 5.106e-05/0.5475, allocations: 8.578 kB / 0.8423 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.5475, allocations: 12.5 kB / 0.8423 GB, free: 9.094 MB / 0.5762 GB Notification: Performance of SimCode: time 2.81e-07/0.5476, allocations: 3.938 kB / 0.8423 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.5686, allocations: 1.369 MB / 0.8436 GB, free: 8.391 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.377/7.945, allocations: 8.172 kB / 0.8436 GB, free: 8.383 MB / 0.5762 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)