Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_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.001441/0.001441, allocations: 107.6 kB / 16.41 MB, free: 6.465 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.001739/0.001739, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.397/2.397, allocations: 437 MB / 0.7112 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 64.11 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8767/0.878, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005922/0.884, allocations: 4.032 MB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.0002295/0.8843, allocations: 155.5 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.836e-05/0.8843, allocations: 0 / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.8844, allocations: 7.938 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 8.419e-05/0.8845, allocations: 19.91 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.8849, allocations: 72.88 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 9.842e-05/0.885, allocations: 35.86 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.865e-05/0.8851, allocations: 0 / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 5.949e-05/0.8852, allocations: 19.91 kB / 1.172 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 7.987e-05/0.8853, allocations: 15.98 kB / 1.172 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.8853, allocations: 4 kB / 1.172 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.8855, allocations: 55.81 kB / 1.172 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 4.877e-05/0.8855, allocations: 7.984 kB / 1.172 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 2.907e-05/0.8856, allocations: 7.938 kB / 1.172 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.8857, allocations: 40.94 kB / 1.172 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.8857, allocations: 3.938 kB / 1.172 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.383e-06/0.8858, allocations: 3.938 kB / 1.172 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.8858, allocations: 0 / 1.172 GB, free: 15.34 MB / 0.9044 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.0004493/0.8862, allocations: 339 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.8863, allocations: 16.61 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/0.8863, allocations: 0.9375 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.8864, allocations: 168.3 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.945e-05/0.8865, allocations: 26.27 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.8865, allocations: 4.359 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001218/0.8866, allocations: 49.62 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.8867, allocations: 0 / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.8867, allocations: 0 / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.8867, allocations: 0 / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.697e-05/0.8868, allocations: 19.92 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000427/0.8872, allocations: 338 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 3.814e-05/0.8872, allocations: 18.58 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.594e-05/0.8873, allocations: 12.86 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 8.755e-05/0.8874, allocations: 89.14 kB / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.8874, allocations: 38.56 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.8874, allocations: 0 / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001505/0.8876, allocations: 33.64 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.8876, allocations: 51.41 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.915e-05/0.8877, allocations: 105.8 kB / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.8877, allocations: 25.7 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.853e-05/0.8878, allocations: 84.09 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.732e-06/0.8878, allocations: 4 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.842e-05/0.8878, allocations: 25.78 kB / 1.173 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.8879, allocations: 318.8 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.564e-05/0.888, allocations: 4 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.227e-05/0.888, allocations: 17.7 kB / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.872e-05/0.888, allocations: 25.66 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.8881, allocations: 0 / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.897e-05/0.8881, allocations: 45.69 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.8882, allocations: 4 kB / 1.173 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.8882, allocations: 7.938 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.8882, allocations: 0 / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.796e-05/0.8882, allocations: 7.938 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.8883, allocations: 0 / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.305e-05/0.8883, allocations: 8 kB / 1.173 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.8883, allocations: 0 / 1.173 GB, free: 13.22 MB / 0.9044 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.266e-05/0.8884, allocations: 117.8 kB / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.8884, allocations: 7.984 kB / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.8885, allocations: 117 kB / 1.174 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001443/0.8887, allocations: 180.2 kB / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.818e-05/0.8888, allocations: 176.3 kB / 1.174 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-05/0.8888, allocations: 184.2 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002719/0.8891, allocations: 413.2 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.659e-05/0.8892, allocations: 101 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.28e-05/0.8892, allocations: 120.9 kB / 1.175 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001333/0.8894, allocations: 176.3 kB / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.539e-05/0.8894, allocations: 180.2 kB / 1.175 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.391e-05/0.8895, allocations: 184.2 kB / 1.175 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.414e-05/0.8896, allocations: 188.2 kB / 1.175 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001385/0.8897, allocations: 303.7 kB / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.645e-05/0.8898, allocations: 182.3 kB / 1.176 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.823e-05/0.8899, allocations: 184.2 kB / 1.176 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.8901, allocations: 109 kB / 1.176 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.308e-05/0.8901, allocations: 180.2 kB / 1.176 GB, free: 9.969 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.353e-05/0.8902, allocations: 113 kB / 1.177 GB, free: 9.852 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.725e-05/0.8902, allocations: 83.28 kB / 1.177 GB, free: 9.77 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8903, allocations: 0 / 1.177 GB, free: 9.77 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002924/0.8906, allocations: 12 kB / 1.177 GB, free: 9.758 MB / 0.9044 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.0002813/0.8908, allocations: 202.4 kB / 1.177 GB, free: 9.551 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 6.742e-05/0.8909, allocations: 11.94 kB / 1.177 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.8909, allocations: 0 / 1.177 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.232e-06/0.8909, allocations: 0 / 1.177 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.8914, allocations: 471.7 kB / 1.177 GB, free: 9.074 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002819/0.8917, allocations: 211.5 kB / 1.177 GB, free: 8.836 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.892, allocations: 0.6729 MB / 1.178 GB, free: 8.137 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.334e-05/0.892, allocations: 11.44 kB / 1.178 GB, free: 8.125 MB / 0.9044 GB Notification: Performance of SimCode: time 3.3e-07/0.892, allocations: 0 / 1.178 GB, free: 8.125 MB / 0.9044 GB Notification: Performance of Templates: time 0.002177/0.8942, allocations: 0.7484 MB / 1.179 GB, free: 7.379 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches