Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.634/2.634, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001208, allocations: 183 kB / 0.4902 GB, free: 2.207 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 223.1 MB / 0.7992 GB, free: 15.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 102.2 kB / 0.9396 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003984/0.0003984, allocations: 11.67 kB / 1.09 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.309, allocations: 143 MB / 1.229 GB, free: 85.49 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1943/0.5033, allocations: 150.8 MB / 1.376 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.5036, allocations: 67.97 kB / 1.377 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03459/0.5382, allocations: 10.58 MB / 1.387 GB, free: 3.797 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.745e-06/0.5383, allocations: 0 / 1.387 GB, free: 3.797 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.615e-05/0.5383, allocations: 4 kB / 1.387 GB, free: 3.793 MB / 0.8855 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.001531/0.5399, allocations: 0.6344 MB / 1.388 GB, free: 3.109 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.5399, allocations: 8.562 kB / 1.388 GB, free: 3.102 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.793e-05/0.54, allocations: 23.8 kB / 1.388 GB, free: 3.078 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.5402, allocations: 193.8 kB / 1.388 GB, free: 2.848 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001773/0.5403, allocations: 134.7 kB / 1.388 GB, free: 2.691 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.5404, allocations: 16 kB / 1.388 GB, free: 2.676 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000364/0.5408, allocations: 240.5 kB / 1.388 GB, free: 2.398 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.5408, allocations: 3.938 kB / 1.388 GB, free: 2.395 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.5408, allocations: 8 kB / 1.388 GB, free: 2.387 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.5408, allocations: 4 kB / 1.388 GB, free: 2.383 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.5411, allocations: 111.8 kB / 1.388 GB, free: 2.273 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004879/0.5416, allocations: 403.1 kB / 1.389 GB, free: 1.797 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.543, allocations: 491.5 kB / 1.389 GB, free: 1.207 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.976e-05/0.543, allocations: 8.062 kB / 1.389 GB, free: 1.199 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004758/0.5435, allocations: 319.4 kB / 1.389 GB, free: 0.8359 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=40): time 1.993e-06/0.5435, allocations: 0 / 1.389 GB, free: 0.8359 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40): time 0.000841/0.5444, allocations: 404.9 kB / 1.39 GB, free: 444 kB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001968/0.5446, allocations: 354.1 kB / 1.39 GB, free: 8 kB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.5448, allocations: 151.8 kB / 1.39 GB, free: 15.85 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.5448, allocations: 45.64 kB / 1.39 GB, free: 15.8 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 7.34e-05/0.5449, allocations: 97.62 kB / 1.39 GB, free: 15.7 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.545, allocations: 110.5 kB / 1.391 GB, free: 15.59 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-05/0.5451, allocations: 15.94 kB / 1.391 GB, free: 15.58 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.5452, allocations: 334.8 kB / 1.391 GB, free: 15.24 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/0.5455, allocations: 113.1 kB / 1.391 GB, free: 15.13 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003018/0.5458, allocations: 165 kB / 1.391 GB, free: 14.96 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.5461, allocations: 124 kB / 1.391 GB, free: 14.84 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5461, allocations: 0 / 1.391 GB, free: 14.84 MB / 0.9011 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007247/0.5469, allocations: 368.4 kB / 1.392 GB, free: 14.47 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.5469, allocations: 4 kB / 1.392 GB, free: 14.47 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.5469, allocations: 1 kB / 1.392 GB, free: 14.47 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.5469, allocations: 4 kB / 1.392 GB, free: 14.46 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003973/0.5473, allocations: 79.88 kB / 1.392 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.5474, allocations: 3.984 kB / 1.392 GB, free: 14.38 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.5477, allocations: 63.66 kB / 1.392 GB, free: 14.32 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.719e-05/0.5477, allocations: 19.98 kB / 1.392 GB, free: 14.3 MB / 0.9011 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.0001605/0.5479, allocations: 162.4 kB / 1.392 GB, free: 14.13 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.904e-05/0.5479, allocations: 27.72 kB / 1.392 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006763/0.5486, allocations: 361.9 kB / 1.392 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.5486, allocations: 8 kB / 1.392 GB, free: 13.74 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.5487, allocations: 4 kB / 1.392 GB, free: 13.73 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.5487, allocations: 7.984 kB / 1.392 GB, free: 13.73 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003754/0.5491, allocations: 353 kB / 1.393 GB, free: 13.33 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.5491, allocations: 4 kB / 1.393 GB, free: 13.33 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/0.5494, allocations: 72.08 kB / 1.393 GB, free: 13.26 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.5494, allocations: 8 kB / 1.393 GB, free: 13.25 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.5494, allocations: 19.98 kB / 1.393 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.5494, allocations: 4 kB / 1.393 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.5494, allocations: 11.92 kB / 1.393 GB, free: 13.21 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007617/0.5502, allocations: 0.6025 MB / 1.393 GB, free: 12.49 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.5504, allocations: 156.5 kB / 1.393 GB, free: 12.32 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.5505, allocations: 20 kB / 1.393 GB, free: 12.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/0.5507, allocations: 43.97 kB / 1.394 GB, free: 12.25 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.5508, allocations: 43.94 kB / 1.394 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.531e-05/0.5509, allocations: 23.98 kB / 1.394 GB, free: 12.19 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 9.509e-05/0.551, allocations: 131.2 kB / 1.394 GB, free: 12.06 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.453e-06/0.551, allocations: 0 / 1.394 GB, free: 12.06 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0007159/0.5517, allocations: 227.6 kB / 1.394 GB, free: 11.84 MB / 0.9011 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.0005646/0.5523, allocations: 329 kB / 1.394 GB, free: 11.51 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0006034/0.5529, allocations: 326.6 kB / 1.395 GB, free: 11.19 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.5529, allocations: 4 kB / 1.395 GB, free: 11.19 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.5532, allocations: 183.6 kB / 1.395 GB, free: 11.01 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001792/0.5534, allocations: 28.19 kB / 1.395 GB, free: 10.98 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009773/0.5544, allocations: 0.6322 MB / 1.395 GB, free: 10.28 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.5547, allocations: 0.7652 MB / 1.396 GB, free: 9.488 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002221/0.5549, allocations: 59.23 kB / 1.396 GB, free: 9.43 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.555, allocations: 51.41 kB / 1.396 GB, free: 9.379 MB / 0.9011 GB Notification: Performance of SimCode: time 3.71e-07/0.555, allocations: 0 / 1.396 GB, free: 9.379 MB / 0.9011 GB Notification: Performance of Templates: time 0.008712/0.5638, allocations: 4.805 MB / 1.401 GB, free: 4.586 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","../files/Buildings_latest_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