Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.118/2.118, allocations: 284.8 MB / 292.1 MB, free: 1.125 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001572/0.001572, allocations: 188.7 kB / 360.3 MB, free: 15.55 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.1 MB / 0.6187 GB, free: 6.348 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001231/0.001231, allocations: 91.09 kB / 0.7317 GB, free: 47.14 MB / 0.5184 GB Notification: Performance of FrontEnd - loaded program: time 0.2488/0.2501, allocations: 121.4 MB / 0.8502 GB, free: 13.31 MB / 0.5965 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5592/0.8093, allocations: 115.2 MB / 0.9628 GB, free: 86.17 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2053/1.015, allocations: 137.8 MB / 1.097 GB, free: 12.27 MB / 0.7059 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/1.015, allocations: 65 kB / 1.097 GB, free: 12.2 MB / 0.7059 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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: 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.05633/1.071, allocations: 10.32 MB / 1.107 GB, free: 1.895 MB / 0.7059 GB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/1.071, allocations: 8 kB / 1.107 GB, free: 1.887 MB / 0.7059 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.462e-05/1.071, allocations: 20.75 kB / 1.108 GB, free: 1.867 MB / 0.7059 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/1.072, allocations: 186.8 kB / 1.108 GB, free: 1.645 MB / 0.7059 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/1.072, allocations: 7.906 kB / 1.108 GB, free: 1.637 MB / 0.7059 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.673e-05/1.072, allocations: 16 kB / 1.108 GB, free: 1.621 MB / 0.7059 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003784/1.072, allocations: 91.91 kB / 1.108 GB, free: 1.531 MB / 0.7059 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/1.073, allocations: 227.3 kB / 1.108 GB, free: 1.27 MB / 0.7059 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/1.073, allocations: 4 kB / 1.108 GB, free: 1.266 MB / 0.7059 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/1.073, allocations: 3.984 kB / 1.108 GB, free: 1.262 MB / 0.7059 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/1.073, allocations: 4 kB / 1.108 GB, free: 1.258 MB / 0.7059 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009853/1.074, allocations: 0.8897 MB / 1.109 GB, free: 300 kB / 0.7059 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/1.076, allocations: 484.8 kB / 1.109 GB, free: 15.71 MB / 0.7215 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/1.077, allocations: 138.6 kB / 1.109 GB, free: 15.54 MB / 0.7215 GB Notification: Performance of preOpt evalFunc (simulation): time 5.158e-05/1.077, allocations: 15.89 kB / 1.11 GB, free: 15.52 MB / 0.7215 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004958/1.077, allocations: 269.9 kB / 1.11 GB, free: 15.2 MB / 0.7215 GB Notification: Performance of pre-optimization done (n=40): time 2.745e-06/1.077, allocations: 0 / 1.11 GB, free: 15.2 MB / 0.7215 GB Notification: Performance of matching and sorting (n=40): time 0.001131/1.078, allocations: 282.8 kB / 1.11 GB, free: 14.92 MB / 0.7215 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001943/1.079, allocations: 354.2 kB / 1.11 GB, free: 14.5 MB / 0.7215 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/1.079, allocations: 152.4 kB / 1.111 GB, free: 14.34 MB / 0.7215 GB Notification: Performance of collectPreVariables (initialization): time 6.572e-05/1.079, allocations: 33.7 kB / 1.111 GB, free: 14.3 MB / 0.7215 GB Notification: Performance of collectInitialEqns (initialization): time 7.744e-05/1.079, allocations: 104.9 kB / 1.111 GB, free: 14.19 MB / 0.7215 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/1.079, allocations: 110.5 kB / 1.111 GB, free: 14.08 MB / 0.7215 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.114e-05/1.079, allocations: 0 / 1.111 GB, free: 14.08 MB / 0.7215 GB Notification: Performance of setup shared object (initialization): time 0.0001579/1.079, allocations: 334.8 kB / 1.111 GB, free: 13.75 MB / 0.7215 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003214/1.08, allocations: 88.98 kB / 1.111 GB, free: 13.66 MB / 0.7215 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/1.08, allocations: 158.8 kB / 1.111 GB, free: 13.48 MB / 0.7215 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007263/1.081, allocations: 143.1 kB / 1.111 GB, free: 13.34 MB / 0.7215 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/1.081, allocations: 0 / 1.111 GB, free: 13.34 MB / 0.7215 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001374/1.082, allocations: 370.9 kB / 1.112 GB, free: 12.97 MB / 0.7215 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/1.082, allocations: 4 kB / 1.112 GB, free: 12.97 MB / 0.7215 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/1.082, allocations: 8 kB / 1.112 GB, free: 12.96 MB / 0.7215 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/1.082, allocations: 4 kB / 1.112 GB, free: 12.96 MB / 0.7215 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006227/1.083, allocations: 64.83 kB / 1.112 GB, free: 12.89 MB / 0.7215 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/1.083, allocations: 6.109 kB / 1.112 GB, free: 12.89 MB / 0.7215 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006707/1.084, allocations: 55.66 kB / 1.112 GB, free: 12.84 MB / 0.7215 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.332e-05/1.084, allocations: 23.98 kB / 1.112 GB, free: 12.81 MB / 0.7215 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.0001831/1.084, allocations: 123.9 kB / 1.112 GB, free: 12.68 MB / 0.7215 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.49e-05/1.084, allocations: 29.61 kB / 1.112 GB, free: 12.66 MB / 0.7215 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/1.085, allocations: 322.4 kB / 1.112 GB, free: 12.34 MB / 0.7215 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/1.085, allocations: 8 kB / 1.112 GB, free: 12.33 MB / 0.7215 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/1.085, allocations: 9.984 kB / 1.112 GB, free: 12.32 MB / 0.7215 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/1.085, allocations: 4 kB / 1.112 GB, free: 12.32 MB / 0.7215 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005574/1.086, allocations: 306.9 kB / 1.113 GB, free: 11.98 MB / 0.7215 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/1.086, allocations: 0 / 1.113 GB, free: 11.98 MB / 0.7215 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006182/1.086, allocations: 79.83 kB / 1.113 GB, free: 11.91 MB / 0.7215 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.718e-05/1.086, allocations: 8 kB / 1.113 GB, free: 11.9 MB / 0.7215 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/1.087, allocations: 8 kB / 1.113 GB, free: 11.89 MB / 0.7215 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.341e-05/1.087, allocations: 15.92 kB / 1.113 GB, free: 11.88 MB / 0.7215 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/1.087, allocations: 192 / 1.113 GB, free: 11.88 MB / 0.7215 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001382/1.088, allocations: 0.5709 MB / 1.113 GB, free: 11.19 MB / 0.7215 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001435/1.089, allocations: 0.951 MB / 1.114 GB, free: 10.12 MB / 0.7215 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003208/1.09, allocations: 148.5 kB / 1.114 GB, free: 9.957 MB / 0.7215 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.383e-05/1.09, allocations: 8 kB / 1.114 GB, free: 9.949 MB / 0.7215 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005163/1.09, allocations: 33.84 kB / 1.115 GB, free: 9.918 MB / 0.7215 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/1.091, allocations: 51.88 kB / 1.115 GB, free: 9.867 MB / 0.7215 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.048e-05/1.091, allocations: 24.73 kB / 1.115 GB, free: 9.844 MB / 0.7215 GB Notification: Performance of sort global known variables: time 0.0001542/1.091, allocations: 123.3 kB / 1.115 GB, free: 9.723 MB / 0.7215 GB Notification: Performance of remove unused functions: time 0.001818/1.093, allocations: 215.6 kB / 1.115 GB, free: 9.512 MB / 0.7215 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.000952/1.094, allocations: 304.7 kB / 1.115 GB, free: 9.207 MB / 0.7215 GB Notification: Performance of simCode: created initialization part: time 0.002646/1.096, allocations: 2.97 MB / 1.118 GB, free: 6.141 MB / 0.7215 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.096, allocations: 0 / 1.118 GB, free: 6.141 MB / 0.7215 GB Notification: Performance of simCode: created simulation system equations: time 0.000513/1.097, allocations: 167.9 kB / 1.118 GB, free: 5.977 MB / 0.7215 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/1.097, allocations: 16.84 kB / 1.118 GB, free: 5.961 MB / 0.7215 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/1.099, allocations: 413.1 kB / 1.119 GB, free: 5.504 MB / 0.7215 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006633/1.099, allocations: 0.8138 MB / 1.119 GB, free: 4.668 MB / 0.7215 GB Notification: Performance of SimCode: time 9.72e-07/1.099, allocations: 4 kB / 1.119 GB, free: 4.664 MB / 0.7215 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)