Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 71.75 kB / 20.97 MB, free: 3.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 169 kB / 24.28 MB, free: 276 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9758/0.9758, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.882/1.882, allocations: 377.8 MB / 0.6239 GB, free: 8.562 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.806e-06/2.806e-06, allocations: 4 kB / 0.8115 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.827e-05/3.108e-05, allocations: 5.172 kB / 0.8115 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002059/0.00209, allocations: 1.562 MB / 0.813 GB, free: 0.5547 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009349/0.003025, allocations: 0.5358 MB / 0.8135 GB, free: 16 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.142e-05/0.003086, allocations: 4.594 kB / 0.8135 GB, free: 12 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.003192, allocations: 12.73 kB / 0.8135 GB, free: 0 / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.003312, allocations: 23.86 kB / 0.8136 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006814/0.003994, allocations: 320.4 kB / 0.8139 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003846/0.004378, allocations: 488.8 kB / 0.8143 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.102e-05/0.004419, allocations: 3.984 kB / 0.8143 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003343/0.004754, allocations: 359.6 kB / 0.8147 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.004948, allocations: 125.3 kB / 0.8148 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.518e-05/0.004993, allocations: 24 kB / 0.8148 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.76e-05/0.005041, allocations: 28 kB / 0.8148 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 9.491e-05/0.005136, allocations: 115.7 kB / 0.815 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.005248, allocations: 133.1 kB / 0.8151 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003037/0.005551, allocations: 378.9 kB / 0.8154 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.005554, allocations: 4 kB / 0.8154 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.42e-07/0.005555, allocations: 4.531 kB / 0.8155 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.005561, allocations: 0 / 0.8155 GB, free: 14.04 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008653/0.006426, allocations: 0.8999 MB / 0.8163 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.006459, allocations: 8.031 kB / 0.8163 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.006568, allocations: 65.17 kB / 0.8164 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.006818, allocations: 259.5 kB / 0.8166 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.743e-05/0.006855, allocations: 20.36 kB / 0.8167 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.665e-05/0.006902, allocations: 29.73 kB / 0.8167 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.007257, allocations: 209.1 kB / 0.8169 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.007265, allocations: 2.5 kB / 0.8169 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.007285, allocations: 384 / 0.8169 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.007293, allocations: 4.375 kB / 0.8169 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.9e-05/0.007392, allocations: 56.09 kB / 0.817 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000276/0.007668, allocations: 308.4 kB / 0.8173 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.007872, allocations: 130.8 kB / 0.8174 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.951e-05/0.007971, allocations: 71.12 kB / 0.8174 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.00799, allocations: 0 / 0.8174 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000199/0.008189, allocations: 183.9 kB / 0.8176 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=16): time 9.72e-07/0.00819, allocations: 0 / 0.8176 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16): time 0.000526/0.008716, allocations: 382.5 kB / 0.818 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.00875, allocations: 59.41 kB / 0.818 GB, free: 11.25 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.009005, allocations: 422.7 kB / 0.8184 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.009039, allocations: 45.69 kB / 0.8185 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.24e-05/0.009101, allocations: 148.1 kB / 0.8186 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.445e-05/0.009136, allocations: 35.78 kB / 0.8187 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.009256, allocations: 139.1 kB / 0.8188 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.009366, allocations: 0.4884 MB / 0.8193 GB, free: 9.941 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.009565, allocations: 175.3 kB / 0.8194 GB, free: 9.758 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.009766, allocations: 249.1 kB / 0.8197 GB, free: 9.473 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.009992, allocations: 270.9 kB / 0.8199 GB, free: 9.168 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.009995, allocations: 4 kB / 0.8199 GB, free: 9.164 MB / 0.7761 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005431/0.01054, allocations: 0.5607 MB / 0.8205 GB, free: 8.574 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.887e-05/0.01059, allocations: 81.88 kB / 0.8206 GB, free: 8.484 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.01059, allocations: 0 / 0.8206 GB, free: 8.484 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.01061, allocations: 8.188 kB / 0.8206 GB, free: 8.477 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.01074, allocations: 35.97 kB / 0.8206 GB, free: 8.441 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.01074, allocations: 11.88 kB / 0.8206 GB, free: 8.43 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.01092, allocations: 43.92 kB / 0.8207 GB, free: 8.387 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.365e-05/0.01097, allocations: 59.98 kB / 0.8207 GB, free: 8.328 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.0111, allocations: 196.4 kB / 0.8209 GB, free: 8.125 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.01114, allocations: 43.75 kB / 0.8209 GB, free: 8.082 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.103e-05/0.01119, allocations: 35.69 kB / 0.821 GB, free: 8.043 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.01119, allocations: 0 / 0.821 GB, free: 8.043 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.01119, allocations: 4 kB / 0.821 GB, free: 8.039 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.0112, allocations: 3.938 kB / 0.821 GB, free: 8.035 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000665/0.01186, allocations: 0.6693 MB / 0.8216 GB, free: 7.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.01186, allocations: 0 / 0.8216 GB, free: 7.32 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.559e-05/0.01189, allocations: 7.938 kB / 0.8216 GB, free: 7.312 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.01189, allocations: 3.984 kB / 0.8217 GB, free: 7.309 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.01192, allocations: 23.92 kB / 0.8217 GB, free: 7.285 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.01192, allocations: 0 / 0.8217 GB, free: 7.285 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.01192, allocations: 7.984 kB / 0.8217 GB, free: 7.277 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003721/0.01229, allocations: 461.8 kB / 0.8221 GB, free: 6.809 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.01243, allocations: 121.5 kB / 0.8222 GB, free: 6.688 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.943e-05/0.01248, allocations: 19.92 kB / 0.8223 GB, free: 6.668 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.01262, allocations: 15.98 kB / 0.8223 GB, free: 6.652 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/0.01265, allocations: 7.984 kB / 0.8223 GB, free: 6.645 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.0127, allocations: 63.97 kB / 0.8223 GB, free: 6.582 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001495/0.01285, allocations: 271.1 kB / 0.8226 GB, free: 6.32 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01285, allocations: 0 / 0.8226 GB, free: 6.32 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002305/0.01308, allocations: 71.92 kB / 0.8227 GB, free: 6.25 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001026/0.01318, allocations: 121.2 kB / 0.8228 GB, free: 6.125 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004409/0.01362, allocations: 425.6 kB / 0.8232 GB, free: 5.668 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.01362, allocations: 4 kB / 0.8232 GB, free: 5.664 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.01373, allocations: 84.02 kB / 0.8233 GB, free: 5.578 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.01399, allocations: 60.22 kB / 0.8233 GB, free: 5.52 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007169/0.01471, allocations: 490.9 kB / 0.8238 GB, free: 5.008 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.257e-05/0.01476, allocations: 87.75 kB / 0.8239 GB, free: 4.902 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.949e-05/0.0148, allocations: 13.14 kB / 0.8239 GB, free: 4.891 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.01483, allocations: 16.5 kB / 0.8239 GB, free: 4.875 MB / 0.7761 GB Notification: Performance of SimCode: time 1.052e-06/0.01483, allocations: 4 kB / 0.8239 GB, free: 4.871 MB / 0.7761 GB Notification: Performance of Templates: time 0.006818/0.02165, allocations: 5.971 MB / 0.8297 GB, free: 14.86 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.7805779608897865]