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.318/2.318, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.0009969/0.000997, allocations: 180.9 kB / 487.4 MB, free: 5.02 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.763/1.763, allocations: 221.5 MB / 0.7824 GB, free: 0.957 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 91.19 kB / 0.9219 GB, free: 2.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.587e-05/1.59e-05, allocations: 7.984 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2817, allocations: 142.4 MB / 1.206 GB, free: 43.92 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8467/1.128, allocations: 149.3 MB / 1.352 GB, free: 18.22 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/1.129, allocations: 67.72 kB / 1.352 GB, free: 18.22 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03262/1.161, allocations: 10.48 MB / 1.362 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.884e-06/1.161, allocations: 0 / 1.362 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.464e-06/1.161, allocations: 7.781 kB / 1.362 GB, free: 33.36 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.001121/1.163, allocations: 0.6185 MB / 1.363 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/1.163, allocations: 11.72 kB / 1.363 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.45e-05/1.163, allocations: 19.47 kB / 1.363 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.725e-05/1.163, allocations: 195.2 kB / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/1.163, allocations: 7.531 kB / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/1.163, allocations: 15.62 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002061/1.163, allocations: 86.23 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/1.163, allocations: 226.3 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/1.163, allocations: 0 / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.273e-05/1.163, allocations: 7.969 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/1.163, allocations: 3.844 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003103/1.164, allocations: 358.8 kB / 1.364 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/1.165, allocations: 466.7 kB / 1.364 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/1.165, allocations: 147.7 kB / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/1.165, allocations: 7.406 kB / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003226/1.165, allocations: 306.4 kB / 1.364 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 1.893e-06/1.165, allocations: 3.938 kB / 1.364 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.002391/1.168, allocations: 0.5244 MB / 1.365 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/1.168, allocations: 351.7 kB / 1.365 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/1.168, allocations: 153.9 kB / 1.365 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/1.168, allocations: 32.22 kB / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.324e-05/1.168, allocations: 91.95 kB / 1.366 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/1.168, allocations: 109.7 kB / 1.366 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.139e-05/1.168, allocations: 3.875 kB / 1.366 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001095/1.168, allocations: 330.9 kB / 1.366 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/1.169, allocations: 102.1 kB / 1.366 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/1.169, allocations: 139 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003063/1.172, allocations: 0.4995 MB / 1.367 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.172, allocations: 0 / 1.367 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.003297/1.175, allocations: 0.7196 MB / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/1.175, allocations: 9.594 kB / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/1.175, allocations: 0 / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/1.175, allocations: 3.844 kB / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/1.176, allocations: 73.92 kB / 1.367 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/1.176, allocations: 0 / 1.367 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/1.176, allocations: 54.36 kB / 1.368 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/1.176, allocations: 18.16 kB / 1.368 GB, free: 30.48 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.0001637/1.176, allocations: 127.5 kB / 1.368 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.371e-05/1.176, allocations: 27.23 kB / 1.368 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005464/1.177, allocations: 328.2 kB / 1.368 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/1.177, allocations: 7.75 kB / 1.368 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/1.177, allocations: 10.92 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/1.177, allocations: 3.812 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002951/1.177, allocations: 301 kB / 1.368 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.177, allocations: 3.938 kB / 1.368 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/1.177, allocations: 73.34 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/1.177, allocations: 3.844 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/1.177, allocations: 17.55 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/1.177, allocations: 3.969 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.177, allocations: 10.64 kB / 1.368 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/1.18, allocations: 0.8087 MB / 1.369 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/1.18, allocations: 156.3 kB / 1.369 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.25e-05/1.18, allocations: 7.688 kB / 1.369 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/1.18, allocations: 36.19 kB / 1.369 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.634e-05/1.18, allocations: 44.42 kB / 1.369 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.838e-05/1.18, allocations: 25.84 kB / 1.369 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.648e-05/1.18, allocations: 120.7 kB / 1.37 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.18, allocations: 0 / 1.37 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006168/1.181, allocations: 213.2 kB / 1.37 GB, free: 29.45 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.0004859/1.181, allocations: 320 kB / 1.37 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001571/1.183, allocations: 2.986 MB / 1.373 GB, free: 26.58 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.183, allocations: 8.156 kB / 1.373 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002019/1.183, allocations: 168.8 kB / 1.373 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/1.183, allocations: 10.34 kB / 1.373 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006559/1.184, allocations: 410 kB / 1.374 GB, free: 26.32 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/1.184, allocations: 0.7689 MB / 1.374 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001909/1.185, allocations: 47.28 kB / 1.374 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.835e-05/1.185, allocations: 45.81 kB / 1.374 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of SimCode: time 3.41e-07/1.185, allocations: 0 / 1.374 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.00722/1.192, allocations: 4.825 MB / 1.379 GB, free: 25.15 MB / 0.8386 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