Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_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.004316/0.004316, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001045/0.001045, allocations: 202.3 kB / 16.68 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.314/2.314, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 64.72 kB / 0.9504 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2218, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.142/0.3639, allocations: 147.8 MB / 1.232 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001257/0.3641, allocations: 55.84 kB / 1.232 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.04e-05/0.3641, allocations: 0 / 1.232 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.3642, allocations: 7.938 kB / 1.232 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.69e-05/0.3643, allocations: 11.91 kB / 1.232 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.3647, allocations: 109.4 kB / 1.232 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.381e-05/0.3648, allocations: 35.84 kB / 1.232 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.187e-05/0.3648, allocations: 0 / 1.232 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.704e-05/0.3649, allocations: 19.97 kB / 1.232 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.148e-05/0.365, allocations: 11.94 kB / 1.232 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.365, allocations: 0 / 1.232 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002371/0.3652, allocations: 99.64 kB / 1.232 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.882e-05/0.3653, allocations: 4 kB / 1.232 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.833e-05/0.3653, allocations: 19.92 kB / 1.232 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.3655, allocations: 68.06 kB / 1.232 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.3655, allocations: 0 / 1.232 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3655, allocations: 0 / 1.232 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.3655, allocations: 0 / 1.232 GB, free: 13.18 MB / 0.9981 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.00034/0.3658, allocations: 347.3 kB / 1.233 GB, free: 12.79 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.3659, allocations: 8.031 kB / 1.233 GB, free: 12.79 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.142e-05/0.3659, allocations: 34.75 kB / 1.233 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002102/0.3661, allocations: 20.92 kB / 1.233 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.3662, allocations: 172.1 kB / 1.233 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.919e-05/0.3663, allocations: 25.7 kB / 1.233 GB, free: 12.48 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.3663, allocations: 0 / 1.233 GB, free: 12.48 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.3664, allocations: 49.67 kB / 1.233 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.3664, allocations: 3.938 kB / 1.233 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3665, allocations: 0 / 1.233 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.3665, allocations: 8 kB / 1.233 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.934e-05/0.3665, allocations: 15.98 kB / 1.233 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003381/0.3669, allocations: 256.9 kB / 1.233 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.068e-05/0.3669, allocations: 22.58 kB / 1.233 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.522e-05/0.367, allocations: 4.859 kB / 1.233 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-06/0.367, allocations: 4 kB / 1.233 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.367, allocations: 34.5 kB / 1.233 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.367, allocations: 0 / 1.233 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001199/0.3671, allocations: 45.7 kB / 1.233 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.675e-05/0.3672, allocations: 55.34 kB / 1.233 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.75e-05/0.3672, allocations: 105.8 kB / 1.233 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.3673, allocations: 25.7 kB / 1.233 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.756e-05/0.3673, allocations: 84.22 kB / 1.234 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.742e-06/0.3673, allocations: 15.94 kB / 1.234 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.293e-05/0.3674, allocations: 17.72 kB / 1.234 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.776e-05/0.3674, allocations: 310.8 kB / 1.234 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.867e-05/0.3675, allocations: 11.98 kB / 1.234 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.644e-05/0.3675, allocations: 22.52 kB / 1.234 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.118e-05/0.3676, allocations: 30.58 kB / 1.234 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3676, allocations: 0 / 1.234 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.162e-05/0.3677, allocations: 53.88 kB / 1.234 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.3677, allocations: 4 kB / 1.234 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.3677, allocations: 7.938 kB / 1.234 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.3677, allocations: 0 / 1.234 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.468e-05/0.3678, allocations: 23.8 kB / 1.234 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3678, allocations: 4.094 kB / 1.234 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.274e-05/0.3678, allocations: 7.938 kB / 1.234 GB, free: 11.13 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-06/0.3678, allocations: 0 / 1.234 GB, free: 11.13 MB / 0.9981 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.377e-05/0.3679, allocations: 113.8 kB / 1.234 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.891e-05/0.3679, allocations: 3.953 kB / 1.234 GB, free: 11 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.603e-05/0.368, allocations: 7.125 kB / 1.234 GB, free: 11 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.368, allocations: 3.938 kB / 1.234 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.368, allocations: 0 / 1.234 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.368, allocations: 4.078 kB / 1.234 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002335/0.3682, allocations: 346.8 kB / 1.234 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3682, allocations: 3.938 kB / 1.234 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.627e-05/0.3683, allocations: 3.938 kB / 1.234 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.3683, allocations: 4 kB / 1.234 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-06/0.3683, allocations: 0 / 1.234 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3683, allocations: 0 / 1.234 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3683, allocations: 0 / 1.234 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.816e-05/0.3684, allocations: 65.16 kB / 1.235 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.3684, allocations: 81.05 kB / 1.235 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.3684, allocations: 0 / 1.235 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.642e-05/0.3685, allocations: 4 kB / 1.235 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.334e-05/0.3685, allocations: 3.984 kB / 1.235 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-06/0.3685, allocations: 0 / 1.235 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.81e-05/0.3686, allocations: 83.28 kB / 1.235 GB, free: 10.31 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3686, allocations: 0 / 1.235 GB, free: 10.31 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001978/0.3688, allocations: 8 kB / 1.235 GB, free: 10.3 MB / 0.9981 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.0002772/0.3691, allocations: 0.6051 MB / 1.235 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 6.6e-05/0.3692, allocations: 15.94 kB / 1.235 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.3692, allocations: 0 / 1.235 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 6.512e-06/0.3692, allocations: 8.219 kB / 1.235 GB, free: 9.645 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.3694, allocations: 13.81 kB / 1.235 GB, free: 9.633 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003043/0.3697, allocations: 132.2 kB / 1.235 GB, free: 9.465 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.3699, allocations: 0.6768 MB / 1.236 GB, free: 8.762 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.423e-05/0.37, allocations: 4.062 kB / 1.236 GB, free: 8.758 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.37, allocations: 19.38 kB / 1.236 GB, free: 8.738 MB / 0.9981 GB Notification: Performance of SimCode: time 2.8e-07/0.37, allocations: 0 / 1.236 GB, free: 8.738 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.387, allocations: 1.369 MB / 1.237 GB, free: 7.52 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.046/7.433, allocations: 13.38 kB / 1.238 GB, free: 7.508 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches