Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.305/1.305, allocations: 285.5 MB / 292.8 MB, free: 10.49 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009421/0.0009421, allocations: 169.3 kB / 361.1 MB, free: 7.129 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.022/1.022, allocations: 205.1 MB / 0.6195 GB, free: 10.34 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000769/0.0007691, allocations: 86.36 kB / 0.7326 GB, free: 44.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.51e-06/5.52e-06, allocations: 0 / 0.8511 GB, free: 3.008 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4182/0.4182, allocations: 115.3 MB / 0.9637 GB, free: 78.42 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.5517, allocations: 138 MB / 1.098 GB, free: 2.047 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.5519, allocations: 68.86 kB / 1.099 GB, free: 1.98 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Controls/OBC/CDL/Utilities/SunRiseSet.mo:122:7-122:30:writable] Warning: timDif was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.03251/0.5844, allocations: 9.689 MB / 1.108 GB, free: 8.379 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.336e-06/0.5845, allocations: 4 kB / 1.108 GB, free: 8.375 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.001058/0.5855, allocations: 0.6224 MB / 1.109 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.5856, allocations: 8.031 kB / 1.109 GB, free: 7.699 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.365e-05/0.5856, allocations: 19.81 kB / 1.109 GB, free: 7.68 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.5858, allocations: 182.8 kB / 1.109 GB, free: 7.461 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.5858, allocations: 15.89 kB / 1.109 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.5858, allocations: 12 kB / 1.109 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002204/0.5861, allocations: 87.97 kB / 1.109 GB, free: 7.348 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.5864, allocations: 235 kB / 1.109 GB, free: 7.078 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.5864, allocations: 3.938 kB / 1.109 GB, free: 7.074 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.5864, allocations: 4 kB / 1.109 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.5864, allocations: 8 kB / 1.109 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006706/0.5871, allocations: 0.8857 MB / 1.11 GB, free: 6.102 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.5885, allocations: 479.6 kB / 1.11 GB, free: 5.523 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.5887, allocations: 142.4 kB / 1.111 GB, free: 5.348 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.5887, allocations: 11.91 kB / 1.111 GB, free: 5.336 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.589, allocations: 261.5 kB / 1.111 GB, free: 5.023 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=40): time 2.084e-06/0.589, allocations: 0 / 1.111 GB, free: 5.023 MB / 0.7136 GB Notification: Performance of matching and sorting (n=40): time 0.0006664/0.5897, allocations: 285 kB / 1.111 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.5898, allocations: 354.2 kB / 1.111 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.59, allocations: 154.3 kB / 1.112 GB, free: 4.152 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.59, allocations: 33.69 kB / 1.112 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.629e-05/0.5901, allocations: 96.95 kB / 1.112 GB, free: 4.012 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.377e-05/0.5902, allocations: 114.4 kB / 1.112 GB, free: 3.898 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.5902, allocations: 4 kB / 1.112 GB, free: 3.895 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.5903, allocations: 327.6 kB / 1.112 GB, free: 3.566 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.5905, allocations: 92.98 kB / 1.112 GB, free: 3.473 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.5907, allocations: 158.8 kB / 1.112 GB, free: 3.297 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.5911, allocations: 147.2 kB / 1.113 GB, free: 3.156 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.5911, allocations: 0 / 1.113 GB, free: 3.156 MB / 0.7136 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007673/0.5919, allocations: 363.9 kB / 1.113 GB, free: 2.797 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.5919, allocations: 8 kB / 1.113 GB, free: 2.789 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.5919, allocations: 4 kB / 1.113 GB, free: 2.785 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.5919, allocations: 4 kB / 1.113 GB, free: 2.781 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.5922, allocations: 63.89 kB / 1.113 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.5923, allocations: 7.938 kB / 1.113 GB, free: 2.711 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.5926, allocations: 56.22 kB / 1.113 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.5926, allocations: 23.98 kB / 1.113 GB, free: 2.633 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition2,$whenCondition1,$PRE.sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition4,$whenCondition3,$PRE.sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition6,$whenCondition5,$PRE.sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition8,$whenCondition7,$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.0001024/0.5928, allocations: 126.1 kB / 1.113 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.12e-05/0.5928, allocations: 19.81 kB / 1.113 GB, free: 2.484 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006616/0.5935, allocations: 337.5 kB / 1.114 GB, free: 2.156 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.5935, allocations: 12 kB / 1.114 GB, free: 2.145 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5935, allocations: 0.75 kB / 1.114 GB, free: 2.145 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.5935, allocations: 11.98 kB / 1.114 GB, free: 2.133 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003123/0.5938, allocations: 301.6 kB / 1.114 GB, free: 1.801 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5939, allocations: 4 kB / 1.114 GB, free: 1.797 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002969/0.5942, allocations: 71.84 kB / 1.114 GB, free: 1.727 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.511e-05/0.5942, allocations: 11.98 kB / 1.114 GB, free: 1.715 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.82e-05/0.5942, allocations: 12 kB / 1.114 GB, free: 1.703 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.5942, allocations: 4 kB / 1.114 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/0.5942, allocations: 8.688 kB / 1.114 GB, free: 1.691 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007261/0.595, allocations: 0.5736 MB / 1.114 GB, free: 1 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.5951, allocations: 148.6 kB / 1.115 GB, free: 0.8359 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.529e-05/0.5952, allocations: 4 kB / 1.115 GB, free: 0.832 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.5955, allocations: 35.97 kB / 1.115 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.904e-05/0.5956, allocations: 43.94 kB / 1.115 GB, free: 0.7539 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.131e-05/0.5956, allocations: 23.98 kB / 1.115 GB, free: 0.7305 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.899e-05/0.5957, allocations: 123.8 kB / 1.115 GB, free: 0.6094 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000492/0.5962, allocations: 204.5 kB / 1.115 GB, free: 420 kB / 0.7136 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,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp,$whenCondition6,$whenCondition5,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition4,$whenCondition3,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition2,$whenCondition1,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp) * Number of discrete states: 8 (sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.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.0004665/0.5966, allocations: 312.5 kB / 1.115 GB, free: 100 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001594/0.5982, allocations: 2.966 MB / 1.118 GB, free: 13.04 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.5983, allocations: 0 / 1.118 GB, free: 13.04 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.5985, allocations: 169 kB / 1.118 GB, free: 12.87 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.5987, allocations: 16.09 kB / 1.118 GB, free: 12.86 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000804/0.5995, allocations: 419.6 kB / 1.119 GB, free: 12.39 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004078/0.5999, allocations: 0.8208 MB / 1.12 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of SimCode: time 2.9e-07/0.5999, allocations: 4 kB / 1.12 GB, free: 11.54 MB / 0.7292 GB Notification: Performance of Templates: time 0.008126/0.608, allocations: 5.128 MB / 1.125 GB, free: 6.512 MB / 0.7292 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)