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.006796/0.006796, allocations: 103.6 kB / 15.74 MB, free: 6.035 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.00138/0.00138, allocations: 196.5 kB / 16.68 MB, free: 5.953 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.324/2.324, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 63.91 kB / 0.9508 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9522/0.9538, allocations: 140.4 MB / 1.088 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002643/0.9565, allocations: 1.507 MB / 1.089 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.9578, allocations: 0.5506 MB / 1.09 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.901e-05/0.9579, allocations: 0 / 1.09 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.958, allocations: 13.09 kB / 1.09 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.9581, allocations: 26.89 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008992/0.959, allocations: 320 kB / 1.09 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006758/0.9597, allocations: 0.4956 MB / 1.091 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.693e-05/0.9598, allocations: 10.41 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004142/0.9602, allocations: 272 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.9605, allocations: 148.9 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.226e-05/0.9606, allocations: 26.34 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.568e-05/0.9607, allocations: 27.22 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.9609, allocations: 114.7 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002537/0.9612, allocations: 185.6 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005586/0.9617, allocations: 419.3 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.9617, allocations: 0 / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.282e-06/0.9618, allocations: 0.5312 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.837e-06/0.9618, allocations: 0 / 1.092 GB, free: 3.332 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.001356/0.9631, allocations: 0.8694 MB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.9632, allocations: 14.05 kB / 1.093 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.9633, allocations: 47.02 kB / 1.093 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004362/0.9638, allocations: 308.5 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.863e-05/0.9638, allocations: 22.39 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.964, allocations: 24.89 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.9651, allocations: 215.9 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.9651, allocations: 4.188 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.804e-05/0.9652, allocations: 7.406 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.9652, allocations: 0.9062 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008597/0.966, allocations: 101 kB / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005315/0.9666, allocations: 386.7 kB / 1.094 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.9677, allocations: 174.8 kB / 1.094 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008113/0.9686, allocations: 108.6 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.9686, allocations: 10.56 kB / 1.094 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001085/0.9697, allocations: 226.7 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.124e-06/0.9697, allocations: 0 / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002974/0.9727, allocations: 490.5 kB / 1.095 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.9727, allocations: 57.98 kB / 1.095 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005829/0.9733, allocations: 414.4 kB / 1.095 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.571e-05/0.9734, allocations: 40.88 kB / 1.095 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/0.9735, allocations: 95.08 kB / 1.095 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.475e-05/0.9736, allocations: 37.28 kB / 1.095 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002538/0.9738, allocations: 123.7 kB / 1.095 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.882e-05/0.9739, allocations: 329 kB / 1.096 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.9742, allocations: 115.8 kB / 1.096 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.9746, allocations: 182.2 kB / 1.096 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003977/0.975, allocations: 277.4 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.975, allocations: 1.062 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009069/0.9759, allocations: 494.2 kB / 1.097 GB, free: 332 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.359e-05/0.976, allocations: 91.94 kB / 1.097 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.976, allocations: 2.219 kB / 1.097 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.976, allocations: 3.062 kB / 1.097 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001789/0.9762, allocations: 19.19 kB / 1.097 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.9762, allocations: 7.344 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005545/0.9768, allocations: 62.48 kB / 1.097 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.9769, allocations: 61.34 kB / 1.097 GB, free: 228 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.0003042/0.9772, allocations: 198.8 kB / 1.097 GB, free: 80 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.453e-05/0.9773, allocations: 40.22 kB / 1.097 GB, free: 56 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.078e-05/0.9774, allocations: 41.25 kB / 1.097 GB, free: 32 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.9774, allocations: 6.25 kB / 1.097 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.9774, allocations: 0.7969 kB / 1.097 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.9774, allocations: 5.547 kB / 1.097 GB, free: 24 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002657/0.9801, allocations: 0.7352 MB / 1.098 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.9801, allocations: 5.812 kB / 1.098 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.237e-05/0.9802, allocations: 4.031 kB / 1.098 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.9802, allocations: 5.531 kB / 1.098 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.048e-05/0.9802, allocations: 22.34 kB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.9802, allocations: 2.016 kB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.9802, allocations: 3.938 kB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.9822, allocations: 479.6 kB / 1.099 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.9826, allocations: 200 kB / 1.099 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.607e-05/0.9827, allocations: 10.45 kB / 1.099 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005144/0.9832, allocations: 29.44 kB / 1.099 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.9833, allocations: 15.12 kB / 1.099 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-05/0.9834, allocations: 56.14 kB / 1.099 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003923/0.9837, allocations: 293.9 kB / 1.099 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9838, allocations: 0 / 1.099 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004921/0.9843, allocations: 65.52 kB / 1.099 GB, free: 15.12 MB / 0.8731 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.0001749/0.9844, allocations: 123.7 kB / 1.099 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001503/0.9859, allocations: 437.5 kB / 1.1 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.986, allocations: 0.5312 kB / 1.1 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0009012/0.9869, allocations: 121.5 kB / 1.1 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004523/0.9873, allocations: 37.66 kB / 1.1 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.9892, allocations: 0.5479 MB / 1.1 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.9896, allocations: 0.7716 MB / 1.101 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.781e-05/0.9897, allocations: 11.94 kB / 1.101 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.506e-05/0.9898, allocations: 19.72 kB / 1.101 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of SimCode: time 1.022e-06/0.9898, allocations: 0 / 1.101 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of Templates: time 0.01208/1.002, allocations: 5.027 MB / 1.106 GB, free: 12.82 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches