Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sunRiseSetArctic.nextSunRise|sunRiseSetArctic.nextSunSet|sunRiseSetArctic.sunUp|sunRiseSetSf.nextSunRise|sunRiseSetSf.nextSunSet|sunRiseSetSf.sunUp|sunRiseSetAntarctic.nextSunRise|sunRiseSetAntarctic.nextSunSet|sunRiseSetAntarctic.sunUp|sunRiseSetSyd.nextSunRise|sunRiseSetSyd.nextSunSet|sunRiseSetSyd.sunUp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sunRiseSetArctic.nextSunRise|sunRiseSetArctic.nextSunSet|sunRiseSetArctic.sunUp|sunRiseSetSf.nextSunRise|sunRiseSetSf.nextSunSet|sunRiseSetSf.sunUp|sunRiseSetAntarctic.nextSunRise|sunRiseSetAntarctic.nextSunSet|sunRiseSetAntarctic.sunUp|sunRiseSetSyd.nextSunRise|sunRiseSetSyd.nextSunSet|sunRiseSetSyd.sunUp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.419/1.419, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 175.4 kB / 326.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.125/2.125, allocations: 205.4 MB / 0.5775 GB, free: 20.28 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009453/0.0009453, allocations: 114.2 kB / 0.6822 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003321, allocations: 8.875 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2631, allocations: 106.3 MB / 0.9001 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1839/0.4471, allocations: 132.7 MB / 1.03 GB, free: 11.06 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.4474, allocations: 75.95 kB / 1.03 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03253/0.48, allocations: 10.42 MB / 1.04 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.924e-06/0.48, allocations: 0 / 1.04 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.808e-06/0.48, allocations: 7.938 kB / 1.04 GB, free: 0.5352 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001285/0.4813, allocations: 0.6341 MB / 1.041 GB, free: 15.85 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.4814, allocations: 12.03 kB / 1.041 GB, free: 15.84 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.861e-05/0.4815, allocations: 23.72 kB / 1.041 GB, free: 15.82 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.4816, allocations: 187.5 kB / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.4818, allocations: 130.8 kB / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.4819, allocations: 16 kB / 1.041 GB, free: 15.42 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000364/0.4822, allocations: 235.8 kB / 1.041 GB, free: 15.15 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.4823, allocations: 0 / 1.041 GB, free: 15.15 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.4823, allocations: 4 kB / 1.041 GB, free: 15.14 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.4823, allocations: 4 kB / 1.041 GB, free: 15.14 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.4825, allocations: 115.7 kB / 1.041 GB, free: 15.03 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004553/0.483, allocations: 399.1 kB / 1.042 GB, free: 14.55 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.4844, allocations: 495.5 kB / 1.042 GB, free: 13.96 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.965e-05/0.4844, allocations: 15.98 kB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004714/0.4849, allocations: 312.1 kB / 1.042 GB, free: 13.59 MB / 0.698 GB Notification: Performance of pre-optimization done (n=40): time 1.784e-06/0.4849, allocations: 0 / 1.042 GB, free: 13.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=40): time 0.0007828/0.4857, allocations: 410.5 kB / 1.043 GB, free: 13.18 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001857/0.4859, allocations: 358.6 kB / 1.043 GB, free: 12.75 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.4861, allocations: 153.2 kB / 1.043 GB, free: 12.59 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.882e-05/0.4861, allocations: 45.64 kB / 1.043 GB, free: 12.54 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.516e-05/0.4862, allocations: 97.12 kB / 1.043 GB, free: 12.45 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.4863, allocations: 110.5 kB / 1.044 GB, free: 12.34 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.203e-05/0.4864, allocations: 8 kB / 1.044 GB, free: 12.33 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.4865, allocations: 334.8 kB / 1.044 GB, free: 11.99 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.4868, allocations: 121 kB / 1.044 GB, free: 11.88 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002906/0.4871, allocations: 168.9 kB / 1.044 GB, free: 11.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002741/0.4874, allocations: 113.9 kB / 1.044 GB, free: 11.59 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4874, allocations: 0 / 1.044 GB, free: 11.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007295/0.4881, allocations: 373.1 kB / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.4882, allocations: 12 kB / 1.045 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.4882, allocations: 0 / 1.045 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.4882, allocations: 4.188 kB / 1.045 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.4886, allocations: 83.81 kB / 1.045 GB, free: 11.13 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.4886, allocations: 4 kB / 1.045 GB, free: 11.12 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.4889, allocations: 59.66 kB / 1.045 GB, free: 11.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/0.489, allocations: 19.98 kB / 1.045 GB, free: 11.05 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition8,$whenCondition7,$PRE.sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,$PRE.sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,$PRE.sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,$PRE.sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunRise,$PRE.sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 56 * 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.0001678/0.4891, allocations: 149.7 kB / 1.045 GB, free: 10.89 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.412e-05/0.4892, allocations: 27.7 kB / 1.045 GB, free: 10.86 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006752/0.4899, allocations: 362 kB / 1.045 GB, free: 10.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.4899, allocations: 12 kB / 1.045 GB, free: 10.49 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.4899, allocations: 4 kB / 1.045 GB, free: 10.48 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.4899, allocations: 7.922 kB / 1.045 GB, free: 10.48 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003732/0.4903, allocations: 353.1 kB / 1.046 GB, free: 10.08 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.4903, allocations: 0 / 1.046 GB, free: 10.08 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000278/0.4906, allocations: 75.84 kB / 1.046 GB, free: 10.01 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/0.4906, allocations: 7.984 kB / 1.046 GB, free: 10 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.121e-05/0.4907, allocations: 16 kB / 1.046 GB, free: 9.984 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.4907, allocations: 8 kB / 1.046 GB, free: 9.977 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4907, allocations: 0 / 1.046 GB, free: 9.977 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007173/0.4914, allocations: 0.6219 MB / 1.046 GB, free: 9.234 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.4916, allocations: 156.5 kB / 1.047 GB, free: 9.062 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.357e-05/0.4917, allocations: 16 kB / 1.047 GB, free: 9.047 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.4919, allocations: 31.97 kB / 1.047 GB, free: 9.016 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.492, allocations: 55.88 kB / 1.047 GB, free: 8.961 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.4921, allocations: 27.98 kB / 1.047 GB, free: 8.934 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.347e-05/0.4922, allocations: 127.7 kB / 1.047 GB, free: 8.809 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4922, allocations: 0 / 1.047 GB, free: 8.809 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007191/0.4929, allocations: 223.7 kB / 1.047 GB, free: 8.59 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition8,$whenCondition7,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete states: 8 (sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0005445/0.4935, allocations: 328.9 kB / 1.047 GB, free: 8.262 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005953/0.4941, allocations: 327.6 kB / 1.048 GB, free: 7.938 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4941, allocations: 0 / 1.048 GB, free: 7.938 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002715/0.4944, allocations: 180.2 kB / 1.048 GB, free: 7.762 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.4945, allocations: 20.17 kB / 1.048 GB, free: 7.738 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009296/0.4955, allocations: 0.6459 MB / 1.048 GB, free: 7.035 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.4958, allocations: 0.7652 MB / 1.049 GB, free: 6.246 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002749/0.4961, allocations: 54.94 kB / 1.049 GB, free: 6.191 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.4962, allocations: 47.34 kB / 1.049 GB, free: 6.145 MB / 0.698 GB Notification: Performance of SimCode: time 1.483e-06/0.4962, allocations: 0 / 1.049 GB, free: 6.145 MB / 0.698 GB Notification: Performance of Templates: time 0.00832/0.5045, allocations: 4.814 MB / 1.054 GB, free: 1.344 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp Variables in the result:sunRiseSetAntarctic.lat,sunRiseSetAntarctic.lon,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.staTim,sunRiseSetAntarctic.sunUp,sunRiseSetAntarctic.timDifLocCiv,sunRiseSetAntarctic.timZon,sunRiseSetArctic.lat,sunRiseSetArctic.lon,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.staTim,sunRiseSetArctic.sunUp,sunRiseSetArctic.timDifLocCiv,sunRiseSetArctic.timZon,sunRiseSetSf.lat,sunRiseSetSf.lon,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.staTim,sunRiseSetSf.sunUp,sunRiseSetSf.timDifLocCiv,sunRiseSetSf.timZon,sunRiseSetSyd.lat,sunRiseSetSyd.lon,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.staTim,sunRiseSetSyd.sunUp,sunRiseSetSyd.timDifLocCiv,sunRiseSetSyd.timZon,time