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.0009761/0.0009762, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 187.7 kB / 16.92 MB, free: 6.746 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.332/1.332, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.602/2.602, allocations: 462.6 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003304, allocations: 15.97 kB / 0.9034 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2951, allocations: 159.6 MB / 1.059 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004578/0.2998, allocations: 3.693 MB / 1.063 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001915/0.3, allocations: 151.5 kB / 1.063 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.971e-05/0.3, allocations: 3.938 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.994e-05/0.3001, allocations: 7.938 kB / 1.063 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.552e-05/0.3002, allocations: 19.91 kB / 1.063 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.3005, allocations: 67.81 kB / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.768e-05/0.3006, allocations: 59.83 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.871e-05/0.3007, allocations: 7.984 kB / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.618e-05/0.3007, allocations: 8 kB / 1.063 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.707e-05/0.3008, allocations: 23.86 kB / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.055e-05/0.3008, allocations: 0 / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.301, allocations: 87.77 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.246e-05/0.3011, allocations: 0 / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.985e-05/0.3011, allocations: 37.69 kB / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.3012, allocations: 27.97 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.3013, allocations: 0 / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3013, allocations: 0 / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.3013, allocations: 0 / 1.063 GB, free: 0.75 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.0003365/0.3016, allocations: 331.8 kB / 1.064 GB, free: 388 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.3017, allocations: 11.97 kB / 1.064 GB, free: 376 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.758e-05/0.3017, allocations: 4.938 kB / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.3018, allocations: 164.4 kB / 1.064 GB, free: 168 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.347e-05/0.3019, allocations: 30.27 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.3019, allocations: 384 / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.302, allocations: 45.62 kB / 1.064 GB, free: 80 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.302, allocations: 0 / 1.064 GB, free: 80 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.3021, allocations: 3.984 kB / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.3021, allocations: 0 / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.578e-05/0.3021, allocations: 19.92 kB / 1.064 GB, free: 56 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004645/0.3026, allocations: 341.9 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.516e-05/0.3027, allocations: 18.58 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.577e-05/0.3027, allocations: 8.844 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.89e-05/0.3028, allocations: 81.17 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.3028, allocations: 30.56 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.3028, allocations: 8 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.000132/0.303, allocations: 41.62 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.303, allocations: 51.41 kB / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.471e-05/0.3031, allocations: 101.9 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.3031, allocations: 25.7 kB / 1.065 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.3032, allocations: 91.97 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.478e-06/0.3032, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.039e-05/0.3032, allocations: 17.66 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3033, allocations: 322.9 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.154e-05/0.3033, allocations: 0 / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.093e-05/0.3034, allocations: 17.7 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.581e-05/0.3034, allocations: 25.66 kB / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3034, allocations: 0 / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.749e-05/0.3035, allocations: 53.53 kB / 1.065 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.3035, allocations: 13.78 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.3035, allocations: 0 / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.919e-06/0.3036, allocations: 0 / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.404e-05/0.3036, allocations: 4 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3036, allocations: 7.938 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.791e-05/0.3036, allocations: 0 / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.3037, allocations: 0 / 1.065 GB, free: 14.64 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.305e-05/0.3037, allocations: 117.8 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.3038, allocations: 0 / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.3039, allocations: 124.9 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.076e-05/0.3039, allocations: 176.3 kB / 1.066 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.858e-05/0.304, allocations: 180.2 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.866e-05/0.3041, allocations: 184.2 kB / 1.066 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.3043, allocations: 405.2 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.35e-05/0.3043, allocations: 112.9 kB / 1.066 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.3044, allocations: 101 kB / 1.067 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-05/0.3044, allocations: 176.3 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.571e-05/0.3045, allocations: 184.2 kB / 1.067 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.125e-05/0.3046, allocations: 188.2 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.799e-05/0.3046, allocations: 184.2 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001349/0.3048, allocations: 307.8 kB / 1.068 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.295e-05/0.3048, allocations: 186 kB / 1.068 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.303e-05/0.3049, allocations: 180.3 kB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.3051, allocations: 108.9 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.48e-05/0.3051, allocations: 184.2 kB / 1.068 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.14e-05/0.3052, allocations: 101 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.106e-05/0.3052, allocations: 87.22 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3052, allocations: 0 / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002363/0.3055, allocations: 16 kB / 1.068 GB, free: 11.19 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.0002285/0.3057, allocations: 210.4 kB / 1.069 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.395e-05/0.3058, allocations: 11.98 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3058, allocations: 0 / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.503e-06/0.3058, allocations: 0 / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.3062, allocations: 0.5185 MB / 1.069 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000249/0.3065, allocations: 233.5 kB / 1.069 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.3067, allocations: 0.6731 MB / 1.07 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.259e-05/0.3067, allocations: 11.42 kB / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.3067, allocations: 0 / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of Templates: time 0.002023/0.3088, allocations: 0.7429 MB / 1.071 GB, free: 8.723 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches