Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 115.2 kB / 16.42 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 187.9 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.628/2.628, allocations: 437 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.91 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.125/1.126, allocations: 151.6 MB / 1.167 GB, free: 3.91 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.002378/1.129, allocations: 0.8987 MB / 1.168 GB, free: 3.016 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003353/1.132, allocations: 2.481 MB / 1.171 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/1.132, allocations: 3.938 kB / 1.171 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.906e-05/1.132, allocations: 15.81 kB / 1.171 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002391/1.133, allocations: 39.62 kB / 1.171 GB, free: 468 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001299/1.134, allocations: 0.4962 MB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003878/1.134, allocations: 326.9 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 6.627e-05/1.134, allocations: 21.61 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/1.135, allocations: 147.6 kB / 1.172 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/1.135, allocations: 147.5 kB / 1.172 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.359e-05/1.135, allocations: 24 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007214/1.136, allocations: 371.7 kB / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 7.794e-05/1.136, allocations: 67.84 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001453/1.136, allocations: 119.5 kB / 1.172 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000843/1.137, allocations: 0.5471 MB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/1.137, allocations: 4 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.523e-06/1.137, allocations: 0 / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.985e-06/1.137, allocations: 0 / 1.173 GB, free: 14.21 MB / 0.9044 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.001597/1.139, allocations: 0.6607 MB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/1.139, allocations: 12.92 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/1.139, allocations: 24.66 kB / 1.174 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/1.139, allocations: 192.8 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/1.139, allocations: 127.3 kB / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-05/1.139, allocations: 20.38 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/1.14, allocations: 243.9 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/1.14, allocations: 0 / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.804e-05/1.14, allocations: 11.94 kB / 1.174 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/1.14, allocations: 4 kB / 1.174 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002532/1.14, allocations: 115.7 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005008/1.14, allocations: 403 kB / 1.175 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/1.142, allocations: 495.3 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/1.142, allocations: 162.2 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/1.142, allocations: 15.97 kB / 1.175 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005086/1.143, allocations: 315.5 kB / 1.176 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=40): time 3.076e-06/1.143, allocations: 0 / 1.176 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of matching and sorting (n=40): time 0.0008425/1.144, allocations: 405 kB / 1.176 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000181/1.144, allocations: 354.6 kB / 1.176 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/1.144, allocations: 171.2 kB / 1.176 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/1.144, allocations: 37.7 kB / 1.176 GB, free: 9.965 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.949e-05/1.144, allocations: 97.12 kB / 1.177 GB, free: 9.867 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/1.144, allocations: 114.4 kB / 1.177 GB, free: 9.754 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/1.144, allocations: 98.16 kB / 1.177 GB, free: 9.652 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001317/1.145, allocations: 338.8 kB / 1.177 GB, free: 9.312 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002969/1.145, allocations: 117 kB / 1.177 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/1.145, allocations: 165 kB / 1.177 GB, free: 9.027 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006084/1.146, allocations: 267.8 kB / 1.178 GB, free: 8.758 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/1.146, allocations: 4 kB / 1.178 GB, free: 8.754 MB / 0.9044 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008519/1.147, allocations: 380.8 kB / 1.178 GB, free: 8.379 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/1.147, allocations: 6.344 kB / 1.178 GB, free: 8.375 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/1.147, allocations: 0 / 1.178 GB, free: 8.375 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/1.147, allocations: 4 kB / 1.178 GB, free: 8.371 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/1.147, allocations: 83.81 kB / 1.178 GB, free: 8.289 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/1.147, allocations: 0 / 1.178 GB, free: 8.289 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/1.147, allocations: 56.66 kB / 1.178 GB, free: 8.234 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-05/1.148, allocations: 15.98 kB / 1.178 GB, free: 8.219 MB / 0.9044 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 (sunRiseSetSyd.sunUp,sunRiseSetSyd.nextSunSet,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunRise,$whenCondition7,$whenCondition8,sunRiseSetAntarctic.sunUp,sunRiseSetAntarctic.nextSunSet,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunRise,$whenCondition5,$whenCondition6,sunRiseSetSf.sunUp,sunRiseSetSf.nextSunSet,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunRise,$whenCondition3,$whenCondition4,sunRiseSetArctic.sunUp,sunRiseSetArctic.nextSunSet,$PRE.sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,$PRE.sunRiseSetArctic.nextSunRise,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002011/1.148, allocations: 154.5 kB / 1.178 GB, free: 8.059 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.164e-05/1.148, allocations: 27.66 kB / 1.178 GB, free: 8.031 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007774/1.149, allocations: 366 kB / 1.179 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/1.149, allocations: 7.984 kB / 1.179 GB, free: 7.656 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/1.149, allocations: 4 kB / 1.179 GB, free: 7.652 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002182/1.149, allocations: 148.6 kB / 1.179 GB, free: 7.488 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/1.149, allocations: 16 kB / 1.179 GB, free: 7.473 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/1.149, allocations: 31.97 kB / 1.179 GB, free: 7.441 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/1.149, allocations: 51.81 kB / 1.179 GB, free: 7.391 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001391/1.151, allocations: 1.356 MB / 1.18 GB, free: 6.02 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001198/1.152, allocations: 1.385 MB / 1.182 GB, free: 4.609 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00032/1.152, allocations: 167.8 kB / 1.182 GB, free: 4.445 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001104/1.152, allocations: 128.8 kB / 1.182 GB, free: 4.32 MB / 0.9044 GB Notification: Performance of Backend: time 3.11e-07/1.152, allocations: 0 / 1.182 GB, free: 4.32 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002577/1.155, allocations: 488.4 kB / 1.182 GB, free: 3.836 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0009765/1.156, allocations: 0.8175 MB / 1.183 GB, free: 2.973 MB / 0.9044 GB Notification: Performance of Templates: time 0.01217/1.168, allocations: 5.841 MB / 1.189 GB, free: 13.14 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches