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.311/2.311, allocations: 390.3 MB / 402.8 MB, free: 6.68 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.001693/0.001693, allocations: 168.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.707/1.707, allocations: 221.3 MB / 0.7915 GB, free: 5.371 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.0008774/0.0008775, allocations: 103.4 kB / 0.9317 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.689e-05/4.692e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3508, allocations: 143 MB / 1.219 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.063/1.414, allocations: 150.8 MB / 1.366 GB, free: 3.219 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/1.414, allocations: 67.34 kB / 1.366 GB, free: 3.184 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03435/1.449, allocations: 10.52 MB / 1.376 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.645e-06/1.449, allocations: 4 kB / 1.376 GB, free: 10.26 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.52e-05/1.449, allocations: 4 kB / 1.376 GB, free: 10.26 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.001654/1.451, allocations: 0.6233 MB / 1.377 GB, free: 9.602 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/1.451, allocations: 8.031 kB / 1.377 GB, free: 9.594 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/1.451, allocations: 19.81 kB / 1.377 GB, free: 9.574 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/1.451, allocations: 195.4 kB / 1.377 GB, free: 9.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/1.451, allocations: 129.7 kB / 1.377 GB, free: 9.195 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.903e-05/1.451, allocations: 18.98 kB / 1.377 GB, free: 9.18 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/1.452, allocations: 239 kB / 1.378 GB, free: 8.941 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/1.452, allocations: 3.938 kB / 1.378 GB, free: 8.938 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/1.452, allocations: 7.188 kB / 1.378 GB, free: 8.934 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/1.452, allocations: 4 kB / 1.378 GB, free: 8.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/1.452, allocations: 111.9 kB / 1.378 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005628/1.453, allocations: 388.5 kB / 1.378 GB, free: 8.445 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/1.454, allocations: 0.4895 MB / 1.378 GB, free: 7.898 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/1.454, allocations: 152.4 kB / 1.379 GB, free: 7.742 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.67e-05/1.454, allocations: 11.92 kB / 1.379 GB, free: 7.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004858/1.455, allocations: 319.5 kB / 1.379 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 3.106e-06/1.455, allocations: 0 / 1.379 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.0007236/1.456, allocations: 314.5 kB / 1.379 GB, free: 7.16 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002157/1.456, allocations: 353.6 kB / 1.38 GB, free: 6.738 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/1.456, allocations: 159.7 kB / 1.38 GB, free: 6.59 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/1.456, allocations: 40.52 kB / 1.38 GB, free: 6.555 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/1.456, allocations: 100.2 kB / 1.38 GB, free: 6.461 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.000118/1.456, allocations: 109.3 kB / 1.38 GB, free: 6.371 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/1.456, allocations: 10.5 kB / 1.38 GB, free: 6.367 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001565/1.457, allocations: 336.5 kB / 1.38 GB, free: 6.039 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/1.457, allocations: 106.7 kB / 1.38 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002378/1.457, allocations: 152.9 kB / 1.381 GB, free: 5.848 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/1.457, allocations: 112.8 kB / 1.381 GB, free: 5.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/1.457, allocations: 0 / 1.381 GB, free: 5.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006636/1.458, allocations: 361.6 kB / 1.381 GB, free: 5.492 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/1.458, allocations: 5.25 kB / 1.381 GB, free: 5.488 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/1.458, allocations: 0 / 1.381 GB, free: 5.488 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.839e-05/1.458, allocations: 7.984 kB / 1.381 GB, free: 5.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/1.458, allocations: 75.45 kB / 1.381 GB, free: 5.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.742e-05/1.458, allocations: 1.172 kB / 1.381 GB, free: 5.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/1.459, allocations: 66.59 kB / 1.381 GB, free: 5.352 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.265e-05/1.459, allocations: 19.55 kB / 1.381 GB, free: 5.336 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): 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.0001658/1.459, allocations: 137.7 kB / 1.381 GB, free: 5.211 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.592e-05/1.459, allocations: 23.72 kB / 1.381 GB, free: 5.188 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007741/1.46, allocations: 369.7 kB / 1.382 GB, free: 4.898 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/1.46, allocations: 8 kB / 1.382 GB, free: 4.891 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/1.46, allocations: 4 kB / 1.382 GB, free: 4.887 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/1.46, allocations: 7.984 kB / 1.382 GB, free: 4.879 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004717/1.46, allocations: 342.3 kB / 1.382 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/1.46, allocations: 4 kB / 1.382 GB, free: 4.547 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/1.461, allocations: 79.52 kB / 1.382 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.324e-05/1.461, allocations: 4 kB / 1.382 GB, free: 4.469 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.029e-05/1.461, allocations: 14.31 kB / 1.382 GB, free: 4.461 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.148e-05/1.461, allocations: 11.92 kB / 1.382 GB, free: 4.449 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.461, allocations: 4 kB / 1.382 GB, free: 4.445 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008842/1.462, allocations: 0.6005 MB / 1.383 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/1.462, allocations: 155.2 kB / 1.383 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/1.462, allocations: 10.81 kB / 1.383 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/1.462, allocations: 43.16 kB / 1.383 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/1.462, allocations: 50.06 kB / 1.383 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.721e-05/1.462, allocations: 27.38 kB / 1.383 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001099/1.463, allocations: 123.4 kB / 1.383 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.463, allocations: 0 / 1.383 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008169/1.463, allocations: 232.6 kB / 1.383 GB, free: 3.242 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.0009211/1.464, allocations: 337 kB / 1.384 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007074/1.465, allocations: 310.8 kB / 1.384 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.465, allocations: 0 / 1.384 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003503/1.465, allocations: 182.8 kB / 1.384 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/1.466, allocations: 33.06 kB / 1.384 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/1.467, allocations: 431.2 kB / 1.385 GB, free: 2.121 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005148/1.467, allocations: 0.765 MB / 1.385 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002854/1.468, allocations: 55.86 kB / 1.385 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/1.468, allocations: 43.03 kB / 1.385 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of SimCode: time 1.413e-06/1.468, allocations: 0 / 1.385 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of Templates: time 0.01263/1.48, allocations: 4.823 MB / 1.39 GB, free: 12.45 MB / 0.8542 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