Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_10_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.001313/0.001313, 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.001285/0.001285, allocations: 194.7 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.548/2.548, allocations: 437.1 MB / 0.7104 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 55.91 kB / 0.8693 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5228/0.5241, allocations: 151.6 MB / 1.017 GB, free: 2.449 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1383/0.6625, allocations: 147.8 MB / 1.162 GB, free: 14.04 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001403/0.6627, allocations: 63.84 kB / 1.162 GB, free: 13.98 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.854e-05/0.6627, allocations: 0 / 1.162 GB, free: 13.98 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.6628, allocations: 7.938 kB / 1.162 GB, free: 13.97 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.534e-05/0.6629, allocations: 11.91 kB / 1.162 GB, free: 13.96 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.6634, allocations: 104.8 kB / 1.162 GB, free: 13.86 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.802e-05/0.6635, allocations: 35.84 kB / 1.162 GB, free: 13.82 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.085e-05/0.6635, allocations: 8 kB / 1.162 GB, free: 13.81 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.553e-05/0.6636, allocations: 11.98 kB / 1.162 GB, free: 13.8 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.361e-05/0.6636, allocations: 19.86 kB / 1.162 GB, free: 13.78 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.202e-05/0.6637, allocations: 3.938 kB / 1.162 GB, free: 13.78 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002479/0.6639, allocations: 79.78 kB / 1.162 GB, free: 13.7 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.099e-05/0.664, allocations: 7.984 kB / 1.162 GB, free: 13.69 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.943e-05/0.664, allocations: 11.94 kB / 1.162 GB, free: 13.68 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.6642, allocations: 78.08 kB / 1.162 GB, free: 13.61 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.6642, allocations: 0 / 1.162 GB, free: 13.61 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.242e-06/0.6642, allocations: 0 / 1.162 GB, free: 13.61 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.369e-06/0.6642, allocations: 4 kB / 1.162 GB, free: 13.6 MB / 0.92 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.000329/0.6645, allocations: 335.4 kB / 1.163 GB, free: 13.23 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.6646, allocations: 12.03 kB / 1.163 GB, free: 13.21 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.241e-05/0.6646, allocations: 30.75 kB / 1.163 GB, free: 13.18 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.6648, allocations: 28.84 kB / 1.163 GB, free: 13.15 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.62e-05/0.6649, allocations: 164.1 kB / 1.163 GB, free: 12.95 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.517e-05/0.665, allocations: 33.7 kB / 1.163 GB, free: 12.91 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.665, allocations: 0 / 1.163 GB, free: 12.91 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.6652, allocations: 49.67 kB / 1.163 GB, free: 12.86 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.6652, allocations: 3.938 kB / 1.163 GB, free: 12.85 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.6652, allocations: 0 / 1.163 GB, free: 12.85 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.6652, allocations: 0 / 1.163 GB, free: 12.85 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.332e-05/0.6653, allocations: 19.98 kB / 1.163 GB, free: 12.83 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003392/0.6656, allocations: 264.8 kB / 1.163 GB, free: 12.52 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 3.394e-05/0.6657, allocations: 14.58 kB / 1.163 GB, free: 12.5 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.938e-05/0.6657, allocations: 8.922 kB / 1.163 GB, free: 12.49 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.6657, allocations: 0 / 1.163 GB, free: 12.49 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.6657, allocations: 34.5 kB / 1.163 GB, free: 12.45 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.6657, allocations: 0 / 1.163 GB, free: 12.45 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001249/0.6659, allocations: 37.83 kB / 1.163 GB, free: 12.4 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.6659, allocations: 59.34 kB / 1.163 GB, free: 12.33 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.179e-05/0.666, allocations: 105.8 kB / 1.163 GB, free: 12.22 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.666, allocations: 25.7 kB / 1.163 GB, free: 12.19 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.451e-05/0.666, allocations: 91.97 kB / 1.163 GB, free: 12.09 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.67e-06/0.6661, allocations: 3.906 kB / 1.163 GB, free: 12.09 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.6661, allocations: 21.7 kB / 1.163 GB, free: 12.06 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.176e-05/0.6662, allocations: 314.8 kB / 1.164 GB, free: 11.75 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.555e-05/0.6662, allocations: 4 kB / 1.164 GB, free: 11.74 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.165e-05/0.6662, allocations: 34.5 kB / 1.164 GB, free: 11.7 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.746e-05/0.6663, allocations: 26.58 kB / 1.164 GB, free: 11.66 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.6663, allocations: 0 / 1.164 GB, free: 11.66 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.247e-05/0.6664, allocations: 57.69 kB / 1.164 GB, free: 11.6 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.6664, allocations: 6.031 kB / 1.164 GB, free: 11.6 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.6664, allocations: 0 / 1.164 GB, free: 11.6 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.6664, allocations: 7.938 kB / 1.164 GB, free: 11.59 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.959e-05/0.6665, allocations: 11.88 kB / 1.164 GB, free: 11.58 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.6665, allocations: 0 / 1.164 GB, free: 11.58 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.397e-05/0.6665, allocations: 7.906 kB / 1.164 GB, free: 11.57 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-06/0.6666, allocations: 4.031 kB / 1.164 GB, free: 11.57 MB / 0.92 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.611e-05/0.6666, allocations: 117.8 kB / 1.164 GB, free: 11.44 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.6667, allocations: 8.016 kB / 1.164 GB, free: 11.43 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.558e-05/0.6667, allocations: 3.125 kB / 1.164 GB, free: 11.43 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.6667, allocations: 7.938 kB / 1.164 GB, free: 11.42 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.6667, allocations: 256 / 1.164 GB, free: 11.42 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.6667, allocations: 0 / 1.164 GB, free: 11.42 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.6669, allocations: 346.7 kB / 1.164 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.6669, allocations: 3.984 kB / 1.164 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.557e-05/0.667, allocations: 3.938 kB / 1.164 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.667, allocations: 0 / 1.164 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-06/0.667, allocations: 4.031 kB / 1.164 GB, free: 11.01 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.667, allocations: 4 kB / 1.164 GB, free: 11.01 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.667, allocations: 0 / 1.164 GB, free: 11.01 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.022e-05/0.6671, allocations: 53.14 kB / 1.164 GB, free: 10.94 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.377e-05/0.6671, allocations: 85.05 kB / 1.165 GB, free: 10.84 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.6671, allocations: 3.984 kB / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.122e-05/0.6672, allocations: 0 / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.6672, allocations: 8.031 kB / 1.165 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-06/0.6672, allocations: 0 / 1.165 GB, free: 10.82 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.29e-05/0.6673, allocations: 87.27 kB / 1.165 GB, free: 10.74 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6673, allocations: 0 / 1.165 GB, free: 10.74 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001996/0.6675, allocations: 8 kB / 1.165 GB, free: 10.73 MB / 0.92 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.0002687/0.6678, allocations: 0.6006 MB / 1.165 GB, free: 10.1 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 7.329e-05/0.6679, allocations: 19.92 kB / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.6679, allocations: 0 / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 6.823e-06/0.6679, allocations: 4 kB / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.6681, allocations: 0 / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003205/0.6684, allocations: 144.4 kB / 1.165 GB, free: 9.898 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001829/0.6686, allocations: 0.6768 MB / 1.166 GB, free: 9.195 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 5.52e-05/0.6687, allocations: 7.984 kB / 1.166 GB, free: 9.188 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.645e-05/0.6687, allocations: 11.44 kB / 1.166 GB, free: 9.176 MB / 0.92 GB Notification: Performance of SimCode: time 2.4e-07/0.6687, allocations: 0 / 1.166 GB, free: 9.176 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01495/0.6837, allocations: 1.35 MB / 1.167 GB, free: 7.953 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.753/7.437, allocations: 8.359 kB / 1.167 GB, free: 7.949 MB / 0.92 GB (rm -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches