Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 106.5 kB / 16.41 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 192.3 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.453/2.453, allocations: 390.3 MB / 0.6655 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.89 kB / 0.9515 GB, free: 7.777 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.036/1.037, allocations: 140.4 MB / 1.089 GB, free: 5.574 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002686/1.04, allocations: 1.517 MB / 1.09 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001357/1.041, allocations: 0.5451 MB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.791e-05/1.041, allocations: 0.6875 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001221/1.041, allocations: 10.92 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001483/1.041, allocations: 30.17 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001072/1.043, allocations: 304.4 kB / 1.091 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000687/1.043, allocations: 0.5066 MB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.579e-05/1.043, allocations: 11.02 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004412/1.044, allocations: 269.1 kB / 1.092 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/1.044, allocations: 149.8 kB / 1.092 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001209/1.044, allocations: 26.41 kB / 1.092 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/1.044, allocations: 26.72 kB / 1.092 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001902/1.045, allocations: 111 kB / 1.092 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002425/1.045, allocations: 190 kB / 1.092 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005893/1.045, allocations: 426.5 kB / 1.093 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/1.045, allocations: 0.7969 kB / 1.093 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.304e-06/1.045, allocations: 0.7812 kB / 1.093 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.404e-06/1.045, allocations: 0 / 1.093 GB, free: 3.359 MB / 0.8575 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.001259/1.047, allocations: 0.8717 MB / 1.093 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/1.047, allocations: 10.42 kB / 1.093 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/1.047, allocations: 47.3 kB / 1.093 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/1.047, allocations: 307.9 kB / 1.094 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/1.047, allocations: 21.88 kB / 1.094 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.249e-05/1.047, allocations: 29.89 kB / 1.094 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/1.049, allocations: 215.2 kB / 1.094 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/1.049, allocations: 192 / 1.094 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/1.049, allocations: 6.625 kB / 1.094 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/1.049, allocations: 1.844 kB / 1.094 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008947/1.05, allocations: 104.1 kB / 1.094 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005434/1.05, allocations: 387.1 kB / 1.095 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/1.051, allocations: 176 kB / 1.095 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008603/1.052, allocations: 112.1 kB / 1.095 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/1.052, allocations: 3.094 kB / 1.095 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001102/1.053, allocations: 219.7 kB / 1.095 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.605e-06/1.053, allocations: 0 / 1.095 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.003048/1.056, allocations: 493 kB / 1.095 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/1.056, allocations: 65.64 kB / 1.096 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005502/1.057, allocations: 407.2 kB / 1.096 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.401e-05/1.057, allocations: 43.66 kB / 1.096 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.817e-05/1.057, allocations: 91.22 kB / 1.096 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/1.057, allocations: 41.33 kB / 1.096 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/1.057, allocations: 127.2 kB / 1.096 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.764e-05/1.058, allocations: 321.4 kB / 1.097 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003021/1.058, allocations: 116.8 kB / 1.097 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003045/1.058, allocations: 174.1 kB / 1.097 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003723/1.059, allocations: 284.8 kB / 1.097 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.059, allocations: 1.094 kB / 1.097 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008796/1.059, allocations: 486.5 kB / 1.098 GB, free: 372 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.637e-05/1.06, allocations: 87.94 kB / 1.098 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/1.06, allocations: 6 kB / 1.098 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/1.06, allocations: 7.359 kB / 1.098 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/1.06, allocations: 27.47 kB / 1.098 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/1.06, allocations: 4.078 kB / 1.098 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005528/1.06, allocations: 58.45 kB / 1.098 GB, free: 268 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-05/1.06, allocations: 60.48 kB / 1.098 GB, free: 264 kB / 0.8575 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.0002619/1.061, allocations: 189 kB / 1.098 GB, free: 124 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.538e-05/1.061, allocations: 41.34 kB / 1.098 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.346e-05/1.061, allocations: 53.98 kB / 1.098 GB, free: 64 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/1.061, allocations: 0.7969 kB / 1.098 GB, free: 64 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.061, allocations: 1.875 kB / 1.098 GB, free: 64 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003407/1.061, allocations: 200.8 kB / 1.098 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.69e-05/1.061, allocations: 9.906 kB / 1.098 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005052/1.062, allocations: 28.06 kB / 1.098 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/1.062, allocations: 15.84 kB / 1.098 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001963/1.064, allocations: 428.7 kB / 1.099 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002056/1.066, allocations: 0.5403 MB / 1.099 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008367/1.067, allocations: 116.5 kB / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004162/1.067, allocations: 302.2 kB / 1.1 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of Backend: time 4.91e-07/1.067, allocations: 0 / 1.1 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001141/1.068, allocations: 413.6 kB / 1.1 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of SimCode: time 0.00133/1.07, allocations: 0.9284 MB / 1.101 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of Templates: time 0.01303/1.083, allocations: 5.126 MB / 1.106 GB, free: 13.36 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches