Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.364/2.364, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001061/0.001062, allocations: 170.8 kB / 498.1 MB, free: 5.742 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.508/1.508, allocations: 223.2 MB / 0.7949 GB, free: 17.93 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.0008895/0.0008895, allocations: 96.33 kB / 0.9346 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003711/0.0003711, allocations: 8.031 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3074, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2003/0.5079, allocations: 150 MB / 1.369 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.5082, allocations: 67.97 kB / 1.369 GB, free: 12.04 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03544/0.5436, allocations: 10.56 MB / 1.38 GB, free: 1.457 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.204e-06/0.5437, allocations: 0 / 1.38 GB, free: 1.457 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.5437, allocations: 4 kB / 1.38 GB, free: 1.453 MB / 0.8698 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.001328/0.545, allocations: 0.6334 MB / 1.38 GB, free: 0.7734 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.5451, allocations: 12.03 kB / 1.38 GB, free: 0.7617 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.261e-05/0.5451, allocations: 27.8 kB / 1.38 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.5453, allocations: 194.2 kB / 1.381 GB, free: 0.5039 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.5455, allocations: 122.8 kB / 1.381 GB, free: 368 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.53e-05/0.5455, allocations: 24 kB / 1.381 GB, free: 344 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.5459, allocations: 231.8 kB / 1.381 GB, free: 68 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.5459, allocations: 3.938 kB / 1.381 GB, free: 64 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.52e-05/0.5459, allocations: 8 kB / 1.381 GB, free: 56 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.5459, allocations: 4 kB / 1.381 GB, free: 52 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.5462, allocations: 111.8 kB / 1.381 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000472/0.5466, allocations: 411 kB / 1.381 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.548, allocations: 495.6 kB / 1.382 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.985e-05/0.5481, allocations: 12.09 kB / 1.382 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004825/0.5486, allocations: 316.8 kB / 1.382 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=40): time 2.354e-06/0.5486, allocations: 0 / 1.382 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40): time 0.0008051/0.5494, allocations: 408.9 kB / 1.383 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.5496, allocations: 350.1 kB / 1.383 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.5497, allocations: 150.3 kB / 1.383 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.5498, allocations: 45.7 kB / 1.383 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.267e-05/0.5498, allocations: 93.62 kB / 1.383 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.5499, allocations: 122.4 kB / 1.383 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-05/0.55, allocations: 12 kB / 1.383 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.5501, allocations: 334.8 kB / 1.384 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.5504, allocations: 113.1 kB / 1.384 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.5507, allocations: 165 kB / 1.384 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.551, allocations: 124 kB / 1.384 GB, free: 12.49 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.551, allocations: 0 / 1.384 GB, free: 12.49 MB / 0.8855 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007179/0.5518, allocations: 365.1 kB / 1.384 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.5518, allocations: 7.938 kB / 1.384 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.5518, allocations: 1 kB / 1.384 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.5518, allocations: 4 kB / 1.384 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/0.5523, allocations: 75.88 kB / 1.385 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.5523, allocations: 4 kB / 1.385 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.5526, allocations: 63.66 kB / 1.385 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.734e-05/0.5527, allocations: 15.98 kB / 1.385 GB, free: 11.96 MB / 0.8855 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.000197/0.5529, allocations: 158.4 kB / 1.385 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.412e-05/0.5529, allocations: 23.72 kB / 1.385 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007161/0.5536, allocations: 369.9 kB / 1.385 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.5537, allocations: 8 kB / 1.385 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.5537, allocations: 4 kB / 1.385 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.5537, allocations: 7.984 kB / 1.385 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00044/0.5541, allocations: 345.1 kB / 1.385 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.5542, allocations: 4 kB / 1.385 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.5545, allocations: 75.83 kB / 1.386 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/0.5545, allocations: 12 kB / 1.386 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/0.5545, allocations: 23.92 kB / 1.386 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.5546, allocations: 4 kB / 1.386 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/0.5546, allocations: 7.938 kB / 1.386 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008546/0.5554, allocations: 0.6101 MB / 1.386 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002038/0.5556, allocations: 148.6 kB / 1.386 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/0.5557, allocations: 20 kB / 1.386 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.556, allocations: 44.16 kB / 1.386 GB, free: 9.91 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.5561, allocations: 43.94 kB / 1.386 GB, free: 9.867 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.5561, allocations: 27.97 kB / 1.386 GB, free: 9.84 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001095/0.5562, allocations: 135.2 kB / 1.387 GB, free: 9.707 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1e-07/0.5563, allocations: 0 / 1.387 GB, free: 9.707 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008275/0.5571, allocations: 223.7 kB / 1.387 GB, free: 9.488 MB / 0.8855 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.000644/0.5577, allocations: 325.6 kB / 1.387 GB, free: 9.164 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006674/0.5584, allocations: 335.1 kB / 1.387 GB, free: 8.84 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.5584, allocations: 3.938 kB / 1.387 GB, free: 8.836 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003008/0.5587, allocations: 183.7 kB / 1.388 GB, free: 8.656 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/0.5589, allocations: 29.33 kB / 1.388 GB, free: 8.625 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.56, allocations: 0.636 MB / 1.388 GB, free: 7.926 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.5603, allocations: 0.7729 MB / 1.389 GB, free: 7.129 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002299/0.5606, allocations: 55.25 kB / 1.389 GB, free: 7.074 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.5607, allocations: 47.41 kB / 1.389 GB, free: 7.027 MB / 0.8855 GB Notification: Performance of SimCode: time 3.01e-07/0.5607, allocations: 0 / 1.389 GB, free: 7.027 MB / 0.8855 GB Notification: Performance of Templates: time 0.009105/0.5698, allocations: 4.802 MB / 1.394 GB, free: 2.23 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","../files/Buildings_9_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