Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",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.001271/0.001271, 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.001299/0.001299, allocations: 192.5 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.251/1.251, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.41/2.41, allocations: 461.9 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 66.53 kB / 0.8985 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2354, allocations: 157.4 MB / 1.052 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004455/0.2399, allocations: 4.052 MB / 1.056 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000174/0.2401, allocations: 159.5 kB / 1.056 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.375e-05/0.2401, allocations: 0 / 1.056 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.592e-05/0.2402, allocations: 0 / 1.056 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.94e-05/0.2402, allocations: 15.91 kB / 1.056 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002623/0.2405, allocations: 90.69 kB / 1.056 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.737e-05/0.2406, allocations: 51.88 kB / 1.056 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.19e-05/0.2406, allocations: 4 kB / 1.056 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.431e-05/0.2407, allocations: 19.92 kB / 1.056 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.194e-05/0.2407, allocations: 15.92 kB / 1.056 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.2407, allocations: 0 / 1.056 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001801/0.2409, allocations: 75.78 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.197e-05/0.241, allocations: 0 / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.864e-05/0.241, allocations: 23.91 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.2411, allocations: 40.25 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.2411, allocations: 0 / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.41e-07/0.2411, allocations: 0 / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.076e-06/0.2411, allocations: 0 / 1.057 GB, free: 3.652 MB / 0.8106 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.0002996/0.2414, allocations: 341.2 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.2415, allocations: 11.97 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.103e-05/0.2415, allocations: 38.75 kB / 1.057 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.571e-05/0.2415, allocations: 0.9375 kB / 1.057 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.337e-05/0.2416, allocations: 172.2 kB / 1.057 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.828e-05/0.2417, allocations: 34.27 kB / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-06/0.2417, allocations: 4.125 kB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.2418, allocations: 41.69 kB / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.2418, allocations: 0 / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.2418, allocations: 3.938 kB / 1.057 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.2419, allocations: 4 kB / 1.057 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.542e-05/0.2419, allocations: 11.98 kB / 1.057 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003383/0.2422, allocations: 342 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 2.815e-05/0.2423, allocations: 18.52 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.059e-05/0.2423, allocations: 8.922 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.916e-05/0.2424, allocations: 89.09 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.2424, allocations: 30.56 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.2424, allocations: 0 / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001092/0.2425, allocations: 41.64 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.2426, allocations: 55.34 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.954e-05/0.2426, allocations: 101.8 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.2426, allocations: 29.7 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.972e-05/0.2427, allocations: 87.98 kB / 1.058 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.787e-06/0.2427, allocations: 0 / 1.058 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.2427, allocations: 21.62 kB / 1.058 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.378e-05/0.2428, allocations: 318.8 kB / 1.058 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.275e-05/0.2428, allocations: 8.125 kB / 1.058 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.001e-05/0.2429, allocations: 17.72 kB / 1.058 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.655e-05/0.2429, allocations: 17.7 kB / 1.058 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.2429, allocations: 4 kB / 1.058 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.284e-05/0.243, allocations: 45.64 kB / 1.058 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.243, allocations: 4 kB / 1.058 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.243, allocations: 8.047 kB / 1.058 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.334e-06/0.243, allocations: 0 / 1.058 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.402e-05/0.2431, allocations: 8 kB / 1.058 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2431, allocations: 3.984 kB / 1.058 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.503e-05/0.2431, allocations: 288 / 1.058 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.2431, allocations: 4 kB / 1.058 GB, free: 1.48 MB / 0.8106 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.577e-05/0.2432, allocations: 117.7 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.2432, allocations: 0 / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.92e-05/0.2433, allocations: 124.9 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.521e-05/0.2433, allocations: 184.2 kB / 1.059 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.922e-05/0.2434, allocations: 180.3 kB / 1.059 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.844e-05/0.2434, allocations: 176.3 kB / 1.059 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.2436, allocations: 413.1 kB / 1.06 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-05/0.2437, allocations: 112.9 kB / 1.06 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.154e-05/0.2437, allocations: 104.9 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.701e-05/0.2438, allocations: 176.3 kB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.389e-05/0.2438, allocations: 180.3 kB / 1.06 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-05/0.2439, allocations: 180.2 kB / 1.06 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.776e-05/0.2439, allocations: 176.3 kB / 1.06 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001073/0.244, allocations: 323.6 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.685e-05/0.2441, allocations: 182.1 kB / 1.061 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.268e-05/0.2441, allocations: 184.2 kB / 1.061 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.2443, allocations: 109 kB / 1.061 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.532e-05/0.2443, allocations: 184.2 kB / 1.061 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.781e-05/0.2444, allocations: 105 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.626e-05/0.2444, allocations: 83.27 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2444, allocations: 4 kB / 1.062 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002103/0.2447, allocations: 15.94 kB / 1.062 GB, free: 14.02 MB / 0.8262 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.0003902/0.2451, allocations: 0.8401 MB / 1.062 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 5.057e-05/0.2451, allocations: 7.984 kB / 1.062 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2451, allocations: 0 / 1.062 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.2451, allocations: 4 kB / 1.062 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.2455, allocations: 0.5287 MB / 1.063 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007903/0.2463, allocations: 1.318 MB / 1.064 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.2465, allocations: 0.677 MB / 1.065 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.628e-05/0.2465, allocations: 8 kB / 1.065 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.667e-05/0.2465, allocations: 7.438 kB / 1.065 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2465, allocations: 0 / 1.065 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.431/1.677, allocations: 1.358 MB / 1.066 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003201/1.677, allocations: 221.9 kB / 1.066 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.379/4.057, allocations: 3.938 kB / 1.066 GB, free: 8.973 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches