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.001476/0.001476, allocations: 80.39 kB / 21.47 MB, free: 3.023 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.001621/0.001621, allocations: 172.3 kB / 24.87 MB, free: 8.879 MB / 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 1.002/1.002, allocations: 177.2 MB / 205.3 MB, free: 5.488 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.921/1.921, allocations: 377.9 MB / 0.6247 GB, free: 8.414 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 1.603e-06/1.603e-06, allocations: 0 / 0.8127 GB, free: 1.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.34e-05/1.5e-05, allocations: 2.312 kB / 0.8127 GB, free: 1.496 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001913/0.001928, allocations: 1.563 MB / 0.8143 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0009217/0.00285, allocations: 0.5366 MB / 0.8148 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.1e-05/0.002901, allocations: 4 kB / 0.8148 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 8.833e-05/0.002989, allocations: 11.86 kB / 0.8148 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.003089, allocations: 30.23 kB / 0.8148 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005619/0.003651, allocations: 315.3 kB / 0.8151 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.004022, allocations: 483.4 kB / 0.8156 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.617e-05/0.004058, allocations: 8.438 kB / 0.8156 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.004402, allocations: 355.6 kB / 0.8159 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.004606, allocations: 125.3 kB / 0.8161 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.937e-05/0.004655, allocations: 24 kB / 0.8161 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.35e-05/0.004699, allocations: 29.34 kB / 0.8161 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.004808, allocations: 119.7 kB / 0.8162 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.004915, allocations: 131.7 kB / 0.8163 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.005194, allocations: 378.8 kB / 0.8167 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.005195, allocations: 0.5312 kB / 0.8167 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.31e-07/0.005196, allocations: 0.5312 kB / 0.8167 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.0052, allocations: 0 / 0.8167 GB, free: 13.43 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.0008277/0.006028, allocations: 0.9113 MB / 0.8176 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.006061, allocations: 8.844 kB / 0.8176 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.527e-05/0.006156, allocations: 64.66 kB / 0.8177 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.006414, allocations: 255.4 kB / 0.8179 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.006446, allocations: 25.67 kB / 0.8179 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.113e-05/0.006507, allocations: 32.36 kB / 0.818 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.00681, allocations: 197.6 kB / 0.8182 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.006816, allocations: 192 / 0.8182 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.006833, allocations: 1.406 kB / 0.8182 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.006838, allocations: 384 / 0.8182 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.023e-05/0.006919, allocations: 53.66 kB / 0.8182 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002317/0.00715, allocations: 257 kB / 0.8185 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001614/0.007312, allocations: 115.6 kB / 0.8186 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.428e-05/0.007396, allocations: 67.23 kB / 0.8186 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.007411, allocations: 4 kB / 0.8186 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.007591, allocations: 171.3 kB / 0.8188 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.007592, allocations: 0.9688 kB / 0.8188 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16): time 0.0004725/0.008065, allocations: 362 kB / 0.8191 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.008095, allocations: 63.34 kB / 0.8192 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.008321, allocations: 418.5 kB / 0.8196 GB, free: 10.32 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.008358, allocations: 41.69 kB / 0.8196 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.897e-05/0.008417, allocations: 144.1 kB / 0.8198 GB, free: 10.13 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/0.008455, allocations: 43.7 kB / 0.8198 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.008578, allocations: 135.1 kB / 0.8199 GB, free: 9.945 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.008695, allocations: 0.5 MB / 0.8204 GB, free: 9.434 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.008858, allocations: 159.3 kB / 0.8206 GB, free: 9.266 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.009026, allocations: 233 kB / 0.8208 GB, free: 8.996 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.009351, allocations: 267.2 kB / 0.8211 GB, free: 8.695 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.009353, allocations: 0 / 0.8211 GB, free: 8.695 MB / 0.7761 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006029/0.009956, allocations: 0.5196 MB / 0.8216 GB, free: 8.145 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 8.139e-05/0.01004, allocations: 83.38 kB / 0.8216 GB, free: 8.051 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.01004, allocations: 0 / 0.8216 GB, free: 8.051 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.326e-06/0.01005, allocations: 7.938 kB / 0.8217 GB, free: 8.043 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.01016, allocations: 35.97 kB / 0.8217 GB, free: 8.008 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.01016, allocations: 4 kB / 0.8217 GB, free: 8.004 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.01034, allocations: 51.98 kB / 0.8217 GB, free: 7.953 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.839e-05/0.0104, allocations: 63.92 kB / 0.8218 GB, free: 7.891 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.0001133/0.01051, allocations: 188.5 kB / 0.822 GB, free: 7.699 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.009e-05/0.01056, allocations: 43.75 kB / 0.822 GB, free: 7.656 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.86e-05/0.0106, allocations: 35.69 kB / 0.8221 GB, free: 7.617 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.0106, allocations: 0 / 0.8221 GB, free: 7.617 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.0106, allocations: 4 kB / 0.8221 GB, free: 7.613 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.01061, allocations: 0 / 0.8221 GB, free: 7.613 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009452/0.01155, allocations: 0.6111 MB / 0.8227 GB, free: 6.965 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01155, allocations: 0 / 0.8227 GB, free: 6.965 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.331e-05/0.01158, allocations: 7.984 kB / 0.8227 GB, free: 6.957 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.01158, allocations: 3.938 kB / 0.8227 GB, free: 6.953 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.0116, allocations: 19.98 kB / 0.8227 GB, free: 6.934 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.0116, allocations: 7.938 kB / 0.8227 GB, free: 6.926 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.01161, allocations: 7.922 kB / 0.8227 GB, free: 6.918 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003459/0.01195, allocations: 453 kB / 0.8231 GB, free: 6.457 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.01209, allocations: 121.5 kB / 0.8233 GB, free: 6.336 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.01214, allocations: 12 kB / 0.8233 GB, free: 6.324 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/0.01228, allocations: 15.98 kB / 0.8233 GB, free: 6.309 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.246e-05/0.0123, allocations: 15.92 kB / 0.8233 GB, free: 6.293 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.141e-05/0.01235, allocations: 55.97 kB / 0.8234 GB, free: 6.238 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001601/0.01251, allocations: 263 kB / 0.8236 GB, free: 5.984 MB / 0.7761 GB Notification: Performance of sort global known variables: time 9e-08/0.01251, allocations: 0 / 0.8236 GB, free: 5.984 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002182/0.01273, allocations: 68 kB / 0.8237 GB, free: 5.918 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 8.862e-05/0.01282, allocations: 117.2 kB / 0.8238 GB, free: 5.797 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003617/0.01318, allocations: 410.8 kB / 0.8242 GB, free: 5.355 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01318, allocations: 0 / 0.8242 GB, free: 5.355 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.01338, allocations: 79.91 kB / 0.8242 GB, free: 5.273 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.01362, allocations: 56 kB / 0.8243 GB, free: 5.219 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000576/0.0142, allocations: 475 kB / 0.8248 GB, free: 4.723 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.826e-05/0.01424, allocations: 91.81 kB / 0.8248 GB, free: 4.613 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.487e-05/0.01428, allocations: 13.14 kB / 0.8249 GB, free: 4.602 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.01445, allocations: 142.2 kB / 0.825 GB, free: 4.461 MB / 0.7761 GB Notification: Performance of SimCode: time 5.91e-07/0.01445, allocations: 0 / 0.825 GB, free: 4.461 MB / 0.7761 GB Notification: Performance of Templates: time 0.006519/0.02097, allocations: 5.583 MB / 0.8304 GB, free: 14.83 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.7346521518193185]