Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.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.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_latest_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_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.32/2.32, allocations: 390.5 MB / 398 MB, free: 10.99 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.001517/0.001517, allocations: 184.2 kB / 491.2 MB, free: 1.586 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: 221.5 MB / 0.7868 GB, free: 13.33 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.001211/0.001211, allocations: 87.58 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.729e-05/2.748e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4192/0.4193, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.244/1.664, allocations: 150.1 MB / 1.359 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/1.664, allocations: 76.73 kB / 1.359 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03065/1.695, allocations: 10.48 MB / 1.369 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.733e-06/1.695, allocations: 0 / 1.369 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.511e-05/1.695, allocations: 7.844 kB / 1.369 GB, free: 32.74 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.00141/1.696, allocations: 0.62 MB / 1.37 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/1.696, allocations: 7.688 kB / 1.37 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/1.696, allocations: 22.03 kB / 1.37 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/1.696, allocations: 198.7 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/1.696, allocations: 3.844 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/1.697, allocations: 14.62 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002296/1.697, allocations: 86.61 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/1.697, allocations: 220.8 kB / 1.37 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/1.697, allocations: 3.938 kB / 1.37 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/1.697, allocations: 3.875 kB / 1.37 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/1.697, allocations: 3.844 kB / 1.37 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004469/1.698, allocations: 358.1 kB / 1.371 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/1.699, allocations: 482 kB / 1.371 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/1.699, allocations: 146.1 kB / 1.371 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.023e-05/1.699, allocations: 7.469 kB / 1.371 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/1.699, allocations: 306.1 kB / 1.372 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 2.975e-06/1.699, allocations: 7.75 kB / 1.372 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.002358/1.702, allocations: 0.5256 MB / 1.372 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.353e-05/1.702, allocations: 348.4 kB / 1.372 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/1.702, allocations: 151.8 kB / 1.373 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/1.702, allocations: 32.53 kB / 1.373 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/1.702, allocations: 97.14 kB / 1.373 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.762e-05/1.702, allocations: 104.1 kB / 1.373 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/1.702, allocations: 0 / 1.373 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001128/1.702, allocations: 333.3 kB / 1.373 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/1.703, allocations: 98.81 kB / 1.373 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/1.703, allocations: 146.3 kB / 1.373 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003061/1.706, allocations: 0.5082 MB / 1.374 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/1.706, allocations: 4 kB / 1.374 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.003343/1.709, allocations: 0.7131 MB / 1.375 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/1.709, allocations: 3.969 kB / 1.375 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/1.709, allocations: 0 / 1.375 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/1.709, allocations: 3.875 kB / 1.375 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/1.709, allocations: 65.81 kB / 1.375 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/1.71, allocations: 3.875 kB / 1.375 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/1.71, allocations: 51.78 kB / 1.375 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.042e-05/1.71, allocations: 17.7 kB / 1.375 GB, free: 29.85 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.0001778/1.71, allocations: 130.4 kB / 1.375 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.371e-05/1.71, allocations: 27.5 kB / 1.375 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006029/1.711, allocations: 334.4 kB / 1.375 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/1.711, allocations: 7.75 kB / 1.375 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/1.711, allocations: 3.969 kB / 1.375 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/1.711, allocations: 6.938 kB / 1.375 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003832/1.711, allocations: 295.8 kB / 1.375 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/1.711, allocations: 3.875 kB / 1.375 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/1.712, allocations: 76.59 kB / 1.376 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.077e-06/1.712, allocations: 7.828 kB / 1.376 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/1.712, allocations: 10.27 kB / 1.376 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/1.712, allocations: 3.844 kB / 1.376 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.712, allocations: 7.969 kB / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/1.714, allocations: 0.8125 MB / 1.376 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/1.714, allocations: 155.1 kB / 1.377 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/1.714, allocations: 11.33 kB / 1.377 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/1.715, allocations: 34.09 kB / 1.377 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/1.715, allocations: 47.23 kB / 1.377 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/1.715, allocations: 22.52 kB / 1.377 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001071/1.715, allocations: 124 kB / 1.377 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.1e-07/1.715, allocations: 3.938 kB / 1.377 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008404/1.716, allocations: 211.9 kB / 1.377 GB, free: 28.81 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.0007465/1.716, allocations: 329.7 kB / 1.377 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001917/1.718, allocations: 2.98 MB / 1.38 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.718, allocations: 0 / 1.38 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002397/1.719, allocations: 167.5 kB / 1.38 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/1.719, allocations: 15.81 kB / 1.38 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007557/1.72, allocations: 409.2 kB / 1.381 GB, free: 25.7 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/1.72, allocations: 0.7675 MB / 1.381 GB, free: 24.99 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000214/1.72, allocations: 46.03 kB / 1.382 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/1.72, allocations: 54.2 kB / 1.382 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of SimCode: time 3.31e-07/1.72, allocations: 0 / 1.382 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of Templates: time 0.007992/1.728, allocations: 4.822 MB / 1.386 GB, free: 23.88 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","../files/Buildings_latest_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