Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.3/1.3, allocations: 285.5 MB / 292.8 MB, free: 10.41 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000912/0.000912, allocations: 181.3 kB / 361.1 MB, free: 7.09 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.016/1.016, allocations: 205.1 MB / 0.6195 GB, free: 10.29 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007871/0.0007871, allocations: 93.09 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1723/0.1731, allocations: 121.4 MB / 0.8511 GB, free: 2.871 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.405/0.5782, allocations: 115.3 MB / 0.9638 GB, free: 78.51 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1282/0.7064, allocations: 138 MB / 1.099 GB, free: 1.98 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001728/0.7066, allocations: 72.86 kB / 1.099 GB, free: 1.91 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.03125/0.7379, allocations: 10.31 MB / 1.109 GB, free: 7.652 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.7379, allocations: 12 kB / 1.109 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.738, allocations: 21.75 kB / 1.109 GB, free: 7.621 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.7381, allocations: 190.8 kB / 1.109 GB, free: 7.395 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.7382, allocations: 7.906 kB / 1.109 GB, free: 7.387 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.7382, allocations: 12 kB / 1.109 GB, free: 7.375 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002099/0.7384, allocations: 95.95 kB / 1.109 GB, free: 7.281 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.7387, allocations: 231 kB / 1.109 GB, free: 7.016 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.7387, allocations: 3.938 kB / 1.109 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.7387, allocations: 4 kB / 1.109 GB, free: 7.008 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.7387, allocations: 4 kB / 1.109 GB, free: 7.004 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/0.7393, allocations: 0.8912 MB / 1.11 GB, free: 6.039 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.7407, allocations: 471.5 kB / 1.111 GB, free: 5.469 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.7409, allocations: 138.6 kB / 1.111 GB, free: 5.297 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.7409, allocations: 23.75 kB / 1.111 GB, free: 5.273 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/0.7412, allocations: 259.9 kB / 1.111 GB, free: 4.961 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=40): time 1.754e-06/0.7412, allocations: 0 / 1.111 GB, free: 4.961 MB / 0.7136 GB Notification: Performance of matching and sorting (n=40): time 0.0006534/0.7418, allocations: 286.3 kB / 1.111 GB, free: 4.676 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.742, allocations: 354.1 kB / 1.112 GB, free: 4.25 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.7421, allocations: 156.4 kB / 1.112 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.7421, allocations: 33.83 kB / 1.112 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.662e-05/0.7422, allocations: 100.9 kB / 1.112 GB, free: 3.945 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.331e-05/0.7422, allocations: 110.5 kB / 1.112 GB, free: 3.836 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.785e-05/0.7423, allocations: 0 / 1.112 GB, free: 3.836 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.257e-05/0.7424, allocations: 330.8 kB / 1.112 GB, free: 3.504 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.7425, allocations: 92.98 kB / 1.112 GB, free: 3.41 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.7427, allocations: 154.8 kB / 1.112 GB, free: 3.238 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004056/0.7431, allocations: 150.5 kB / 1.113 GB, free: 3.094 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.7431, allocations: 0 / 1.113 GB, free: 3.094 MB / 0.7136 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007323/0.7439, allocations: 363.8 kB / 1.113 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.7439, allocations: 4 kB / 1.113 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.7439, allocations: 0 / 1.113 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.7439, allocations: 4 kB / 1.113 GB, free: 2.727 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003092/0.7442, allocations: 67.89 kB / 1.113 GB, free: 2.66 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.7443, allocations: 14.12 kB / 1.113 GB, free: 2.648 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003129/0.7446, allocations: 51.66 kB / 1.113 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.7446, allocations: 23.98 kB / 1.113 GB, free: 2.574 MB / 0.7136 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.0001013/0.7447, allocations: 125 kB / 1.113 GB, free: 2.445 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.7448, allocations: 23.8 kB / 1.113 GB, free: 2.422 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006426/0.7454, allocations: 335.7 kB / 1.114 GB, free: 2.094 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.405e-06/0.7455, allocations: 8 kB / 1.114 GB, free: 2.086 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.7455, allocations: 4 kB / 1.114 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.7455, allocations: 4 kB / 1.114 GB, free: 2.078 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003018/0.7458, allocations: 297.9 kB / 1.114 GB, free: 1.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.7458, allocations: 0 / 1.114 GB, free: 1.75 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002928/0.7461, allocations: 79.83 kB / 1.114 GB, free: 1.672 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.092e-05/0.7462, allocations: 15.92 kB / 1.114 GB, free: 1.656 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.7462, allocations: 12 kB / 1.114 GB, free: 1.645 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.604e-06/0.7462, allocations: 11.3 kB / 1.114 GB, free: 1.637 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.7462, allocations: 7.938 kB / 1.114 GB, free: 1.629 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000704/0.7469, allocations: 0.5719 MB / 1.115 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007361/0.7477, allocations: 0.9448 MB / 1.115 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.7478, allocations: 148.5 kB / 1.116 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.039e-05/0.7479, allocations: 11.98 kB / 1.116 GB, free: 15.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.7481, allocations: 31.98 kB / 1.116 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.477e-05/0.7482, allocations: 39.94 kB / 1.116 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.7483, allocations: 23.98 kB / 1.116 GB, free: 15.61 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.099e-05/0.7484, allocations: 123.3 kB / 1.116 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001086/0.7495, allocations: 211.6 kB / 1.116 GB, free: 15.28 MB / 0.7292 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.0005001/0.75, allocations: 320.5 kB / 1.116 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001434/0.7514, allocations: 2.974 MB / 1.119 GB, free: 11.88 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.7514, allocations: 0 / 1.119 GB, free: 11.88 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002242/0.7516, allocations: 169.2 kB / 1.119 GB, free: 11.72 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.7518, allocations: 16.17 kB / 1.119 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007494/0.7526, allocations: 416.5 kB / 1.12 GB, free: 11.25 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.753, allocations: 0.8122 MB / 1.121 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of SimCode: time 1.322e-06/0.753, allocations: 0 / 1.121 GB, free: 10.41 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)