Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_6_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 loadModel(Buildings): time 4.168/4.168, allocations: 433 MB / 440.3 MB, free: 4.785 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5631/4.731, allocations: 104.3 MB / 0.5319 GB, free: 13.02 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/4.999, allocations: 98.73 MB / 0.6283 GB, free: 9.742 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2937/5.293, allocations: 125.5 MB / 0.7509 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/5.294, allocations: 75.59 kB / 0.7509 GB, free: 12 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Controls/OBC/CDL/Utilities/SunRiseSet.mo:57:7-57: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.07255/5.366, allocations: 10.55 MB / 0.7612 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.383e-05/5.366, allocations: 8 kB / 0.7612 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/5.367, allocations: 23.72 kB / 0.7613 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/5.367, allocations: 182.8 kB / 0.7614 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/5.367, allocations: 4 kB / 0.7614 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/5.367, allocations: 15.98 kB / 0.7614 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005876/5.368, allocations: 91.97 kB / 0.7615 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007628/5.368, allocations: 235.5 kB / 0.7618 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/5.368, allocations: 4 kB / 0.7618 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.16e-05/5.368, allocations: 19.86 kB / 0.7618 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.961e-05/5.369, allocations: 7.906 kB / 0.7618 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/5.37, allocations: 0.8814 MB / 0.7627 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004108/5.374, allocations: 475.3 kB / 0.7631 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000538/5.375, allocations: 138.8 kB / 0.7632 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 8.13e-05/5.375, allocations: 11.94 kB / 0.7632 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008269/5.376, allocations: 263.8 kB / 0.7635 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 5.891e-06/5.376, allocations: 0 / 0.7635 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.00203/5.378, allocations: 281.1 kB / 0.7638 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003085/5.379, allocations: 358.2 kB / 0.7641 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/5.379, allocations: 152.9 kB / 0.7643 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001265/5.379, allocations: 33.7 kB / 0.7643 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/5.379, allocations: 101 kB / 0.7644 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/5.379, allocations: 110.5 kB / 0.7645 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/5.379, allocations: 0 / 0.7645 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002212/5.38, allocations: 338.8 kB / 0.7648 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004918/5.38, allocations: 88.98 kB / 0.7649 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00059/5.381, allocations: 158.8 kB / 0.765 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/5.382, allocations: 147.9 kB / 0.7652 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.368e-06/5.382, allocations: 0 / 0.7652 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002327/5.385, allocations: 365 kB / 0.7655 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/5.385, allocations: 4 kB / 0.7655 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/5.385, allocations: 0 / 0.7655 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.881e-05/5.385, allocations: 8 kB / 0.7655 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/5.386, allocations: 67.88 kB / 0.7656 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.09e-05/5.386, allocations: 11.84 kB / 0.7656 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/5.387, allocations: 51.72 kB / 0.7657 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/5.387, allocations: 20.36 kB / 0.7657 GB, free: 12.31 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.0003086/5.388, allocations: 124 kB / 0.7658 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/5.388, allocations: 23.72 kB / 0.7658 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00199/5.39, allocations: 330.4 kB / 0.7661 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.278e-05/5.39, allocations: 15.84 kB / 0.7662 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.029e-05/5.39, allocations: 11.94 kB / 0.7662 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-05/5.39, allocations: 7.984 kB / 0.7662 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009167/5.391, allocations: 294 kB / 0.7665 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/5.391, allocations: 0 / 0.7665 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/5.392, allocations: 76.28 kB / 0.7665 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.32e-05/5.392, allocations: 7.984 kB / 0.7665 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/5.392, allocations: 15.98 kB / 0.7666 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.692e-05/5.392, allocations: 8 kB / 0.7666 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-05/5.392, allocations: 7.938 kB / 0.7666 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002283/5.395, allocations: 0.5681 MB / 0.7671 GB, free: 10.67 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002441/5.397, allocations: 0.9434 MB / 0.7681 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005045/5.398, allocations: 148.6 kB / 0.7682 GB, free: 9.438 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/5.398, allocations: 4 kB / 0.7682 GB, free: 9.434 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007988/5.399, allocations: 39.97 kB / 0.7682 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/5.399, allocations: 51.78 kB / 0.7683 GB, free: 9.344 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/5.399, allocations: 20 kB / 0.7683 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002414/5.399, allocations: 127.2 kB / 0.7684 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.003026/5.402, allocations: 207.7 kB / 0.7686 GB, free: 8.996 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.001592/5.404, allocations: 308.7 kB / 0.7689 GB, free: 8.684 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.004125/5.408, allocations: 2.969 MB / 0.7718 GB, free: 5.613 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/5.408, allocations: 4.219 kB / 0.7718 GB, free: 5.609 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008755/5.409, allocations: 164.5 kB / 0.772 GB, free: 5.449 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004718/5.41, allocations: 16.17 kB / 0.772 GB, free: 5.434 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/5.412, allocations: 414.9 kB / 0.7724 GB, free: 4.977 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/5.413, allocations: 0.8153 MB / 0.7732 GB, free: 4.137 MB / 0.6511 GB Notification: Performance of SimCode: time 6.672e-06/5.413, allocations: 0 / 0.7732 GB, free: 4.137 MB / 0.6511 GB