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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 115.3 kB / 16.42 MB, free: 6.02 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.001281/0.001281, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.411/1.411, 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 9.1.3-maint.9.1.x/package.mo): time 2.23/2.23, allocations: 390.2 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001464, allocations: 59.91 kB / 0.9515 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9242/0.9257, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.002006/0.9278, allocations: 0.9006 MB / 1.089 GB, free: 4.906 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002987/0.9308, allocations: 2.476 MB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.772e-05/0.9309, allocations: 0.9375 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.893e-05/0.9309, allocations: 13.73 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.9311, allocations: 53.34 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.9322, allocations: 495.8 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003692/0.9325, allocations: 321.8 kB / 1.093 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.122e-05/0.9326, allocations: 19.72 kB / 1.093 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.9329, allocations: 148 kB / 1.093 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.9331, allocations: 151.8 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.773e-05/0.9332, allocations: 23.38 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008417/0.9341, allocations: 374.3 kB / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.762e-05/0.9341, allocations: 71.47 kB / 1.094 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.9343, allocations: 118.8 kB / 1.094 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009403/0.9353, allocations: 0.5407 MB / 1.094 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.9353, allocations: 0 / 1.094 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9353, allocations: 0.875 kB / 1.094 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.353e-05/0.9353, allocations: 0 / 1.094 GB, free: 2.227 MB / 0.8575 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.001412/0.9367, allocations: 0.6672 MB / 1.095 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.9368, allocations: 10.17 kB / 1.095 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.259e-05/0.9369, allocations: 24.75 kB / 1.095 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.937, allocations: 193.8 kB / 1.095 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.9371, allocations: 130.1 kB / 1.095 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/0.9372, allocations: 18.86 kB / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003987/0.9376, allocations: 256.8 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.9376, allocations: 1.094 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.9377, allocations: 7.562 kB / 1.095 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.9377, allocations: 4.156 kB / 1.095 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003323/0.938, allocations: 112.4 kB / 1.096 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006396/0.9387, allocations: 403.5 kB / 1.096 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.9404, allocations: 499.4 kB / 1.096 GB, free: 388 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002492/0.9406, allocations: 153 kB / 1.097 GB, free: 260 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.494e-05/0.9407, allocations: 18.41 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006883/0.9414, allocations: 313.5 kB / 1.097 GB, free: 28 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=40): time 3.757e-06/0.9414, allocations: 0.7188 kB / 1.097 GB, free: 28 kB / 0.8575 GB Notification: Performance of matching and sorting (n=40): time 0.001153/0.9425, allocations: 412.5 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002144/0.9428, allocations: 356.4 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.943, allocations: 165 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.9431, allocations: 38.78 kB / 1.098 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 9.567e-05/0.9432, allocations: 99.52 kB / 1.098 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.9433, allocations: 113.9 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.9435, allocations: 94.88 kB / 1.098 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000228/0.9437, allocations: 334.8 kB / 1.098 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.9441, allocations: 117.3 kB / 1.098 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.9445, allocations: 167.8 kB / 1.099 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007195/0.9453, allocations: 262.1 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.9453, allocations: 4 kB / 1.099 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00095/0.9462, allocations: 379.5 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.9463, allocations: 9.344 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.9463, allocations: 1.156 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.9463, allocations: 3.531 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.9467, allocations: 80.58 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.884e-05/0.9468, allocations: 7.844 kB / 1.099 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.9471, allocations: 52.81 kB / 1.099 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.9471, allocations: 21.16 kB / 1.099 GB, free: 14.29 MB / 0.8731 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.0001955/0.9473, allocations: 154.2 kB / 1.1 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-05/0.9474, allocations: 33.28 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008057/0.9482, allocations: 346.3 kB / 1.1 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.9482, allocations: 10.58 kB / 1.1 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.9482, allocations: 2.906 kB / 1.1 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.9485, allocations: 150.7 kB / 1.1 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.459e-05/0.9485, allocations: 17.45 kB / 1.1 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.9488, allocations: 29.28 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.9489, allocations: 53.08 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001315/0.9503, allocations: 1.359 MB / 1.102 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001125/0.9514, allocations: 1.379 MB / 1.103 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002876/0.9517, allocations: 173.4 kB / 1.103 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001018/0.9518, allocations: 122.3 kB / 1.103 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of Backend: time 4.21e-07/0.9518, allocations: 0 / 1.103 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002402/0.9542, allocations: 487.5 kB / 1.104 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of SimCode: time 0.001039/0.9553, allocations: 0.8284 MB / 1.104 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of Templates: time 0.01327/0.9685, allocations: 5.827 MB / 1.11 GB, free: 9.957 MB / 0.8731 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches