Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.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.SunRiseSetNegativeStartTime,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.SunRiseSetNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime,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.SunRiseSetNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.497/2.497, allocations: 390.5 MB / 398 MB, free: 10.93 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.001297/0.001297, allocations: 184.8 kB / 491.2 MB, free: 1.551 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.726/1.726, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001122/0.001122, allocations: 95.7 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.958e-05/2.97e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.339, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.092/1.432, allocations: 150.1 MB / 1.359 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/1.432, allocations: 69.14 kB / 1.359 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04488/1.477, allocations: 10.48 MB / 1.369 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.425e-06/1.477, allocations: 4 kB / 1.369 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.981e-05/1.477, allocations: 3.844 kB / 1.369 GB, free: 32.66 MB / 0.8386 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.001915/1.479, allocations: 0.6225 MB / 1.37 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/1.479, allocations: 7.531 kB / 1.37 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/1.479, allocations: 19.34 kB / 1.37 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/1.479, allocations: 198.5 kB / 1.37 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/1.479, allocations: 7.031 kB / 1.37 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-05/1.479, allocations: 11.53 kB / 1.37 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003313/1.48, allocations: 87.36 kB / 1.37 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004106/1.48, allocations: 219.7 kB / 1.37 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/1.48, allocations: 7.906 kB / 1.37 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/1.48, allocations: 3.094 kB / 1.37 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/1.48, allocations: 3.938 kB / 1.37 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/1.481, allocations: 353.2 kB / 1.371 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/1.483, allocations: 470.4 kB / 1.371 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002531/1.483, allocations: 154.1 kB / 1.371 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.95e-05/1.483, allocations: 7.828 kB / 1.371 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005013/1.483, allocations: 306.2 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 4.399e-06/1.483, allocations: 4 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.004122/1.488, allocations: 0.5216 MB / 1.372 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/1.488, allocations: 352.5 kB / 1.372 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/1.488, allocations: 157.3 kB / 1.373 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.179e-05/1.488, allocations: 29.52 kB / 1.373 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/1.488, allocations: 102.5 kB / 1.373 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/1.488, allocations: 99.97 kB / 1.373 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.373e-05/1.488, allocations: 11.28 kB / 1.373 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001185/1.488, allocations: 326.8 kB / 1.373 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/1.489, allocations: 102.7 kB / 1.373 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/1.489, allocations: 141.1 kB / 1.373 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005383/1.494, allocations: 0.5097 MB / 1.374 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/1.494, allocations: 0 / 1.374 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.005997/1.5, allocations: 0.7108 MB / 1.375 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/1.5, allocations: 9.125 kB / 1.375 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/1.5, allocations: 3.938 kB / 1.375 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.396e-05/1.5, allocations: 3.812 kB / 1.375 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004727/1.501, allocations: 65.09 kB / 1.375 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.03e-05/1.501, allocations: 3.375 kB / 1.375 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/1.501, allocations: 52.81 kB / 1.375 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.574e-05/1.502, allocations: 17.36 kB / 1.375 GB, free: 29.77 MB / 0.8386 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.0002305/1.502, allocations: 128 kB / 1.375 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/1.502, allocations: 33.48 kB / 1.375 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008839/1.503, allocations: 332.3 kB / 1.375 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/1.503, allocations: 7.688 kB / 1.375 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/1.503, allocations: 3.844 kB / 1.375 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/1.503, allocations: 6.938 kB / 1.375 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005135/1.503, allocations: 297.6 kB / 1.375 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/1.503, allocations: 3.906 kB / 1.375 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003899/1.504, allocations: 74.36 kB / 1.376 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.327e-05/1.504, allocations: 7.922 kB / 1.376 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.597e-05/1.504, allocations: 10.83 kB / 1.376 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.308e-06/1.504, allocations: 7.844 kB / 1.376 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.504, allocations: 3.875 kB / 1.376 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004105/1.508, allocations: 0.8119 MB / 1.376 GB, free: 29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002187/1.508, allocations: 149.9 kB / 1.377 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.082e-05/1.508, allocations: 14.59 kB / 1.377 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/1.509, allocations: 29.48 kB / 1.377 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/1.509, allocations: 51.66 kB / 1.377 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/1.509, allocations: 22.97 kB / 1.377 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001241/1.509, allocations: 118.7 kB / 1.377 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.1e-07/1.509, allocations: 0 / 1.377 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001054/1.51, allocations: 215.6 kB / 1.377 GB, free: 28.73 MB / 0.8386 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.0009253/1.511, allocations: 328.6 kB / 1.377 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.002321/1.513, allocations: 2.987 MB / 1.38 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.514, allocations: 0 / 1.38 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003365/1.514, allocations: 163.5 kB / 1.38 GB, free: 25.84 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/1.514, allocations: 14.94 kB / 1.38 GB, free: 25.84 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000972/1.515, allocations: 407.2 kB / 1.381 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/1.516, allocations: 0.7667 MB / 1.381 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003271/1.516, allocations: 50.3 kB / 1.382 GB, free: 24.9 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/1.516, allocations: 52.39 kB / 1.382 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of SimCode: time 8.62e-07/1.516, allocations: 0 / 1.382 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of Templates: time 0.0131/1.529, allocations: 4.832 MB / 1.386 GB, free: 23.78 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches