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.534/1.534, allocations: 249.5 MB / 257 MB, free: 6.754 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 188.3 kB / 316.3 MB, free: 3.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.3 MB / 0.5671 GB, free: 15.9 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.0009077/0.0009075, allocations: 92.36 kB / 0.6714 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.664e-05/1.668e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2454, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7635/1.009, allocations: 132.9 MB / 1.015 GB, free: 4.836 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/1.009, allocations: 70.52 kB / 1.015 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03305/1.042, allocations: 10.33 MB / 1.025 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.447e-06/1.042, allocations: 4 kB / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.129e-05/1.042, allocations: 7.938 kB / 1.025 GB, free: 12.2 MB / 0.6511 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.001237/1.044, allocations: 0.6102 MB / 1.026 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/1.044, allocations: 12.03 kB / 1.026 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.687e-05/1.044, allocations: 23.81 kB / 1.026 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/1.044, allocations: 197.1 kB / 1.026 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/1.044, allocations: 4 kB / 1.026 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.188e-05/1.044, allocations: 15 kB / 1.026 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001987/1.044, allocations: 92.88 kB / 1.026 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/1.045, allocations: 218.4 kB / 1.026 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/1.045, allocations: 7.875 kB / 1.026 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/1.045, allocations: 4 kB / 1.026 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/1.045, allocations: 4 kB / 1.026 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003933/1.045, allocations: 356 kB / 1.027 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/1.046, allocations: 477.2 kB / 1.027 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/1.046, allocations: 143 kB / 1.027 GB, free: 9.918 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/1.046, allocations: 11.11 kB / 1.027 GB, free: 9.91 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003811/1.047, allocations: 305.4 kB / 1.028 GB, free: 9.605 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 2.194e-06/1.047, allocations: 4 kB / 1.028 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.002479/1.049, allocations: 0.5199 MB / 1.028 GB, free: 9.133 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001919/1.05, allocations: 349.8 kB / 1.028 GB, free: 8.715 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/1.05, allocations: 143.9 kB / 1.029 GB, free: 8.578 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.726e-05/1.05, allocations: 33.39 kB / 1.029 GB, free: 8.543 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.142e-05/1.05, allocations: 103.9 kB / 1.029 GB, free: 8.441 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000109/1.05, allocations: 107 kB / 1.029 GB, free: 8.352 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.957e-05/1.05, allocations: 3.938 kB / 1.029 GB, free: 8.348 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001517/1.05, allocations: 330.1 kB / 1.029 GB, free: 8.027 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/1.05, allocations: 97.3 kB / 1.029 GB, free: 7.969 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/1.051, allocations: 146 kB / 1.029 GB, free: 7.855 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003183/1.054, allocations: 0.4912 MB / 1.03 GB, free: 7.414 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/1.054, allocations: 4 kB / 1.03 GB, free: 7.41 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.003614/1.057, allocations: 0.7294 MB / 1.031 GB, free: 6.766 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/1.058, allocations: 4 kB / 1.031 GB, free: 6.762 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/1.058, allocations: 0 / 1.031 GB, free: 6.762 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.921e-05/1.058, allocations: 4 kB / 1.031 GB, free: 6.758 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/1.058, allocations: 66.7 kB / 1.031 GB, free: 6.695 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/1.058, allocations: 4 kB / 1.031 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/1.058, allocations: 51.66 kB / 1.031 GB, free: 6.641 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/1.058, allocations: 23.17 kB / 1.031 GB, free: 6.621 MB / 0.6511 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 4 * 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.000201/1.059, allocations: 123.7 kB / 1.031 GB, free: 6.5 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.434e-05/1.059, allocations: 31.17 kB / 1.031 GB, free: 6.473 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006317/1.059, allocations: 321.5 kB / 1.031 GB, free: 6.227 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/1.059, allocations: 8.188 kB / 1.031 GB, free: 6.219 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/1.059, allocations: 8 kB / 1.031 GB, free: 6.211 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/1.059, allocations: 11.97 kB / 1.031 GB, free: 6.199 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003618/1.06, allocations: 293.2 kB / 1.031 GB, free: 5.914 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/1.06, allocations: 4 kB / 1.031 GB, free: 5.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/1.06, allocations: 75.16 kB / 1.032 GB, free: 5.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/1.06, allocations: 4 kB / 1.032 GB, free: 5.836 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/1.06, allocations: 19.25 kB / 1.032 GB, free: 5.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/1.06, allocations: 8 kB / 1.032 GB, free: 5.812 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/1.06, allocations: 7.938 kB / 1.032 GB, free: 5.805 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/1.063, allocations: 0.8144 MB / 1.032 GB, free: 4.969 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/1.063, allocations: 150.6 kB / 1.033 GB, free: 4.816 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.723e-05/1.063, allocations: 15.92 kB / 1.033 GB, free: 4.801 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/1.063, allocations: 35.92 kB / 1.033 GB, free: 4.766 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/1.063, allocations: 42.75 kB / 1.033 GB, free: 4.73 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.744e-05/1.063, allocations: 22.94 kB / 1.033 GB, free: 4.715 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001245/1.064, allocations: 117.8 kB / 1.033 GB, free: 4.609 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.7e-07/1.064, allocations: 3.938 kB / 1.033 GB, free: 4.605 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008955/1.064, allocations: 214.3 kB / 1.033 GB, free: 4.402 MB / 0.6511 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) * 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.0007106/1.065, allocations: 312 kB / 1.033 GB, free: 4.09 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002401/1.068, allocations: 2.982 MB / 1.036 GB, free: 1.109 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/1.068, allocations: 0 / 1.036 GB, free: 1.109 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002838/1.068, allocations: 172.1 kB / 1.036 GB, free: 0.9766 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/1.068, allocations: 11.44 kB / 1.036 GB, free: 0.9648 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000903/1.069, allocations: 411.6 kB / 1.037 GB, free: 0.5664 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/1.07, allocations: 0.7651 MB / 1.037 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.000235/1.07, allocations: 52.94 kB / 1.038 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/1.07, allocations: 44.84 kB / 1.038 GB, free: 15.69 MB / 0.6667 GB Notification: Performance of SimCode: time 4.21e-07/1.07, allocations: 0 / 1.038 GB, free: 15.69 MB / 0.6667 GB Notification: Performance of Templates: time 0.0091/1.079, allocations: 4.84 MB / 1.042 GB, free: 10.89 MB / 0.6667 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