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.001469/0.001469, allocations: 108 kB / 15.6 MB, free: 132 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.001603/0.001603, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.456/1.456, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.846/2.846, allocations: 472.7 MB / 0.7451 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 65.67 kB / 0.912 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2903, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004927/0.2953, allocations: 4.02 MB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001869/0.2955, allocations: 151.5 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.224e-05/0.2955, allocations: 0 / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.173e-05/0.2956, allocations: 11.92 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.223e-05/0.2957, allocations: 15.92 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.296, allocations: 86.94 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.544e-05/0.2961, allocations: 27.92 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.364e-05/0.2962, allocations: 7.984 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.409e-05/0.2962, allocations: 15.92 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.2963, allocations: 15.92 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.2963, allocations: 4 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.2965, allocations: 55.8 kB / 1.073 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.2965, allocations: 12 kB / 1.073 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.853e-05/0.2965, allocations: 4 kB / 1.073 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.2967, allocations: 47.89 kB / 1.073 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2967, allocations: 0 / 1.073 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2967, allocations: 0 / 1.073 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.2967, allocations: 0 / 1.073 GB, free: 5.879 MB / 0.8262 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.0003403/0.297, allocations: 335.8 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.2971, allocations: 8.031 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.2971, allocations: 8.844 kB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.2972, allocations: 164.4 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.172e-05/0.2973, allocations: 26.27 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.2973, allocations: 4.375 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.2974, allocations: 49.56 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.2974, allocations: 0 / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.2975, allocations: 0 / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.2975, allocations: 0 / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.061e-05/0.2975, allocations: 15.98 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003889/0.2979, allocations: 342 kB / 1.073 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.411e-05/0.298, allocations: 22.52 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.574e-05/0.298, allocations: 4.859 kB / 1.074 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.41e-05/0.2981, allocations: 89.16 kB / 1.074 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.2981, allocations: 30.56 kB / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.2981, allocations: 0 / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001295/0.2982, allocations: 41.64 kB / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.2983, allocations: 51.41 kB / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.827e-05/0.2984, allocations: 105.9 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.2984, allocations: 25.7 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.556e-05/0.2984, allocations: 91.98 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.402e-06/0.2984, allocations: 11.84 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.2985, allocations: 17.7 kB / 1.074 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.2986, allocations: 314.8 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.69e-05/0.2986, allocations: 12.12 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.409e-05/0.2986, allocations: 21.73 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.194e-05/0.2987, allocations: 17.72 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2987, allocations: 4 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.754e-05/0.2988, allocations: 49.62 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.2988, allocations: 4 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.2988, allocations: 4.062 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.2988, allocations: 0 / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.654e-05/0.2989, allocations: 8 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.2989, allocations: 4 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.711e-05/0.2989, allocations: 0 / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.2989, allocations: 0 / 1.074 GB, free: 3.758 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 6.782e-05/0.299, allocations: 119.8 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.299, allocations: 0 / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.2991, allocations: 128.8 kB / 1.075 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-05/0.2992, allocations: 180.3 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.548e-05/0.2992, allocations: 188.2 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.064e-05/0.2993, allocations: 176.3 kB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002089/0.2995, allocations: 413.1 kB / 1.076 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.701e-05/0.2995, allocations: 105 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.499e-05/0.2996, allocations: 101 kB / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.165e-05/0.2996, allocations: 180.2 kB / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.2997, allocations: 180.3 kB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.564e-05/0.2998, allocations: 184.2 kB / 1.076 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.563e-05/0.2998, allocations: 180.3 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001141/0.2999, allocations: 307.7 kB / 1.077 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.848e-05/0.3, allocations: 182.1 kB / 1.077 GB, free: 1.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.943e-05/0.3001, allocations: 188.2 kB / 1.077 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.3002, allocations: 101 kB / 1.077 GB, free: 0.707 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.64e-05/0.3003, allocations: 184.3 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/0.3004, allocations: 112.8 kB / 1.077 GB, free: 412 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.171e-05/0.3004, allocations: 83.28 kB / 1.078 GB, free: 328 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3004, allocations: 0 / 1.078 GB, free: 328 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002419/0.3007, allocations: 12 kB / 1.078 GB, free: 316 kB / 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.0002438/0.3009, allocations: 218.3 kB / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.017e-05/0.301, allocations: 4 kB / 1.078 GB, free: 84 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.301, allocations: 0 / 1.078 GB, free: 84 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.372e-06/0.301, allocations: 3.938 kB / 1.078 GB, free: 80 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.3014, allocations: 467.9 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002518/0.3016, allocations: 170.2 kB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.3019, allocations: 0.6768 MB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 4.297e-05/0.3019, allocations: 4 kB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.563e-05/0.3019, allocations: 7.438 kB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of SimCode: time 2.71e-07/0.3019, allocations: 0 / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of Templates: time 0.002591/0.3045, allocations: 0.642 MB / 1.08 GB, free: 14.07 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=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