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.009121/0.009121, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001737/0.001737, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.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.706/2.706, allocations: 437 MB / 0.7105 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.001389, allocations: 71.89 kB / 1.019 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2926, allocations: 151.6 MB / 1.167 GB, free: 6.914 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004829/0.2975, allocations: 4.028 MB / 1.171 GB, free: 2.859 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001842/0.2977, allocations: 151.5 kB / 1.171 GB, free: 2.711 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.059e-05/0.2977, allocations: 0 / 1.171 GB, free: 2.711 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.03e-05/0.2978, allocations: 0 / 1.171 GB, free: 2.711 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.009e-05/0.2979, allocations: 19.91 kB / 1.171 GB, free: 2.691 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003122/0.2982, allocations: 83.69 kB / 1.171 GB, free: 2.609 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.821e-05/0.2983, allocations: 27.92 kB / 1.171 GB, free: 2.582 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.694e-05/0.2984, allocations: 0 / 1.171 GB, free: 2.582 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.794e-05/0.2984, allocations: 27.84 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.552e-05/0.2985, allocations: 8 kB / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.229e-05/0.2985, allocations: 4 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.2987, allocations: 55.8 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.077e-05/0.2987, allocations: 11.98 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.262e-05/0.2988, allocations: 15.88 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.2989, allocations: 43.89 kB / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2989, allocations: 0 / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2989, allocations: 0 / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.2989, allocations: 0 / 1.171 GB, free: 2.418 MB / 0.92 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.0003549/0.2993, allocations: 335.4 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.2993, allocations: 8.031 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.2994, allocations: 4.938 kB / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.959e-05/0.2995, allocations: 160.4 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.859e-05/0.2995, allocations: 34.25 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.2996, allocations: 8.312 kB / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.2997, allocations: 45.62 kB / 1.172 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-06/0.2997, allocations: 0 / 1.172 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.2997, allocations: 0 / 1.172 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.2997, allocations: 0 / 1.172 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.081e-05/0.2998, allocations: 15.98 kB / 1.172 GB, free: 1.723 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003948/0.3002, allocations: 338 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 3.654e-05/0.3002, allocations: 26.52 kB / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.27e-05/0.3002, allocations: 4.859 kB / 1.172 GB, free: 1.281 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 7.861e-05/0.3003, allocations: 85.17 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.3003, allocations: 30.56 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3004, allocations: 0 / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.000136/0.3005, allocations: 33.78 kB / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.3005, allocations: 59.44 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.192e-05/0.3006, allocations: 105.8 kB / 1.172 GB, free: 0.918 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.3006, allocations: 25.7 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.3007, allocations: 100 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.398e-06/0.3007, allocations: 0 / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-05/0.3007, allocations: 17.67 kB / 1.172 GB, free: 0.7617 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.665e-05/0.3008, allocations: 318.8 kB / 1.173 GB, free: 452 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.785e-05/0.3009, allocations: 11.98 kB / 1.173 GB, free: 440 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.976e-05/0.3009, allocations: 13.72 kB / 1.173 GB, free: 420 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.045e-05/0.3009, allocations: 17.72 kB / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3009, allocations: 0 / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.363e-05/0.301, allocations: 49.91 kB / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.301, allocations: 8 kB / 1.173 GB, free: 332 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.301, allocations: 4.062 kB / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3011, allocations: 0 / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.254e-05/0.3011, allocations: 7.984 kB / 1.173 GB, free: 320 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.3011, allocations: 7.938 kB / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.3011, allocations: 0 / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.3012, allocations: 3.984 kB / 1.173 GB, free: 308 kB / 0.92 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.526e-05/0.3012, allocations: 121.7 kB / 1.173 GB, free: 176 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.3013, allocations: 0 / 1.173 GB, free: 176 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.3014, allocations: 125 kB / 1.173 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.051e-05/0.3015, allocations: 176.3 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.608e-05/0.3015, allocations: 180.2 kB / 1.173 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.035e-05/0.3016, allocations: 184.3 kB / 1.174 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.3018, allocations: 409.1 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.693e-05/0.3018, allocations: 113 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.029e-05/0.3019, allocations: 105 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.668e-05/0.3019, allocations: 180.2 kB / 1.174 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.984e-05/0.302, allocations: 176.3 kB / 1.174 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.291e-05/0.3021, allocations: 188.2 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.904e-05/0.3021, allocations: 176.3 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001296/0.3022, allocations: 315.6 kB / 1.175 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.945e-05/0.3023, allocations: 182.1 kB / 1.175 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.24e-05/0.3024, allocations: 184.2 kB / 1.175 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.3025, allocations: 105 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.3026, allocations: 188.2 kB / 1.176 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.3027, allocations: 101 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.217e-05/0.3027, allocations: 87.27 kB / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3027, allocations: 0 / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002346/0.303, allocations: 15.94 kB / 1.176 GB, free: 12.84 MB / 0.9356 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.0002255/0.3032, allocations: 202.4 kB / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 6.418e-05/0.3033, allocations: 11.94 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3033, allocations: 0 / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.126e-06/0.3033, allocations: 4 kB / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.3036, allocations: 455.7 kB / 1.177 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002307/0.3039, allocations: 190.1 kB / 1.177 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.3041, allocations: 0.6768 MB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.447e-05/0.3042, allocations: 4 kB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.448e-05/0.3042, allocations: 11.38 kB / 1.177 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.3042, allocations: 0 / 1.177 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of Templates: time 0.002547/0.3067, allocations: 0.6429 MB / 1.178 GB, free: 10.6 MB / 0.9356 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches