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.497/1.497, allocations: 249.3 MB / 261.8 MB, free: 5.77 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.001146/0.001146, allocations: 184.8 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.2 MB / 0.572 GB, free: 10.66 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.001175/0.001175, allocations: 94.52 kB / 0.6764 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.952e-05/3.954e-05, allocations: 4 kB / 0.788 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1827, allocations: 106.3 MB / 0.8918 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6469/0.8297, allocations: 132.7 MB / 1.021 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.83, allocations: 73.86 kB / 1.021 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03271/0.8627, allocations: 10.38 MB / 1.032 GB, free: 9.227 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.112e-06/0.8627, allocations: 0 / 1.032 GB, free: 9.227 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.184e-05/0.8628, allocations: 4 kB / 1.032 GB, free: 9.223 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.001286/0.864, allocations: 0.6183 MB / 1.032 GB, free: 8.574 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.8641, allocations: 8.031 kB / 1.032 GB, free: 8.566 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.488e-05/0.8642, allocations: 19.81 kB / 1.032 GB, free: 8.547 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.8644, allocations: 193.1 kB / 1.032 GB, free: 8.316 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/0.8645, allocations: 129.6 kB / 1.033 GB, free: 8.172 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/0.8646, allocations: 26.53 kB / 1.033 GB, free: 8.152 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003468/0.8649, allocations: 234.4 kB / 1.033 GB, free: 7.918 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.865, allocations: 0 / 1.033 GB, free: 7.918 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.865, allocations: 7.5 kB / 1.033 GB, free: 7.914 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.865, allocations: 4 kB / 1.033 GB, free: 7.91 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002347/0.8652, allocations: 109.1 kB / 1.033 GB, free: 7.828 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004977/0.8658, allocations: 396 kB / 1.033 GB, free: 7.422 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.8673, allocations: 495.7 kB / 1.034 GB, free: 6.879 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.8675, allocations: 150.5 kB / 1.034 GB, free: 6.723 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.157e-05/0.8676, allocations: 15.67 kB / 1.034 GB, free: 6.711 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005314/0.8681, allocations: 310.3 kB / 1.034 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 5.11e-06/0.8682, allocations: 0 / 1.034 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.000852/0.869, allocations: 324.4 kB / 1.034 GB, free: 6.141 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002234/0.8693, allocations: 357.6 kB / 1.035 GB, free: 5.715 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/0.8695, allocations: 152.6 kB / 1.035 GB, free: 5.566 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.282e-05/0.8695, allocations: 40.45 kB / 1.035 GB, free: 5.531 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/0.8696, allocations: 99.84 kB / 1.035 GB, free: 5.438 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.8698, allocations: 106.9 kB / 1.035 GB, free: 5.352 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.163e-05/0.8698, allocations: 3.938 kB / 1.035 GB, free: 5.352 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002097/0.87, allocations: 341 kB / 1.036 GB, free: 5.02 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.8702, allocations: 104.5 kB / 1.036 GB, free: 4.953 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.8705, allocations: 155.3 kB / 1.036 GB, free: 4.832 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.8707, allocations: 119.2 kB / 1.036 GB, free: 4.754 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.8707, allocations: 0 / 1.036 GB, free: 4.754 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006868/0.8714, allocations: 351.2 kB / 1.036 GB, free: 4.48 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.8715, allocations: 4 kB / 1.036 GB, free: 4.477 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.8715, allocations: 0 / 1.036 GB, free: 4.477 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.678e-05/0.8715, allocations: 8 kB / 1.036 GB, free: 4.469 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004193/0.872, allocations: 82.94 kB / 1.036 GB, free: 4.391 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.872, allocations: 0 / 1.036 GB, free: 4.391 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003697/0.8724, allocations: 62.66 kB / 1.036 GB, free: 4.336 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.385e-05/0.8724, allocations: 21.98 kB / 1.036 GB, free: 4.32 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): 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.0001747/0.8726, allocations: 138.9 kB / 1.037 GB, free: 4.188 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-05/0.8727, allocations: 27.47 kB / 1.037 GB, free: 4.164 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000751/0.8735, allocations: 351.9 kB / 1.037 GB, free: 3.887 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.8735, allocations: 8 kB / 1.037 GB, free: 3.879 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.8735, allocations: 4 kB / 1.037 GB, free: 3.875 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.8735, allocations: 11.98 kB / 1.037 GB, free: 3.863 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004735/0.874, allocations: 349.3 kB / 1.037 GB, free: 3.527 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.874, allocations: 4 kB / 1.037 GB, free: 3.523 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/0.8743, allocations: 79.02 kB / 1.037 GB, free: 3.449 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.158e-06/0.8743, allocations: 4 kB / 1.037 GB, free: 3.445 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-05/0.8744, allocations: 18.94 kB / 1.037 GB, free: 3.438 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.829e-06/0.8744, allocations: 7.984 kB / 1.037 GB, free: 3.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.291e-06/0.8744, allocations: 8 kB / 1.037 GB, free: 3.422 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008364/0.8753, allocations: 0.6026 MB / 1.038 GB, free: 2.801 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.8755, allocations: 154.7 kB / 1.038 GB, free: 2.641 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.372e-05/0.8755, allocations: 15.25 kB / 1.038 GB, free: 2.633 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.8758, allocations: 38.91 kB / 1.038 GB, free: 2.602 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.8759, allocations: 54.19 kB / 1.038 GB, free: 2.559 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-05/0.876, allocations: 27.48 kB / 1.038 GB, free: 2.535 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.533e-05/0.8761, allocations: 125.2 kB / 1.038 GB, free: 2.426 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8761, allocations: 0 / 1.038 GB, free: 2.426 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0007528/0.8768, allocations: 229.4 kB / 1.039 GB, free: 2.219 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.0007738/0.8776, allocations: 317.5 kB / 1.039 GB, free: 1.91 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005673/0.8782, allocations: 317.1 kB / 1.039 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.8782, allocations: 4 kB / 1.039 GB, free: 1.676 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.8785, allocations: 184.6 kB / 1.039 GB, free: 1.535 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.8787, allocations: 25.55 kB / 1.039 GB, free: 1.516 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007945/0.8795, allocations: 437.3 kB / 1.04 GB, free: 1.109 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.8798, allocations: 0.7689 MB / 1.041 GB, free: 316 kB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002233/0.88, allocations: 60.39 kB / 1.041 GB, free: 256 kB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.8802, allocations: 47.09 kB / 1.041 GB, free: 216 kB / 0.6511 GB Notification: Performance of SimCode: time 1.523e-06/0.8802, allocations: 0 / 1.041 GB, free: 216 kB / 0.6511 GB Notification: Performance of Templates: time 0.008644/0.8888, allocations: 4.826 MB / 1.045 GB, free: 11.41 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