Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.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.SunRiseSet,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",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.291/2.291, allocations: 248.6 MB / 255.9 MB, free: 7.113 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.001666/0.001665, allocations: 193.2 kB / 315.1 MB, free: 4.27 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.894/1.894, allocations: 205.1 MB / 0.5658 GB, free: 368 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.001293/0.001293, allocations: 86.72 kB / 0.67 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5043/0.5056, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.738, allocations: 106.3 MB / 0.8835 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7287/1.467, allocations: 133.5 MB / 1.014 GB, free: 6.656 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/1.467, allocations: 63.84 kB / 1.014 GB, free: 6.625 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.06844/1.536, allocations: 10.59 MB / 1.024 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/1.536, allocations: 8 kB / 1.024 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/1.536, allocations: 23.72 kB / 1.024 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/1.536, allocations: 186.7 kB / 1.024 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/1.536, allocations: 11.98 kB / 1.024 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.244e-05/1.536, allocations: 15.25 kB / 1.024 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000398/1.536, allocations: 87.47 kB / 1.025 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006379/1.537, allocations: 228.2 kB / 1.025 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/1.537, allocations: 3.938 kB / 1.025 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.518e-05/1.537, allocations: 7.984 kB / 1.025 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/1.537, allocations: 4 kB / 1.025 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/1.538, allocations: 0.902 MB / 1.026 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002627/1.541, allocations: 471.9 kB / 1.026 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003737/1.542, allocations: 141.6 kB / 1.026 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.657e-05/1.542, allocations: 11.88 kB / 1.026 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005052/1.542, allocations: 265.1 kB / 1.027 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 3.316e-06/1.542, allocations: 0 / 1.027 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.001221/1.543, allocations: 286.2 kB / 1.027 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001942/1.544, allocations: 350.1 kB / 1.027 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/1.544, allocations: 160.4 kB / 1.027 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.531e-05/1.544, allocations: 32.58 kB / 1.027 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.761e-05/1.544, allocations: 100.4 kB / 1.027 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/1.544, allocations: 106.2 kB / 1.028 GB, free: 9.98 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/1.544, allocations: 0 / 1.028 GB, free: 9.98 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001539/1.544, allocations: 333.9 kB / 1.028 GB, free: 9.656 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003202/1.545, allocations: 87.73 kB / 1.028 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004133/1.545, allocations: 165 kB / 1.028 GB, free: 9.453 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007885/1.546, allocations: 138.3 kB / 1.028 GB, free: 9.344 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/1.546, allocations: 0 / 1.028 GB, free: 9.344 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001422/1.547, allocations: 365.6 kB / 1.029 GB, free: 9.039 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/1.547, allocations: 7.984 kB / 1.029 GB, free: 9.031 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/1.547, allocations: 4 kB / 1.029 GB, free: 9.027 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/1.547, allocations: 4 kB / 1.029 GB, free: 9.023 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006537/1.548, allocations: 71.33 kB / 1.029 GB, free: 8.957 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/1.548, allocations: 7.938 kB / 1.029 GB, free: 8.949 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006814/1.549, allocations: 55.56 kB / 1.029 GB, free: 8.895 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.157e-05/1.549, allocations: 27.11 kB / 1.029 GB, free: 8.875 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.000196/1.549, allocations: 116 kB / 1.029 GB, free: 8.754 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.998e-05/1.549, allocations: 27.09 kB / 1.029 GB, free: 8.73 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001275/1.551, allocations: 327.5 kB / 1.029 GB, free: 8.469 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/1.551, allocations: 12 kB / 1.029 GB, free: 8.457 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/1.551, allocations: 7.906 kB / 1.029 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/1.551, allocations: 4.172 kB / 1.029 GB, free: 8.445 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006108/1.551, allocations: 296.7 kB / 1.029 GB, free: 8.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/1.551, allocations: 4 kB / 1.029 GB, free: 8.156 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007253/1.552, allocations: 79.22 kB / 1.03 GB, free: 8.082 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.719e-05/1.552, allocations: 7.984 kB / 1.03 GB, free: 8.074 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.657e-05/1.552, allocations: 15.92 kB / 1.03 GB, free: 8.062 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.728e-06/1.552, allocations: 4.375 kB / 1.03 GB, free: 8.059 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.024e-05/1.552, allocations: 7.938 kB / 1.03 GB, free: 8.051 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001405/1.554, allocations: 0.5637 MB / 1.03 GB, free: 7.453 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001595/1.555, allocations: 0.9476 MB / 1.031 GB, free: 6.473 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004836/1.556, allocations: 152.2 kB / 1.031 GB, free: 6.312 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/1.556, allocations: 11.31 kB / 1.031 GB, free: 6.305 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009414/1.557, allocations: 39.97 kB / 1.031 GB, free: 6.266 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/1.557, allocations: 48.59 kB / 1.031 GB, free: 6.227 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.589e-05/1.557, allocations: 23.67 kB / 1.031 GB, free: 6.207 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001658/1.557, allocations: 123.2 kB / 1.031 GB, free: 6.102 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001895/1.559, allocations: 213.8 kB / 1.032 GB, free: 5.906 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.001084/1.56, allocations: 300.9 kB / 1.032 GB, free: 5.609 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002779/1.563, allocations: 2.974 MB / 1.035 GB, free: 2.617 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.563, allocations: 0 / 1.035 GB, free: 2.617 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000541/1.564, allocations: 165.2 kB / 1.035 GB, free: 2.492 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/1.564, allocations: 23.23 kB / 1.035 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/1.567, allocations: 403.7 kB / 1.035 GB, free: 2.082 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/1.568, allocations: 0.8221 MB / 1.036 GB, free: 1.238 MB / 0.6511 GB Notification: Performance of SimCode: time 1.883e-06/1.568, allocations: 0 / 1.036 GB, free: 1.238 MB / 0.6511 GB