Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_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.001041/0.001041, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001023/0.001023, allocations: 194.3 kB / 16.14 MB, free: 6.711 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.239/1.239, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.489/2.489, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.001351, allocations: 59.2 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2524, allocations: 157.4 MB / 1.052 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.124/0.3764, allocations: 133.3 MB / 1.182 GB, free: 2.441 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001675/0.3767, allocations: 55.84 kB / 1.182 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.535e-05/0.3767, allocations: 4 kB / 1.182 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.3768, allocations: 0 / 1.182 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.484e-05/0.3769, allocations: 15.91 kB / 1.182 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007369/0.3777, allocations: 215.1 kB / 1.183 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.639e-05/0.3778, allocations: 59.81 kB / 1.183 GB, free: 2.098 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.579e-05/0.3778, allocations: 4 kB / 1.183 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.441e-05/0.3778, allocations: 11.98 kB / 1.183 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.292e-05/0.3779, allocations: 23.73 kB / 1.183 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.3779, allocations: 4 kB / 1.183 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004651/0.3784, allocations: 239.4 kB / 1.183 GB, free: 1.824 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.157e-05/0.3785, allocations: 8 kB / 1.183 GB, free: 1.816 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.3785, allocations: 11.92 kB / 1.183 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000347/0.3789, allocations: 191.9 kB / 1.183 GB, free: 1.617 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3789, allocations: 0 / 1.183 GB, free: 1.617 MB / 0.9356 GB Notification: Performance of FrontEnd: time 8.32e-07/0.3789, allocations: 0 / 1.183 GB, free: 1.617 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.3789, allocations: 0 / 1.183 GB, free: 1.617 MB / 0.9356 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.0003873/0.3793, allocations: 355.5 kB / 1.184 GB, free: 1.223 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.3793, allocations: 15.97 kB / 1.184 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.763e-05/0.3794, allocations: 42.75 kB / 1.184 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.3794, allocations: 0.9375 kB / 1.184 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.3795, allocations: 172.2 kB / 1.184 GB, free: 0.9492 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.638e-05/0.3796, allocations: 34.02 kB / 1.184 GB, free: 0.9102 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-06/0.3796, allocations: 0 / 1.184 GB, free: 0.9102 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.3798, allocations: 37.69 kB / 1.184 GB, free: 0.8672 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.3798, allocations: 0 / 1.184 GB, free: 0.8672 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.3798, allocations: 4 kB / 1.184 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.3798, allocations: 11.98 kB / 1.184 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.054e-05/0.3799, allocations: 11.98 kB / 1.184 GB, free: 0.8398 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007013/0.3806, allocations: 0.5949 MB / 1.184 GB, free: 124 kB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 3.705e-05/0.3806, allocations: 26.52 kB / 1.184 GB, free: 88 kB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.397e-05/0.3807, allocations: 4.859 kB / 1.184 GB, free: 80 kB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002075/0.3809, allocations: 344.5 kB / 1.185 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.3809, allocations: 30.56 kB / 1.185 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3809, allocations: 0 / 1.185 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001362/0.381, allocations: 41.62 kB / 1.185 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/0.3811, allocations: 55.41 kB / 1.185 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.749e-05/0.3812, allocations: 97.84 kB / 1.185 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.3812, allocations: 25.7 kB / 1.185 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.17e-05/0.3812, allocations: 92.17 kB / 1.185 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.779e-06/0.3812, allocations: 4 kB / 1.185 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.821e-05/0.3813, allocations: 13.72 kB / 1.185 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3814, allocations: 318.8 kB / 1.185 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.591e-05/0.3814, allocations: 7.984 kB / 1.185 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.176e-05/0.3815, allocations: 13.72 kB / 1.185 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.424e-05/0.3815, allocations: 21.72 kB / 1.185 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3815, allocations: 3.938 kB / 1.185 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.564e-05/0.3816, allocations: 61.47 kB / 1.186 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.3816, allocations: 4 kB / 1.186 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3816, allocations: 0 / 1.186 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.3816, allocations: 0 / 1.186 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.354e-05/0.3817, allocations: 7.984 kB / 1.186 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.3817, allocations: 4 kB / 1.186 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.968e-05/0.3817, allocations: 7.875 kB / 1.186 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.3817, allocations: 0 / 1.186 GB, free: 14.79 MB / 0.9512 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 6.397e-05/0.3818, allocations: 113.9 kB / 1.186 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.3818, allocations: 0 / 1.186 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.658e-05/0.3819, allocations: 121 kB / 1.186 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.926e-05/0.382, allocations: 180.2 kB / 1.186 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.424e-05/0.3821, allocations: 180.3 kB / 1.186 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.119e-05/0.3821, allocations: 184.2 kB / 1.186 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002553/0.3824, allocations: 409.2 kB / 1.187 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-05/0.3824, allocations: 101 kB / 1.187 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.75e-05/0.3825, allocations: 108.9 kB / 1.187 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.102e-05/0.3825, allocations: 176.3 kB / 1.187 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-05/0.3826, allocations: 188.3 kB / 1.187 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.256e-05/0.3827, allocations: 188.2 kB / 1.187 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-05/0.3827, allocations: 176.3 kB / 1.188 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.3828, allocations: 311.7 kB / 1.188 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.428e-05/0.3829, allocations: 182 kB / 1.188 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.02e-05/0.383, allocations: 188.5 kB / 1.188 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3831, allocations: 105 kB / 1.188 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/0.3832, allocations: 184.2 kB / 1.188 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.3832, allocations: 108.9 kB / 1.189 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.647e-05/0.3833, allocations: 87.27 kB / 1.189 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3833, allocations: 0 / 1.189 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000297/0.3836, allocations: 59.94 kB / 1.189 GB, free: 11.29 MB / 0.9512 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.0005358/0.3841, allocations: 0.8869 MB / 1.19 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 6.153e-05/0.3842, allocations: 7.984 kB / 1.19 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3842, allocations: 0 / 1.19 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.422e-06/0.3842, allocations: 0 / 1.19 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.3846, allocations: 0.5341 MB / 1.19 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009875/0.3856, allocations: 1.334 MB / 1.191 GB, free: 8.41 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.3858, allocations: 0.677 MB / 1.192 GB, free: 7.707 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.357e-05/0.3859, allocations: 15.92 kB / 1.192 GB, free: 7.691 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.208e-05/0.3859, allocations: 11.44 kB / 1.192 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of SimCode: time 3.31e-07/0.3859, allocations: 0 / 1.192 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.061/1.447, allocations: 2.064 MB / 1.194 GB, free: 5.734 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/1.448, allocations: 222.5 kB / 1.194 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.897/4.345, allocations: 8 kB / 1.194 GB, free: 5.465 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches