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: 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.001253/0.001253, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001841/0.001841, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 223.2 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.957/2.957, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005363/0.0005364, allocations: 8.531 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4059/0.4065, allocations: 159.6 MB / 1.058 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004686/0.4112, allocations: 3.57 MB / 1.061 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001875/0.4114, allocations: 143.7 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.655e-05/0.4115, allocations: 0 / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.117e-05/0.4116, allocations: 7.938 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.349e-05/0.4117, allocations: 11.92 kB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003039/0.412, allocations: 55.84 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.893e-05/0.4121, allocations: 47.83 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.448e-05/0.4121, allocations: 4 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.357e-05/0.4122, allocations: 19.91 kB / 1.062 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.087e-05/0.4123, allocations: 7.984 kB / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.4123, allocations: 11.94 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.4125, allocations: 31.84 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.905e-05/0.4125, allocations: 8 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.798e-05/0.4126, allocations: 29.69 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.625e-05/0.4127, allocations: 23.98 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.4127, allocations: 0 / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4127, allocations: 3.938 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.4127, allocations: 0 / 1.062 GB, free: 1.309 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.0003687/0.4131, allocations: 331.7 kB / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.4131, allocations: 16.02 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.574e-05/0.4132, allocations: 0 / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.4133, allocations: 163 kB / 1.062 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.044e-05/0.4134, allocations: 33.69 kB / 1.062 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.4134, allocations: 0 / 1.062 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.4135, allocations: 45.62 kB / 1.062 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.4135, allocations: 0 / 1.062 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.4136, allocations: 0 / 1.062 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.4136, allocations: 8 kB / 1.062 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.538e-05/0.4136, allocations: 11.98 kB / 1.062 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004781/0.4141, allocations: 337.9 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.003e-05/0.4142, allocations: 14.58 kB / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.486e-05/0.4142, allocations: 4.922 kB / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.4143, allocations: 97.03 kB / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.4143, allocations: 34.56 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.113e-06/0.4143, allocations: 0 / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001641/0.4145, allocations: 33.7 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.4146, allocations: 51.41 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.85e-05/0.4147, allocations: 105.8 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.4147, allocations: 25.7 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.883e-05/0.4147, allocations: 91.98 kB / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.94e-06/0.4148, allocations: 0 / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.4148, allocations: 8.125 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4149, allocations: 318.8 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.586e-05/0.4149, allocations: 4 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.267e-05/0.4149, allocations: 17.66 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.276e-05/0.415, allocations: 8 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.415, allocations: 0 / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.926e-05/0.4151, allocations: 49.72 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.4151, allocations: 4 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.4151, allocations: 7.938 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.4151, allocations: 3.938 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.878e-05/0.4152, allocations: 7.984 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.4152, allocations: 7.938 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.995e-05/0.4152, allocations: 3.906 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.4152, allocations: 4 kB / 1.064 GB, free: 15.23 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.64e-05/0.4153, allocations: 113.8 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.832e-05/0.4153, allocations: 8.031 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.4155, allocations: 124.9 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.659e-05/0.4155, allocations: 180.2 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.758e-05/0.4156, allocations: 176.3 kB / 1.064 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.323e-05/0.4157, allocations: 180.2 kB / 1.064 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.4159, allocations: 413.2 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.447e-05/0.416, allocations: 101 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.533e-05/0.416, allocations: 112.9 kB / 1.065 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.549e-05/0.4161, allocations: 176.3 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.511e-05/0.4162, allocations: 180.2 kB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-05/0.4163, allocations: 180.3 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.807e-05/0.4163, allocations: 188.2 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001463/0.4165, allocations: 303.8 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.764e-05/0.4166, allocations: 186 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.473e-05/0.4167, allocations: 180.2 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.4168, allocations: 112.9 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.564e-05/0.4169, allocations: 184.3 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.417, allocations: 101 kB / 1.067 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.766e-05/0.417, allocations: 87.27 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.417, allocations: 0 / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002443/0.4173, allocations: 12 kB / 1.067 GB, free: 11.78 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001919/0.4175, allocations: 198.4 kB / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.832e-05/0.4175, allocations: 12 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4176, allocations: 0 / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.504e-06/0.4176, allocations: 0 / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004553/0.418, allocations: 0.5289 MB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000281/0.4183, allocations: 195.8 kB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.4186, allocations: 0.677 MB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.615e-05/0.4187, allocations: 4 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.581e-05/0.4187, allocations: 15.42 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.4187, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of Templates: time 0.002927/0.4216, allocations: 0.5505 MB / 1.069 GB, free: 9.543 MB / 0.8262 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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches