Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.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.SunRiseSetPositiveStartTime,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.SunRiseSetPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime,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.SunRiseSetPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.233/2.233, allocations: 390.3 MB / 405.3 MB, free: 13.41 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.00102/0.00102, allocations: 193.1 kB / 498.1 MB, free: 5.664 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.6/1.6, allocations: 223.2 MB / 0.7948 GB, free: 18.76 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.0009283/0.0009283, allocations: 109.4 kB / 0.9346 GB, free: 7.043 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003891/0.0003892, allocations: 12.56 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3094, allocations: 142.4 MB / 1.223 GB, free: 89.55 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2034/0.5128, allocations: 150 MB / 1.369 GB, free: 3.34 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.5131, allocations: 75.89 kB / 1.369 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03496/0.5481, allocations: 10.57 MB / 1.38 GB, free: 8.68 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.164e-06/0.5482, allocations: 0 / 1.38 GB, free: 8.68 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.5482, allocations: 4 kB / 1.38 GB, free: 8.676 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.001605/0.5498, allocations: 0.6296 MB / 1.38 GB, free: 8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.5499, allocations: 8.031 kB / 1.38 GB, free: 7.992 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.55, allocations: 27.75 kB / 1.38 GB, free: 7.965 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.5502, allocations: 194.2 kB / 1.381 GB, free: 7.734 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.5504, allocations: 134.7 kB / 1.381 GB, free: 7.578 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.73e-05/0.5505, allocations: 20 kB / 1.381 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004417/0.551, allocations: 235.7 kB / 1.381 GB, free: 7.285 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.551, allocations: 0 / 1.381 GB, free: 7.285 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.551, allocations: 8 kB / 1.381 GB, free: 7.277 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.551, allocations: 4 kB / 1.381 GB, free: 7.273 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002471/0.5513, allocations: 119.7 kB / 1.381 GB, free: 7.156 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.5518, allocations: 403 kB / 1.381 GB, free: 6.68 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.5533, allocations: 487.6 kB / 1.382 GB, free: 6.094 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.955e-05/0.5534, allocations: 12.14 kB / 1.382 GB, free: 6.082 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004924/0.5539, allocations: 320.8 kB / 1.382 GB, free: 5.719 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=40): time 3.387e-06/0.5539, allocations: 0 / 1.382 GB, free: 5.719 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40): time 0.000897/0.5548, allocations: 409.2 kB / 1.383 GB, free: 5.312 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000186/0.555, allocations: 354.6 kB / 1.383 GB, free: 4.887 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.5551, allocations: 150.4 kB / 1.383 GB, free: 4.727 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.483e-05/0.5552, allocations: 41.69 kB / 1.383 GB, free: 4.68 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.5553, allocations: 93.14 kB / 1.383 GB, free: 4.586 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.5554, allocations: 110.5 kB / 1.383 GB, free: 4.477 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.259e-05/0.5554, allocations: 12 kB / 1.383 GB, free: 4.465 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5556, allocations: 334.8 kB / 1.384 GB, free: 4.129 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000285/0.5559, allocations: 117.1 kB / 1.384 GB, free: 4.016 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.5562, allocations: 161 kB / 1.384 GB, free: 3.848 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003071/0.5565, allocations: 127.5 kB / 1.384 GB, free: 3.727 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.5565, allocations: 0 / 1.384 GB, free: 3.727 MB / 0.8855 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007428/0.5573, allocations: 369.2 kB / 1.384 GB, free: 3.359 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.5573, allocations: 9.875 kB / 1.384 GB, free: 3.352 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.5573, allocations: 3.938 kB / 1.384 GB, free: 3.348 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.5573, allocations: 4 kB / 1.384 GB, free: 3.344 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/0.5578, allocations: 79.88 kB / 1.385 GB, free: 3.266 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.5578, allocations: 0 / 1.385 GB, free: 3.266 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.5581, allocations: 51.67 kB / 1.385 GB, free: 3.215 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.246e-05/0.5582, allocations: 27.97 kB / 1.385 GB, free: 3.188 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.0001862/0.5584, allocations: 157.7 kB / 1.385 GB, free: 3.023 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.815e-05/0.5584, allocations: 23.72 kB / 1.385 GB, free: 3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007274/0.5592, allocations: 363.5 kB / 1.385 GB, free: 2.637 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.5592, allocations: 12 kB / 1.385 GB, free: 2.625 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.5592, allocations: 8.062 kB / 1.385 GB, free: 2.617 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.5592, allocations: 7.984 kB / 1.385 GB, free: 2.609 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004406/0.5597, allocations: 353.1 kB / 1.386 GB, free: 2.215 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.5597, allocations: 4 kB / 1.386 GB, free: 2.211 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002964/0.56, allocations: 71.91 kB / 1.386 GB, free: 2.141 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.56, allocations: 4 kB / 1.386 GB, free: 2.137 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.257e-05/0.5601, allocations: 19.98 kB / 1.386 GB, free: 2.117 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.225e-06/0.5601, allocations: 7.938 kB / 1.386 GB, free: 2.109 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5601, allocations: 4 kB / 1.386 GB, free: 2.105 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008515/0.5609, allocations: 0.6177 MB / 1.386 GB, free: 1.367 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.5612, allocations: 148.6 kB / 1.386 GB, free: 1.203 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.558e-05/0.5612, allocations: 15.98 kB / 1.386 GB, free: 1.188 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00026/0.5615, allocations: 35.98 kB / 1.386 GB, free: 1.152 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.5616, allocations: 55.81 kB / 1.386 GB, free: 1.098 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.406e-05/0.5617, allocations: 23.98 kB / 1.386 GB, free: 1.074 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001102/0.5618, allocations: 135.2 kB / 1.387 GB, free: 0.9414 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5618, allocations: 0 / 1.387 GB, free: 0.9414 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008207/0.5626, allocations: 215.7 kB / 1.387 GB, free: 0.7305 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.0009511/0.5636, allocations: 345.8 kB / 1.387 GB, free: 392 kB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006825/0.5643, allocations: 331.2 kB / 1.387 GB, free: 64 kB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5643, allocations: 0 / 1.387 GB, free: 64 kB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.5646, allocations: 188.3 kB / 1.388 GB, free: 15.88 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.5648, allocations: 17.31 kB / 1.388 GB, free: 15.86 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.5659, allocations: 0.6438 MB / 1.388 GB, free: 15.15 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.5663, allocations: 0.7691 MB / 1.389 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002436/0.5666, allocations: 51.31 kB / 1.389 GB, free: 14.31 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.5667, allocations: 51.34 kB / 1.389 GB, free: 14.26 MB / 0.9011 GB Notification: Performance of SimCode: time 2.9e-07/0.5667, allocations: 0 / 1.389 GB, free: 14.26 MB / 0.9011 GB Notification: Performance of Templates: time 0.01066/0.5774, allocations: 4.813 MB / 1.394 GB, free: 9.457 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches