Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.1/package.mo): time 2.379/2.379, allocations: 248.6 MB / 255.9 MB, free: 7.121 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002449/0.002449, allocations: 182.8 kB / 315.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.928/1.928, allocations: 205.1 MB / 0.5658 GB, free: 328 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001266/0.001266, allocations: 102.9 kB / 0.67 GB, free: 5.535 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4777/0.479, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.6971, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6795/1.377, allocations: 133.5 MB / 1.014 GB, free: 6.742 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/1.377, allocations: 72.02 kB / 1.014 GB, free: 6.703 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Controls/OBC/CDL/Utilities/SunRiseSet.mo:54:7-54:32: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: 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.05819/1.435, allocations: 10.59 MB / 1.024 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/1.435, allocations: 8 kB / 1.024 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/1.435, allocations: 23.72 kB / 1.024 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/1.436, allocations: 190.6 kB / 1.024 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/1.436, allocations: 7.984 kB / 1.024 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.479e-05/1.436, allocations: 23.73 kB / 1.025 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004272/1.436, allocations: 87.22 kB / 1.025 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005022/1.437, allocations: 229.3 kB / 1.025 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/1.437, allocations: 0 / 1.025 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/1.437, allocations: 3.938 kB / 1.025 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/1.437, allocations: 4 kB / 1.025 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/1.438, allocations: 0.8907 MB / 1.026 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002701/1.441, allocations: 477.3 kB / 1.026 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003545/1.441, allocations: 135.3 kB / 1.026 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.999e-05/1.442, allocations: 19.23 kB / 1.026 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005492/1.442, allocations: 266.9 kB / 1.027 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 4.358e-06/1.442, allocations: 0 / 1.027 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.001268/1.443, allocations: 286.3 kB / 1.027 GB, free: 10.86 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00027/1.444, allocations: 353.8 kB / 1.027 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/1.444, allocations: 149.8 kB / 1.027 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.01e-05/1.444, allocations: 40.44 kB / 1.027 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.192e-05/1.444, allocations: 96.39 kB / 1.027 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/1.444, allocations: 111.7 kB / 1.028 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.451e-05/1.444, allocations: 4 kB / 1.028 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001674/1.444, allocations: 328.9 kB / 1.028 GB, free: 9.738 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003234/1.445, allocations: 88.42 kB / 1.028 GB, free: 9.684 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004028/1.445, allocations: 161.9 kB / 1.028 GB, free: 9.539 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008161/1.446, allocations: 144.2 kB / 1.028 GB, free: 9.426 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/1.446, allocations: 0 / 1.028 GB, free: 9.426 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001427/1.448, allocations: 367.5 kB / 1.029 GB, free: 9.121 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/1.448, allocations: 4 kB / 1.029 GB, free: 9.117 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/1.448, allocations: 8 kB / 1.029 GB, free: 9.109 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.667e-05/1.448, allocations: 4 kB / 1.029 GB, free: 9.105 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006505/1.448, allocations: 63.2 kB / 1.029 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/1.448, allocations: 7.938 kB / 1.029 GB, free: 9.039 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006667/1.449, allocations: 59.94 kB / 1.029 GB, free: 8.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.363e-05/1.449, allocations: 23.8 kB / 1.029 GB, free: 8.961 MB / 0.6511 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.0002082/1.449, allocations: 121.3 kB / 1.029 GB, free: 8.84 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.842e-05/1.449, allocations: 23.72 kB / 1.029 GB, free: 8.816 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/1.451, allocations: 330.6 kB / 1.029 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.015e-05/1.451, allocations: 8.188 kB / 1.029 GB, free: 8.547 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/1.451, allocations: 7.906 kB / 1.029 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/1.451, allocations: 11.97 kB / 1.029 GB, free: 8.527 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006506/1.451, allocations: 301.3 kB / 1.03 GB, free: 8.238 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/1.452, allocations: 4.438 kB / 1.03 GB, free: 8.234 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006505/1.452, allocations: 71.53 kB / 1.03 GB, free: 8.168 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.841e-05/1.452, allocations: 8 kB / 1.03 GB, free: 8.16 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/1.452, allocations: 11.98 kB / 1.03 GB, free: 8.148 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-05/1.452, allocations: 8 kB / 1.03 GB, free: 8.141 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.452, allocations: 3.938 kB / 1.03 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001436/1.454, allocations: 0.5654 MB / 1.03 GB, free: 7.539 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001572/1.455, allocations: 0.9467 MB / 1.031 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003907/1.456, allocations: 150.9 kB / 1.031 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001886/1.456, allocations: 8 kB / 1.031 GB, free: 6.395 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005505/1.457, allocations: 35.22 kB / 1.031 GB, free: 6.363 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/1.457, allocations: 53.91 kB / 1.031 GB, free: 6.316 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-05/1.457, allocations: 26.92 kB / 1.031 GB, free: 6.297 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001623/1.457, allocations: 124.7 kB / 1.031 GB, free: 6.188 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002419/1.459, allocations: 205.5 kB / 1.032 GB, free: 6 MB / 0.6511 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.0013/1.461, allocations: 303.2 kB / 1.032 GB, free: 5.699 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.003327/1.464, allocations: 2.977 MB / 1.035 GB, free: 2.711 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/1.464, allocations: 0 / 1.035 GB, free: 2.711 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000581/1.465, allocations: 167.5 kB / 1.035 GB, free: 2.582 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/1.465, allocations: 19.91 kB / 1.035 GB, free: 2.566 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/1.467, allocations: 409.6 kB / 1.035 GB, free: 2.168 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006598/1.468, allocations: 0.8107 MB / 1.036 GB, free: 1.336 MB / 0.6511 GB Notification: Performance of SimCode: time 4.008e-06/1.468, allocations: 4 kB / 1.036 GB, free: 1.332 MB / 0.6511 GB