Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.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.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_latest_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_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.499/2.499, allocations: 393.5 MB / 408.4 MB, free: 11.1 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.001138/0.001138, allocations: 182.5 kB / 0.4902 GB, free: 2.32 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.734/1.734, allocations: 223.1 MB / 0.7992 GB, free: 14.79 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.0009488/0.0009485, allocations: 95.97 kB / 0.9396 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.0004341, allocations: 12.06 kB / 1.09 GB, free: 216.8 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3547, allocations: 143 MB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.5537, allocations: 150.8 MB / 1.377 GB, free: 2.988 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.554, allocations: 67.95 kB / 1.377 GB, free: 2.922 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03384/0.5878, allocations: 10.58 MB / 1.387 GB, free: 8.324 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.014e-06/0.5879, allocations: 0 / 1.387 GB, free: 8.324 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.136e-05/0.5879, allocations: 4 kB / 1.387 GB, free: 8.32 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.001325/0.5892, allocations: 0.6382 MB / 1.388 GB, free: 7.633 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.5893, allocations: 8.562 kB / 1.388 GB, free: 7.625 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.835e-05/0.5893, allocations: 19.81 kB / 1.388 GB, free: 7.605 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.5895, allocations: 187.5 kB / 1.388 GB, free: 7.379 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.5897, allocations: 130.8 kB / 1.388 GB, free: 7.227 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.098e-05/0.5897, allocations: 23.98 kB / 1.388 GB, free: 7.203 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003531/0.5901, allocations: 232.6 kB / 1.388 GB, free: 6.934 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.5901, allocations: 7.938 kB / 1.388 GB, free: 6.926 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.5901, allocations: 4 kB / 1.388 GB, free: 6.922 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.5901, allocations: 4 kB / 1.388 GB, free: 6.918 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002184/0.5904, allocations: 115.8 kB / 1.388 GB, free: 6.805 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004679/0.5908, allocations: 407.1 kB / 1.389 GB, free: 6.324 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.5923, allocations: 487.6 kB / 1.389 GB, free: 5.738 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.209e-05/0.5923, allocations: 16.12 kB / 1.389 GB, free: 5.723 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004576/0.5928, allocations: 315.4 kB / 1.389 GB, free: 5.363 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=40): time 1.654e-06/0.5928, allocations: 0 / 1.389 GB, free: 5.363 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40): time 0.0008/0.5936, allocations: 409.6 kB / 1.39 GB, free: 4.957 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000196/0.5938, allocations: 354.1 kB / 1.39 GB, free: 4.531 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.594, allocations: 148.1 kB / 1.39 GB, free: 4.379 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.941e-05/0.594, allocations: 45.69 kB / 1.39 GB, free: 4.328 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.137e-05/0.5941, allocations: 101.5 kB / 1.39 GB, free: 4.227 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.5942, allocations: 110.6 kB / 1.391 GB, free: 4.117 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.177e-05/0.5942, allocations: 8 kB / 1.391 GB, free: 4.109 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.5944, allocations: 334.8 kB / 1.391 GB, free: 3.773 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002518/0.5946, allocations: 113.1 kB / 1.391 GB, free: 3.664 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.5949, allocations: 165 kB / 1.391 GB, free: 3.488 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.5952, allocations: 124 kB / 1.391 GB, free: 3.367 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5952, allocations: 0 / 1.391 GB, free: 3.367 MB / 0.8855 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007076/0.5959, allocations: 377 kB / 1.392 GB, free: 2.996 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.596, allocations: 4 kB / 1.392 GB, free: 2.992 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.596, allocations: 4 kB / 1.392 GB, free: 2.988 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.596, allocations: 96 / 1.392 GB, free: 2.988 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004054/0.5964, allocations: 79.88 kB / 1.392 GB, free: 2.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.5964, allocations: 7.984 kB / 1.392 GB, free: 2.902 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.5967, allocations: 63.64 kB / 1.392 GB, free: 2.84 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.5968, allocations: 15.98 kB / 1.392 GB, free: 2.824 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.0001783/0.597, allocations: 157.7 kB / 1.392 GB, free: 2.66 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.988e-05/0.597, allocations: 27.66 kB / 1.392 GB, free: 2.633 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006798/0.5977, allocations: 359.2 kB / 1.392 GB, free: 2.277 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.5977, allocations: 12 kB / 1.392 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.5977, allocations: 4.062 kB / 1.392 GB, free: 2.262 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.5977, allocations: 7.984 kB / 1.392 GB, free: 2.254 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003861/0.5981, allocations: 360.9 kB / 1.393 GB, free: 1.852 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.5982, allocations: 4 kB / 1.393 GB, free: 1.848 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.5985, allocations: 71.91 kB / 1.393 GB, free: 1.777 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.5985, allocations: 8 kB / 1.393 GB, free: 1.77 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.5985, allocations: 19.98 kB / 1.393 GB, free: 1.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.5985, allocations: 4 kB / 1.393 GB, free: 1.746 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5985, allocations: 7.938 kB / 1.393 GB, free: 1.738 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007963/0.5993, allocations: 0.61 MB / 1.393 GB, free: 1.008 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.5995, allocations: 148.5 kB / 1.393 GB, free: 0.8438 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.381e-05/0.5996, allocations: 19.98 kB / 1.394 GB, free: 0.8242 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.5998, allocations: 35.98 kB / 1.394 GB, free: 0.7891 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.6, allocations: 47.94 kB / 1.394 GB, free: 0.7422 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/0.6, allocations: 23.98 kB / 1.394 GB, free: 0.7188 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.00014/0.6002, allocations: 135.2 kB / 1.394 GB, free: 0.5859 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.154e-06/0.6002, allocations: 3.938 kB / 1.394 GB, free: 0.582 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007609/0.6009, allocations: 227.6 kB / 1.394 GB, free: 368 kB / 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.000624/0.6016, allocations: 325 kB / 1.394 GB, free: 32 kB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006296/0.6022, allocations: 326.1 kB / 1.395 GB, free: 15.71 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.6022, allocations: 0 / 1.395 GB, free: 15.71 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000283/0.6025, allocations: 188.3 kB / 1.395 GB, free: 15.53 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.6027, allocations: 24.17 kB / 1.395 GB, free: 15.5 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009656/0.6037, allocations: 0.6366 MB / 1.395 GB, free: 14.81 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.604, allocations: 0.7691 MB / 1.396 GB, free: 14.01 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002282/0.6043, allocations: 54.88 kB / 1.396 GB, free: 13.96 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.6044, allocations: 47.41 kB / 1.396 GB, free: 13.91 MB / 0.9011 GB Notification: Performance of SimCode: time 2.6e-07/0.6044, allocations: 0 / 1.396 GB, free: 13.91 MB / 0.9011 GB Notification: Performance of Templates: time 0.008507/0.6129, allocations: 4.82 MB / 1.401 GB, free: 9.105 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches