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.001199/0.001199, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001177/0.001177, allocations: 191.3 kB / 16.25 MB, free: 6.641 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.238/1.238, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.217/2.217, allocations: 390.2 MB / 0.6644 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 67.88 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5526/0.5539, allocations: 140.4 MB / 0.9492 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1468/0.7007, allocations: 145.8 MB / 1.092 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001345/0.7009, allocations: 51.86 kB / 1.092 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.142e-05/0.7009, allocations: 0 / 1.092 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.701, allocations: 4 kB / 1.092 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.709e-05/0.7012, allocations: 15.91 kB / 1.092 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004539/0.7016, allocations: 91.73 kB / 1.092 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.167e-05/0.7017, allocations: 43.67 kB / 1.092 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.907e-05/0.7018, allocations: 4 kB / 1.092 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.159e-05/0.7018, allocations: 15.97 kB / 1.092 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.561e-05/0.7019, allocations: 12 kB / 1.092 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.7019, allocations: 0 / 1.092 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000263/0.7022, allocations: 87.7 kB / 1.092 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.303e-05/0.7022, allocations: 7.938 kB / 1.092 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.7023, allocations: 11.98 kB / 1.092 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.7024, allocations: 74.09 kB / 1.092 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.7024, allocations: 4 kB / 1.092 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.133e-06/0.7024, allocations: 0 / 1.092 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.7025, allocations: 4 kB / 1.092 GB, free: 15.34 MB / 0.8575 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.0003512/0.7028, allocations: 339.4 kB / 1.092 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.7029, allocations: 8.031 kB / 1.092 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.391e-05/0.7029, allocations: 34.75 kB / 1.092 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.7031, allocations: 16.92 kB / 1.092 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.7032, allocations: 168.1 kB / 1.093 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.315e-05/0.7033, allocations: 29.7 kB / 1.093 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.003e-05/0.7033, allocations: 4 kB / 1.093 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.7034, allocations: 45.67 kB / 1.093 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.842e-06/0.7035, allocations: 0 / 1.093 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.7035, allocations: 0 / 1.093 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.7035, allocations: 4 kB / 1.093 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.262e-05/0.7036, allocations: 19.98 kB / 1.093 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003523/0.7039, allocations: 264.8 kB / 1.093 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.362e-05/0.704, allocations: 22.56 kB / 1.093 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.831e-05/0.704, allocations: 4.859 kB / 1.093 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-06/0.704, allocations: 3.938 kB / 1.093 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.704, allocations: 38.62 kB / 1.093 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.704, allocations: 0 / 1.093 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001336/0.7042, allocations: 41.62 kB / 1.093 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/0.7042, allocations: 55.34 kB / 1.093 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.263e-05/0.7043, allocations: 101.9 kB / 1.093 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.7043, allocations: 25.7 kB / 1.093 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.96e-05/0.7044, allocations: 99.95 kB / 1.093 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.534e-06/0.7044, allocations: 11.84 kB / 1.093 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.7044, allocations: 13.72 kB / 1.093 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.87e-05/0.7045, allocations: 314.8 kB / 1.094 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.792e-05/0.7045, allocations: 12.11 kB / 1.094 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.595e-05/0.7046, allocations: 18.58 kB / 1.094 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.327e-05/0.7046, allocations: 30.52 kB / 1.094 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.7046, allocations: 0 / 1.094 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.526e-05/0.7047, allocations: 57.62 kB / 1.094 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.7047, allocations: 9.719 kB / 1.094 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.7047, allocations: 0 / 1.094 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.7048, allocations: 0 / 1.094 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.03e-05/0.7048, allocations: 15.92 kB / 1.094 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.7048, allocations: 0 / 1.094 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.978e-05/0.7049, allocations: 4 kB / 1.094 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.7049, allocations: 4 kB / 1.094 GB, free: 13.3 MB / 0.8575 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.448e-05/0.7049, allocations: 105.8 kB / 1.094 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.364e-05/0.705, allocations: 12 kB / 1.094 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.656e-05/0.705, allocations: 3.125 kB / 1.094 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.705, allocations: 3.938 kB / 1.094 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.705, allocations: 256 / 1.094 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.705, allocations: 3.938 kB / 1.094 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002316/0.7053, allocations: 350.8 kB / 1.094 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.7053, allocations: 0 / 1.094 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.761e-05/0.7053, allocations: 7.938 kB / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.7053, allocations: 4.031 kB / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-06/0.7053, allocations: 0 / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.7053, allocations: 0 / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.7053, allocations: 3.938 kB / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.534e-05/0.7054, allocations: 61.06 kB / 1.094 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-05/0.7055, allocations: 81.05 kB / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.7055, allocations: 0 / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.34e-05/0.7056, allocations: 4 kB / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.3e-05/0.7056, allocations: 8.031 kB / 1.094 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.7056, allocations: 3.984 kB / 1.094 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.716e-05/0.7056, allocations: 79.28 kB / 1.094 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7056, allocations: 4 kB / 1.094 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001942/0.7058, allocations: 4 kB / 1.094 GB, free: 12.47 MB / 0.8575 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.000285/0.7061, allocations: 0.6007 MB / 1.095 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.438e-05/0.7062, allocations: 19.94 kB / 1.095 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7062, allocations: 0 / 1.095 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.03e-06/0.7062, allocations: 3.938 kB / 1.095 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.7065, allocations: 7.984 kB / 1.095 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.7068, allocations: 152.5 kB / 1.095 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.707, allocations: 0.6768 MB / 1.096 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.373e-05/0.7071, allocations: 4 kB / 1.096 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.87e-05/0.7071, allocations: 7.438 kB / 1.096 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.7071, allocations: 0 / 1.096 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3944/1.102, allocations: 1.26 MB / 1.097 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002337/1.102, allocations: 235 kB / 1.097 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.587/2.689, allocations: 2.188 kB / 1.097 GB, free: 9.562 MB / 0.8575 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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