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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001809/0.001809, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.364/1.364, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.687/2.687, allocations: 482.4 MB / 0.7553 GB, free: 7 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 64.83 kB / 0.9245 GB, free: 24 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7025/0.7045, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005312/0.7098, allocations: 4.008 MB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002324/0.7101, allocations: 160.8 kB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.668e-05/0.7101, allocations: 4.5 kB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.053e-05/0.7102, allocations: 6.391 kB / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.803e-05/0.7103, allocations: 9.516 kB / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.7107, allocations: 77.67 kB / 1.087 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.876e-05/0.7108, allocations: 37.92 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.639e-05/0.7108, allocations: 6.469 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.602e-05/0.7109, allocations: 15.33 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.004e-05/0.7109, allocations: 12.72 kB / 1.087 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.7109, allocations: 1.125 kB / 1.087 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001964/0.7111, allocations: 57.31 kB / 1.087 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.839e-05/0.7112, allocations: 16.33 kB / 1.087 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.203e-05/0.7112, allocations: 9.516 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.7114, allocations: 33.8 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.7114, allocations: 1.5 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7114, allocations: 0 / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.7114, allocations: 0 / 1.087 GB, free: 14.52 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.0004328/0.7118, allocations: 346.2 kB / 1.088 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.7119, allocations: 11.11 kB / 1.088 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.115e-05/0.7119, allocations: 5.969 kB / 1.088 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.7121, allocations: 163 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.22e-05/0.7121, allocations: 31.58 kB / 1.088 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.7122, allocations: 1.812 kB / 1.088 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.7123, allocations: 43.33 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.7123, allocations: 1.156 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.7123, allocations: 4 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.7124, allocations: 1.438 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.784e-05/0.7124, allocations: 20.38 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004588/0.7129, allocations: 333 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.188e-05/0.7129, allocations: 21.33 kB / 1.088 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.467e-05/0.713, allocations: 6.016 kB / 1.088 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 9.838e-05/0.7131, allocations: 91.88 kB / 1.088 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.7131, allocations: 32.58 kB / 1.088 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.7131, allocations: 1.562 kB / 1.088 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.7133, allocations: 40.98 kB / 1.088 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.7133, allocations: 51.41 kB / 1.088 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.51e-05/0.7134, allocations: 103.1 kB / 1.088 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.7134, allocations: 25.7 kB / 1.089 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/0.7135, allocations: 90.42 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.657e-06/0.7135, allocations: 6.031 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.7135, allocations: 21.56 kB / 1.089 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.7137, allocations: 317 kB / 1.089 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.511e-05/0.7137, allocations: 3.297 kB / 1.089 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.699e-05/0.7137, allocations: 15.52 kB / 1.089 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.888e-05/0.7138, allocations: 28.81 kB / 1.089 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.7138, allocations: 1.156 kB / 1.089 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.444e-05/0.7139, allocations: 49.5 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.7139, allocations: 5.469 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.7139, allocations: 0.8438 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.7139, allocations: 0.75 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.221e-05/0.714, allocations: 5.469 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.714, allocations: 0.875 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.077e-05/0.714, allocations: 6.219 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.714, allocations: 6.656 kB / 1.089 GB, free: 12.57 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 8.312e-05/0.7141, allocations: 116.1 kB / 1.089 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.7141, allocations: 1.375 kB / 1.089 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.7143, allocations: 122.8 kB / 1.089 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-05/0.7143, allocations: 182.4 kB / 1.089 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.641e-05/0.7144, allocations: 178.3 kB / 1.09 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.161e-05/0.7145, allocations: 190.1 kB / 1.09 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/0.7148, allocations: 404.6 kB / 1.09 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.573e-05/0.7148, allocations: 110 kB / 1.09 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.528e-05/0.7149, allocations: 101.9 kB / 1.09 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-05/0.715, allocations: 181.4 kB / 1.091 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-05/0.7151, allocations: 190 kB / 1.091 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.418e-05/0.7151, allocations: 178.4 kB / 1.091 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.909e-05/0.7152, allocations: 182.1 kB / 1.091 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.7154, allocations: 306 kB / 1.091 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.816e-05/0.7155, allocations: 188 kB / 1.092 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.272e-05/0.7156, allocations: 179.5 kB / 1.092 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.7157, allocations: 109.6 kB / 1.092 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.255e-05/0.7158, allocations: 186.6 kB / 1.092 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-05/0.7159, allocations: 102 kB / 1.092 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.054e-05/0.716, allocations: 86.06 kB / 1.092 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.716, allocations: 1.188 kB / 1.092 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002496/0.7162, allocations: 14.84 kB / 1.092 GB, free: 9.18 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.0002831/0.7165, allocations: 203.7 kB / 1.092 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 7.276e-05/0.7166, allocations: 11.42 kB / 1.092 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.7166, allocations: 0 / 1.092 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.332e-06/0.7166, allocations: 0 / 1.092 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000409/0.717, allocations: 460.9 kB / 1.093 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002798/0.7173, allocations: 215.7 kB / 1.093 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.7176, allocations: 0.6748 MB / 1.094 GB, free: 7.637 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.24e-05/0.7176, allocations: 8.906 kB / 1.094 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.7176, allocations: 4 kB / 1.094 GB, free: 7.625 MB / 0.8419 GB Notification: Performance of Templates: time 0.002491/0.7201, allocations: 0.7515 MB / 1.094 GB, free: 7.566 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (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 & ./Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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