Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.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.Controls.SetPoints.Examples.SupplyReturnTemperatureReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCur.TSup|heaCur.TRet|heaCur.TOut|heaCur1.TRoo_in|heaCur1.TSup|heaCur1.TRet",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset") translateModel(Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCur.TSup|heaCur.TRet|heaCur.TOut|heaCur1.TRoo_in|heaCur1.TSup|heaCur1.TRet",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008353/0.008353, allocations: 103.5 kB / 15.74 MB, free: 6.039 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.001432/0.001432, allocations: 195.8 kB / 16.67 MB, free: 5.965 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.493/1.493, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.182/3.182, allocations: 472.6 MB / 0.7453 GB, free: 4.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 64.12 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4732/0.4746, allocations: 159.9 MB / 1.226 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset): time 0.004181/0.4789, allocations: 1.822 MB / 1.227 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00051/0.4794, allocations: 123.6 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.4796, allocations: 4 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.4798, allocations: 15.8 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.48, allocations: 47.56 kB / 1.228 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.4802, allocations: 35.94 kB / 1.228 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.4806, allocations: 175.1 kB / 1.228 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.4807, allocations: 25.09 kB / 1.228 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.4809, allocations: 59.78 kB / 1.228 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001408/0.481, allocations: 63.75 kB / 1.228 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.054e-05/0.4811, allocations: 12 kB / 1.228 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.521e-05/0.4811, allocations: 8 kB / 1.228 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.334e-05/0.4812, allocations: 23.92 kB / 1.228 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.158e-05/0.4813, allocations: 67.66 kB / 1.228 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.4815, allocations: 127.4 kB / 1.228 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.4815, allocations: 0 / 1.228 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.365e-06/0.4815, allocations: 0 / 1.228 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.248e-06/0.4816, allocations: 4 kB / 1.228 GB, free: 6.629 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009224/0.4825, allocations: 446.8 kB / 1.229 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.4826, allocations: 12.03 kB / 1.229 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.963e-05/0.4826, allocations: 16.84 kB / 1.229 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.483, allocations: 220.9 kB / 1.229 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.483, allocations: 8.375 kB / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.4831, allocations: 8.375 kB / 1.229 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.4834, allocations: 119.1 kB / 1.229 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.4834, allocations: 4.172 kB / 1.229 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.4834, allocations: 7.875 kB / 1.229 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.4835, allocations: 4 kB / 1.229 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.4838, allocations: 91.94 kB / 1.229 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008689/0.4846, allocations: 480.6 kB / 1.229 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004005/0.4851, allocations: 129.2 kB / 1.23 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.4852, allocations: 61.77 kB / 1.23 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.4853, allocations: 4 kB / 1.23 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.4853, allocations: 34.56 kB / 1.23 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 3.156e-06/0.4853, allocations: 4 kB / 1.23 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0006831/0.486, allocations: 181.4 kB / 1.23 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.4861, allocations: 81.11 kB / 1.23 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.4863, allocations: 166.4 kB / 1.23 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.4863, allocations: 29.7 kB / 1.23 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.6e-05/0.4864, allocations: 112.1 kB / 1.23 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.518e-05/0.4864, allocations: 31.73 kB / 1.23 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-05/0.4865, allocations: 17.72 kB / 1.23 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.4866, allocations: 330.8 kB / 1.231 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.4868, allocations: 43.97 kB / 1.231 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.4869, allocations: 61.61 kB / 1.231 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.4872, allocations: 109.9 kB / 1.231 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4872, allocations: 0 / 1.231 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003624/0.4876, allocations: 145.5 kB / 1.231 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.4876, allocations: 4 kB / 1.231 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.4876, allocations: 0 / 1.231 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.4877, allocations: 8 kB / 1.231 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.4878, allocations: 23.97 kB / 1.231 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.4879, allocations: 3.984 kB / 1.231 GB, free: 3.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.488, allocations: 19.89 kB / 1.231 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.488, allocations: 3.938 kB / 1.231 GB, free: 3.406 MB / 0.9825 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 (10): * Single equations (assignments): 10 * 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 0.0001096/0.4881, allocations: 126.3 kB / 1.231 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.4882, allocations: 7.953 kB / 1.231 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005211/0.4887, allocations: 158.6 kB / 1.231 GB, free: 3.102 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.4887, allocations: 3.938 kB / 1.231 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.4887, allocations: 4.188 kB / 1.231 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.4887, allocations: 0 / 1.231 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000308/0.489, allocations: 229.5 kB / 1.231 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4891, allocations: 0 / 1.231 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.4892, allocations: 27.98 kB / 1.232 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.4892, allocations: 192 / 1.232 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.4892, allocations: 8 kB / 1.232 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.4892, allocations: 0 / 1.232 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4892, allocations: 0 / 1.232 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004346/0.4897, allocations: 318.5 kB / 1.232 GB, free: 2.457 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.753e-05/0.4897, allocations: 93 kB / 1.232 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.4898, allocations: 0 / 1.232 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.4899, allocations: 15.92 kB / 1.232 GB, free: 2.332 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.871e-05/0.49, allocations: 8 kB / 1.232 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.49, allocations: 7.922 kB / 1.232 GB, free: 2.316 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000112/0.4901, allocations: 128.2 kB / 1.232 GB, free: 2.191 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4902, allocations: 0 / 1.232 GB, free: 2.191 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004026/0.4906, allocations: 28 kB / 1.232 GB, free: 2.164 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (9): * Single equations (assignments): 9 * 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.0001488/0.4907, allocations: 103.2 kB / 1.232 GB, free: 2.051 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003955/0.4911, allocations: 99.94 kB / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4911, allocations: 0 / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.4913, allocations: 59.89 kB / 1.232 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004422/0.4917, allocations: 48.41 kB / 1.232 GB, free: 1.852 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000546/0.4923, allocations: 239.2 kB / 1.233 GB, free: 1.586 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.4927, allocations: 0.7084 MB / 1.233 GB, free: 0.8516 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.583e-05/0.4927, allocations: 12.64 kB / 1.233 GB, free: 0.8398 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.9e-05/0.4928, allocations: 15.44 kB / 1.233 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.4928, allocations: 0 / 1.233 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of Templates: time 0.005322/0.4981, allocations: 2.099 MB / 1.235 GB, free: 14.77 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_SupplyReturnTemperatureReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches