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.194/2.194, allocations: 390.5 MB / 398 MB, free: 10.93 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.001201/0.001201, allocations: 176.9 kB / 491.2 MB, free: 1.602 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.823/1.823, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0009647/0.0009646, allocations: 95.52 kB / 0.9269 GB, free: 13.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.136e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3328, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.11/1.443, allocations: 150.1 MB / 1.359 GB, free: 17.6 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/1.443, allocations: 68.33 kB / 1.359 GB, free: 17.6 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03154/1.475, allocations: 10.49 MB / 1.369 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.212e-06/1.475, allocations: 0 / 1.369 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.131e-05/1.475, allocations: 3.875 kB / 1.369 GB, free: 32.73 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.001238/1.476, allocations: 0.6275 MB / 1.37 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/1.476, allocations: 7.625 kB / 1.37 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.069e-05/1.476, allocations: 19.5 kB / 1.37 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/1.477, allocations: 197.6 kB / 1.37 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/1.477, allocations: 3.812 kB / 1.37 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/1.477, allocations: 15.53 kB / 1.37 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002016/1.477, allocations: 87.02 kB / 1.37 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/1.477, allocations: 221 kB / 1.37 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/1.477, allocations: 0 / 1.37 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/1.477, allocations: 10.77 kB / 1.37 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/1.477, allocations: 7.812 kB / 1.37 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003509/1.478, allocations: 352.9 kB / 1.371 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/1.479, allocations: 473.8 kB / 1.371 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/1.479, allocations: 148 kB / 1.371 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.575e-05/1.479, allocations: 14.78 kB / 1.371 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000345/1.479, allocations: 297.2 kB / 1.372 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 1.793e-06/1.479, allocations: 0 / 1.372 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.002349/1.482, allocations: 0.5329 MB / 1.372 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.571e-05/1.482, allocations: 352 kB / 1.372 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/1.482, allocations: 153.5 kB / 1.373 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.476e-05/1.482, allocations: 29.61 kB / 1.373 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.067e-05/1.482, allocations: 94.5 kB / 1.373 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.75e-05/1.482, allocations: 107.9 kB / 1.373 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.151e-05/1.482, allocations: 4.125 kB / 1.373 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001071/1.482, allocations: 337.4 kB / 1.373 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/1.482, allocations: 99.09 kB / 1.373 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/1.483, allocations: 142 kB / 1.373 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/1.486, allocations: 0.5063 MB / 1.374 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/1.486, allocations: 0 / 1.374 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.003302/1.489, allocations: 0.711 MB / 1.375 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/1.489, allocations: 11.66 kB / 1.375 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/1.489, allocations: 0 / 1.375 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-05/1.489, allocations: 3.844 kB / 1.375 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/1.49, allocations: 65.88 kB / 1.375 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/1.49, allocations: 1.094 kB / 1.375 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/1.49, allocations: 51.11 kB / 1.375 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.224e-05/1.49, allocations: 21.64 kB / 1.375 GB, free: 29.84 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.0001859/1.49, allocations: 130.5 kB / 1.375 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.781e-05/1.49, allocations: 26.97 kB / 1.375 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006225/1.491, allocations: 325.2 kB / 1.375 GB, free: 29.63 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/1.491, allocations: 11.75 kB / 1.375 GB, free: 29.63 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/1.491, allocations: 3.875 kB / 1.375 GB, free: 29.63 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/1.491, allocations: 6.891 kB / 1.375 GB, free: 29.63 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003573/1.491, allocations: 297.3 kB / 1.375 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/1.491, allocations: 0 / 1.375 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002737/1.492, allocations: 78.2 kB / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.648e-06/1.492, allocations: 10.45 kB / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/1.492, allocations: 13.95 kB / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/1.492, allocations: 7.844 kB / 1.376 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/1.492, allocations: 3.969 kB / 1.376 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/1.494, allocations: 0.8168 MB / 1.376 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001623/1.494, allocations: 155 kB / 1.377 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/1.494, allocations: 7.797 kB / 1.377 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/1.495, allocations: 29.92 kB / 1.377 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/1.495, allocations: 54.86 kB / 1.377 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/1.495, allocations: 22.56 kB / 1.377 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001268/1.495, allocations: 113.9 kB / 1.377 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.495, allocations: 0 / 1.377 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006887/1.496, allocations: 215.8 kB / 1.377 GB, free: 28.8 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.0005203/1.496, allocations: 321.9 kB / 1.377 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00168/1.498, allocations: 2.995 MB / 1.38 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.498, allocations: 0 / 1.38 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000222/1.498, allocations: 163.5 kB / 1.38 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/1.498, allocations: 15.48 kB / 1.38 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008227/1.499, allocations: 403.5 kB / 1.381 GB, free: 25.69 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/1.499, allocations: 0.7691 MB / 1.381 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002134/1.5, allocations: 47.34 kB / 1.382 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/1.5, allocations: 43.27 kB / 1.382 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of SimCode: time 9.82e-07/1.5, allocations: 0 / 1.382 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of Templates: time 0.009171/1.509, allocations: 4.842 MB / 1.386 GB, free: 23.87 MB / 0.8386 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