Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion",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.0009507/0.0009508, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007419/0.007419, allocations: 170 kB / 16.26 MB, free: 6.613 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.305/1.305, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.243/2.243, allocations: 390.9 MB / 0.6664 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003108, allocations: 11.94 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6787/0.6791, allocations: 142.4 MB / 0.9552 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.115/0.7941, allocations: 131.6 MB / 1.084 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0001051/0.7942, allocations: 55.88 kB / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.213e-05/0.7943, allocations: 0 / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 6.427e-05/0.7943, allocations: 0 / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.48e-05/0.7944, allocations: 15.91 kB / 1.084 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000665/0.7951, allocations: 231 kB / 1.084 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.966e-05/0.7952, allocations: 55.88 kB / 1.084 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 2.202e-05/0.7952, allocations: 0 / 1.084 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.915e-05/0.7952, allocations: 23.86 kB / 1.084 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.241e-05/0.7953, allocations: 7.984 kB / 1.084 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.726e-06/0.7953, allocations: 4 kB / 1.084 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003865/0.7957, allocations: 239.4 kB / 1.084 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.629e-05/0.7957, allocations: 15.98 kB / 1.084 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.19e-05/0.7958, allocations: 37.62 kB / 1.084 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.7961, allocations: 193.8 kB / 1.084 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.7961, allocations: 3.938 kB / 1.084 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.102e-06/0.7961, allocations: 0 / 1.084 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.126e-06/0.7961, allocations: 0 / 1.084 GB, free: 10.36 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003003/0.7964, allocations: 355.4 kB / 1.085 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.7964, allocations: 8.031 kB / 1.085 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.893e-05/0.7965, allocations: 30.75 kB / 1.085 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.158e-05/0.7965, allocations: 4.938 kB / 1.085 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.846e-05/0.7966, allocations: 164.4 kB / 1.085 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.878e-05/0.7966, allocations: 30.02 kB / 1.085 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.34e-06/0.7966, allocations: 4 kB / 1.085 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.863e-05/0.7967, allocations: 45.67 kB / 1.085 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-06/0.7968, allocations: 0 / 1.085 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.7968, allocations: 3.984 kB / 1.085 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.7968, allocations: 7.984 kB / 1.085 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.619e-05/0.7968, allocations: 11.94 kB / 1.085 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005881/0.7974, allocations: 0.6028 MB / 1.086 GB, free: 8.879 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 3.074e-05/0.7975, allocations: 18.56 kB / 1.086 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.373e-05/0.7975, allocations: 12.8 kB / 1.086 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001545/0.7977, allocations: 336.5 kB / 1.086 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.7977, allocations: 34.56 kB / 1.086 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.7977, allocations: 0 / 1.086 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0001094/0.7978, allocations: 45.55 kB / 1.086 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/0.7978, allocations: 55.34 kB / 1.086 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.391e-05/0.7979, allocations: 105.8 kB / 1.086 GB, free: 8.16 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.7979, allocations: 25.7 kB / 1.086 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.168e-05/0.798, allocations: 84.05 kB / 1.086 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.581e-06/0.798, allocations: 3.938 kB / 1.086 GB, free: 8.039 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.975e-05/0.798, allocations: 13.84 kB / 1.086 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.642e-05/0.7981, allocations: 326.8 kB / 1.087 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.03e-05/0.7981, allocations: 0 / 1.087 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.917e-05/0.7981, allocations: 13.72 kB / 1.087 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.899e-05/0.7982, allocations: 25.66 kB / 1.087 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.7982, allocations: 0 / 1.087 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.621e-05/0.7982, allocations: 53.62 kB / 1.087 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.7982, allocations: 4 kB / 1.087 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.7983, allocations: 4 kB / 1.087 GB, free: 7.574 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.624e-06/0.7983, allocations: 0 / 1.087 GB, free: 7.574 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.678e-05/0.7983, allocations: 7.984 kB / 1.087 GB, free: 7.566 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-06/0.7983, allocations: 0 / 1.087 GB, free: 7.566 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.058e-05/0.7983, allocations: 11.94 kB / 1.087 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.7984, allocations: 0 / 1.087 GB, free: 7.555 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 5.563e-05/0.7984, allocations: 105.9 kB / 1.087 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.412e-05/0.7984, allocations: 11.91 kB / 1.087 GB, free: 7.43 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.605e-05/0.7985, allocations: 124.9 kB / 1.087 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.195e-05/0.7986, allocations: 176.3 kB / 1.087 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-05/0.7986, allocations: 176.3 kB / 1.087 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.314e-05/0.7987, allocations: 184.1 kB / 1.088 GB, free: 6.746 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.7989, allocations: 409.2 kB / 1.088 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.1e-05/0.7989, allocations: 104.9 kB / 1.088 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.826e-05/0.7989, allocations: 109 kB / 1.088 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.112e-05/0.799, allocations: 176.3 kB / 1.088 GB, free: 5.887 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.45e-05/0.799, allocations: 184.2 kB / 1.089 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-05/0.7991, allocations: 176.3 kB / 1.089 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.393e-05/0.7991, allocations: 188.2 kB / 1.089 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001011/0.7992, allocations: 307.8 kB / 1.089 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.393e-05/0.7993, allocations: 182 kB / 1.089 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.522e-05/0.7993, allocations: 184.2 kB / 1.09 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.7995, allocations: 112.9 kB / 1.09 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.7995, allocations: 184.2 kB / 1.09 GB, free: 4.309 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.692e-05/0.7996, allocations: 113.1 kB / 1.09 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.783e-05/0.7996, allocations: 83.27 kB / 1.09 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7996, allocations: 3.938 kB / 1.09 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002771/0.7999, allocations: 63.92 kB / 1.09 GB, free: 4.043 MB / 0.8419 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 (0): * Single equations (assignments): 0 * 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.0004363/0.8003, allocations: 0.879 MB / 1.091 GB, free: 3.137 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 4.673e-05/0.8004, allocations: 11.94 kB / 1.091 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.8004, allocations: 0 / 1.091 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.172e-06/0.8004, allocations: 0 / 1.091 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.8008, allocations: 0.5315 MB / 1.091 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007912/0.8016, allocations: 1.347 MB / 1.093 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001641/0.8017, allocations: 0.6809 MB / 1.093 GB, free: 464 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.415e-05/0.8018, allocations: 4 kB / 1.093 GB, free: 460 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.766e-05/0.8018, allocations: 7.438 kB / 1.093 GB, free: 452 kB / 0.8419 GB Notification: Performance of SimCode: time 3.1e-07/0.8018, allocations: 4 kB / 1.093 GB, free: 448 kB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.809/3.611, allocations: 2.01 MB / 1.095 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/3.611, allocations: 208.6 kB / 1.096 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.706/6.317, allocations: 0 / 1.096 GB, free: 14.3 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches