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 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.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.0007864/0.0007867, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008741/0.0008741, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.997/2.997, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004235/0.0004237, allocations: 9.781 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3788, allocations: 159.6 MB / 1.058 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset): time 0.002019/0.3808, allocations: 1.502 MB / 1.059 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002792/0.3811, allocations: 119.6 kB / 1.06 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.987e-05/0.3812, allocations: 0 / 1.06 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.3814, allocations: 7.922 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.3815, allocations: 47.56 kB / 1.06 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001234/0.3816, allocations: 35.89 kB / 1.06 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000205/0.3818, allocations: 151.2 kB / 1.06 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.3819, allocations: 17.11 kB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.627e-05/0.382, allocations: 51.83 kB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.3821, allocations: 59.7 kB / 1.06 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.3822, allocations: 4 kB / 1.06 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.112e-05/0.3822, allocations: 8 kB / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.422e-05/0.3822, allocations: 19.92 kB / 1.06 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.871e-05/0.3823, allocations: 45.64 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.3824, allocations: 84.06 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.3824, allocations: 0 / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3824, allocations: 0 / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.3824, allocations: 0 / 1.06 GB, free: 3.203 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007538/0.3832, allocations: 446.8 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.3832, allocations: 8.031 kB / 1.061 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.665e-05/0.3833, allocations: 15.81 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/0.3835, allocations: 194.9 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.3836, allocations: 8 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.3836, allocations: 11.94 kB / 1.061 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.3839, allocations: 131.3 kB / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3839, allocations: 0 / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.384, allocations: 7.938 kB / 1.061 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.384, allocations: 4 kB / 1.061 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.3843, allocations: 115.9 kB / 1.061 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007177/0.385, allocations: 468.6 kB / 1.061 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.3854, allocations: 141.2 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.3856, allocations: 65.77 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.3856, allocations: 4 kB / 1.062 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.3856, allocations: 38.56 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.3856, allocations: 0 / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0005823/0.3862, allocations: 201.5 kB / 1.062 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.3863, allocations: 77.11 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.3865, allocations: 175.8 kB / 1.062 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.3865, allocations: 25.7 kB / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.122e-05/0.3866, allocations: 120.2 kB / 1.062 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.3866, allocations: 27.56 kB / 1.062 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.3866, allocations: 4 kB / 1.062 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3868, allocations: 330.8 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.3869, allocations: 47.97 kB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.3871, allocations: 69.67 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.3872, allocations: 47.98 kB / 1.063 GB, free: 232 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3872, allocations: 0 / 1.063 GB, free: 232 kB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003422/0.3876, allocations: 165.4 kB / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.3876, allocations: 7.984 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3876, allocations: 0 / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3876, allocations: 0 / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.3878, allocations: 27.98 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3878, allocations: 0 / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.3879, allocations: 15.98 kB / 1.063 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.388, allocations: 4 kB / 1.063 GB, free: 4 kB / 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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001423/0.3881, allocations: 127.3 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.746e-05/0.3882, allocations: 15.81 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004103/0.3886, allocations: 174.9 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3886, allocations: 0 / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3886, allocations: 0 / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3886, allocations: 64 / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.3889, allocations: 225.7 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.3889, allocations: 4 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.3891, allocations: 27.92 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.3891, allocations: 0 / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.3891, allocations: 4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3891, allocations: 3.984 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3891, allocations: 0 / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004384/0.3896, allocations: 334.7 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.748e-05/0.3896, allocations: 92.94 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/0.3897, allocations: 4 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.3898, allocations: 15.98 kB / 1.064 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.3899, allocations: 7.984 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.3899, allocations: 4 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000109/0.39, allocations: 128.2 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.39, allocations: 3.938 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002895/0.3903, allocations: 32 kB / 1.064 GB, free: 14.73 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001154/0.3904, allocations: 103.2 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003517/0.3908, allocations: 115.9 kB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3908, allocations: 0 / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.391, allocations: 63.97 kB / 1.064 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004882/0.3915, allocations: 43.95 kB / 1.064 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000502/0.392, allocations: 256 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.3923, allocations: 0.7087 MB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.503e-05/0.3923, allocations: 12.66 kB / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.3924, allocations: 15.44 kB / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3924, allocations: 0 / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of Templates: time 0.004862/0.3973, allocations: 1.84 MB / 1.067 GB, free: 11.56 MB / 0.8262 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