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.007213/0.007213, allocations: 101 kB / 15.87 MB, free: 5.867 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.001807/0.001807, allocations: 191.5 kB / 16.79 MB, free: 5.809 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.337/1.337, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.609/2.609, allocations: 461.8 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.92 kB / 0.899 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2839, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006207/0.2902, allocations: 4.048 MB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000222/0.2904, allocations: 163.5 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.384e-05/0.2904, allocations: 0 / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.2906, allocations: 7.938 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.762e-05/0.2907, allocations: 19.91 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000377/0.2911, allocations: 67.77 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000109/0.2912, allocations: 63.8 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.743e-05/0.2912, allocations: 8 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.229e-05/0.2913, allocations: 8 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.067e-05/0.2914, allocations: 23.91 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.2914, allocations: 3.938 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.2917, allocations: 79.78 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.848e-05/0.2917, allocations: 0 / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.2918, allocations: 11.92 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.2919, allocations: 31.97 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2919, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2919, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.2919, allocations: 0 / 1.057 GB, free: 3.746 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.0004492/0.2924, allocations: 335.8 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.2924, allocations: 15.97 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.156e-05/0.2925, allocations: 0.9375 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.2926, allocations: 168.3 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.479e-05/0.2927, allocations: 30.27 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.2927, allocations: 384 / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.2928, allocations: 49.56 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2928, allocations: 4 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2929, allocations: 4 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.2929, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.683e-05/0.2929, allocations: 15.92 kB / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004624/0.2934, allocations: 338 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.165e-05/0.2935, allocations: 18.56 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.817e-05/0.2935, allocations: 8.922 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.254e-05/0.2936, allocations: 89.11 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.2936, allocations: 34.55 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.312e-06/0.2936, allocations: 0 / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001664/0.2938, allocations: 37.64 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.2939, allocations: 51.41 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.902e-05/0.2939, allocations: 105.8 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.294, allocations: 25.7 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.294, allocations: 92.11 kB / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.18e-06/0.294, allocations: 0 / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.2941, allocations: 17.72 kB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.2942, allocations: 318.8 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.737e-05/0.2942, allocations: 4 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.42e-05/0.2942, allocations: 21.66 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.866e-05/0.2943, allocations: 29.64 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2943, allocations: 0 / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.022e-05/0.2944, allocations: 49.55 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2944, allocations: 4 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.2944, allocations: 0 / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.2944, allocations: 4 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.988e-05/0.2945, allocations: 11.98 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2945, allocations: 0 / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.955e-05/0.2945, allocations: 0 / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.2945, allocations: 8.062 kB / 1.059 GB, free: 1.617 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 8.392e-05/0.2946, allocations: 113.8 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.2947, allocations: 4 kB / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.2948, allocations: 116.9 kB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.355e-05/0.2949, allocations: 184.3 kB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.859e-05/0.2949, allocations: 180.3 kB / 1.06 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.501e-05/0.295, allocations: 180.2 kB / 1.06 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.2952, allocations: 409.2 kB / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.661e-05/0.2953, allocations: 108.9 kB / 1.06 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.104e-05/0.2953, allocations: 101 kB / 1.06 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.191e-05/0.2954, allocations: 180.3 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.659e-05/0.2955, allocations: 184.2 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-05/0.2955, allocations: 180.2 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.956e-05/0.2956, allocations: 180.2 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.2957, allocations: 315.8 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.826e-05/0.2958, allocations: 189.9 kB / 1.061 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.305e-05/0.2959, allocations: 176.3 kB / 1.062 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.2961, allocations: 116.9 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.2961, allocations: 176.3 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.2962, allocations: 101 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.023e-05/0.2962, allocations: 91.2 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2962, allocations: 0 / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002647/0.2965, allocations: 24 kB / 1.062 GB, free: 14.16 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.0002917/0.2968, allocations: 198.4 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.225e-05/0.2969, allocations: 11.94 kB / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2969, allocations: 0 / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.823e-06/0.2969, allocations: 0 / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.2973, allocations: 0.5295 MB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003062/0.2976, allocations: 197.4 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.2979, allocations: 0.677 MB / 1.064 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.494e-05/0.298, allocations: 15.44 kB / 1.064 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.298, allocations: 0 / 1.064 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of Templates: time 0.002264/0.3002, allocations: 0.7372 MB / 1.064 GB, free: 11.73 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