Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.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.SunRiseSetNegativeStartTime,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime",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.701/2.701, allocations: 248.6 MB / 255.9 MB, free: 352 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002648/0.002647, allocations: 180.1 kB / 315.1 MB, free: 7.758 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.524/2.524, allocations: 205.1 MB / 0.5658 GB, free: 25.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001865/0.001865, allocations: 87.44 kB / 0.67 GB, free: 3.004 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2883/0.2902, allocations: 112.4 MB / 0.7797 GB, free: 2.52 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5369/0.8271, allocations: 106.2 MB / 0.8835 GB, free: 77.29 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2162/1.043, allocations: 132.5 MB / 1.013 GB, free: 8.609 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/1.044, allocations: 79.89 kB / 1.013 GB, free: 8.531 MB / 0.6667 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.06198/1.106, allocations: 10.58 MB / 1.023 GB, free: 13.9 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/1.106, allocations: 8 kB / 1.023 GB, free: 13.89 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/1.106, allocations: 27.7 kB / 1.023 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/1.106, allocations: 186.7 kB / 1.023 GB, free: 13.64 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/1.106, allocations: 8 kB / 1.023 GB, free: 13.63 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.134e-05/1.106, allocations: 12 kB / 1.023 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004268/1.107, allocations: 95.81 kB / 1.024 GB, free: 13.53 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/1.107, allocations: 225.7 kB / 1.024 GB, free: 13.27 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/1.107, allocations: 0 / 1.024 GB, free: 13.27 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.858e-05/1.107, allocations: 4 kB / 1.024 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/1.107, allocations: 8 kB / 1.024 GB, free: 13.25 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/1.109, allocations: 0.8973 MB / 1.025 GB, free: 12.28 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002897/1.112, allocations: 471.4 kB / 1.025 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/1.112, allocations: 142.7 kB / 1.025 GB, free: 11.54 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 6.343e-05/1.112, allocations: 11.92 kB / 1.025 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005513/1.113, allocations: 263.8 kB / 1.026 GB, free: 11.21 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=40): time 4.048e-06/1.113, allocations: 0 / 1.026 GB, free: 11.21 MB / 0.6823 GB Notification: Performance of matching and sorting (n=40): time 0.001302/1.114, allocations: 289.1 kB / 1.026 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002158/1.114, allocations: 358.2 kB / 1.026 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/1.115, allocations: 152.5 kB / 1.026 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001124/1.115, allocations: 33.7 kB / 1.026 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.889e-05/1.115, allocations: 100.9 kB / 1.026 GB, free: 10.19 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000158/1.115, allocations: 114.4 kB / 1.027 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/1.115, allocations: 3.938 kB / 1.027 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001666/1.115, allocations: 330.8 kB / 1.027 GB, free: 9.738 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003418/1.115, allocations: 88.98 kB / 1.027 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004114/1.116, allocations: 162.8 kB / 1.027 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008361/1.117, allocations: 139.8 kB / 1.027 GB, free: 9.332 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/1.117, allocations: 0 / 1.027 GB, free: 9.332 MB / 0.6823 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00156/1.118, allocations: 364.9 kB / 1.028 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/1.118, allocations: 6.812 kB / 1.028 GB, free: 8.965 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/1.118, allocations: 4 kB / 1.028 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/1.119, allocations: 8 kB / 1.028 GB, free: 8.953 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/1.119, allocations: 63.89 kB / 1.028 GB, free: 8.891 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/1.119, allocations: 4 kB / 1.028 GB, free: 8.887 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006735/1.12, allocations: 59.56 kB / 1.028 GB, free: 8.828 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.138e-05/1.12, allocations: 23.98 kB / 1.028 GB, free: 8.805 MB / 0.6823 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.0002244/1.12, allocations: 128.2 kB / 1.028 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/1.12, allocations: 23.72 kB / 1.028 GB, free: 8.648 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/1.122, allocations: 330.2 kB / 1.028 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.251e-05/1.122, allocations: 8 kB / 1.028 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/1.122, allocations: 7.906 kB / 1.028 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/1.122, allocations: 4 kB / 1.028 GB, free: 8.301 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006369/1.122, allocations: 298.2 kB / 1.028 GB, free: 7.973 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/1.122, allocations: 8 kB / 1.029 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006675/1.123, allocations: 75.84 kB / 1.029 GB, free: 7.891 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.807e-05/1.123, allocations: 8 kB / 1.029 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.075e-05/1.123, allocations: 11.98 kB / 1.029 GB, free: 7.871 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.951e-05/1.123, allocations: 8 kB / 1.029 GB, free: 7.863 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/1.123, allocations: 4 kB / 1.029 GB, free: 7.859 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001518/1.125, allocations: 0.5641 MB / 1.029 GB, free: 7.176 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001596/1.126, allocations: 0.9473 MB / 1.03 GB, free: 6.105 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/1.127, allocations: 144.5 kB / 1.03 GB, free: 5.945 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.838e-05/1.127, allocations: 11.98 kB / 1.03 GB, free: 5.934 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005328/1.127, allocations: 31.98 kB / 1.03 GB, free: 5.902 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/1.128, allocations: 51.78 kB / 1.03 GB, free: 5.852 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.11e-05/1.128, allocations: 23.98 kB / 1.03 GB, free: 5.828 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001704/1.128, allocations: 127.8 kB / 1.03 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001911/1.13, allocations: 207.7 kB / 1.031 GB, free: 5.5 MB / 0.6823 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.001109/1.131, allocations: 310.3 kB / 1.031 GB, free: 5.188 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002983/1.134, allocations: 2.97 MB / 1.034 GB, free: 2.117 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/1.134, allocations: 192 / 1.034 GB, free: 2.117 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005958/1.135, allocations: 169 kB / 1.034 GB, free: 1.953 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/1.135, allocations: 25.05 kB / 1.034 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/1.137, allocations: 407.1 kB / 1.034 GB, free: 1.477 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006941/1.137, allocations: 0.8152 MB / 1.035 GB, free: 0.6328 MB / 0.6823 GB Notification: Performance of SimCode: time 2.194e-06/1.137, allocations: 4 kB / 1.035 GB, free: 0.6289 MB / 0.6823 GB