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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.007818/0.007818, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001859/0.001859, allocations: 197.7 kB / 16.79 MB, free: 5.809 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.427/1.427, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.367/2.367, allocations: 390.2 MB / 0.6649 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 63.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6462/0.6477, allocations: 140.3 MB / 0.9496 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002427/0.6501, allocations: 1.576 MB / 0.9511 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.6513, allocations: 0.5894 MB / 0.9517 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.352e-05/0.6514, allocations: 5.375 kB / 0.9517 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.6515, allocations: 7.922 kB / 0.9517 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.6516, allocations: 27.72 kB / 0.9517 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000634/0.6523, allocations: 278.5 kB / 0.952 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.6526, allocations: 456.3 kB / 0.9524 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.013e-05/0.6527, allocations: 8.547 kB / 0.9524 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/0.6531, allocations: 304.7 kB / 0.9527 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.6533, allocations: 161.5 kB / 0.9529 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.82e-05/0.6534, allocations: 14.41 kB / 0.9529 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.733e-05/0.6535, allocations: 13.81 kB / 0.9529 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.6537, allocations: 115.7 kB / 0.953 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002015/0.6539, allocations: 183.6 kB / 0.9532 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.6541, allocations: 313.2 kB / 0.9535 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.6541, allocations: 0 / 0.9535 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.72e-07/0.6541, allocations: 1.156 kB / 0.9535 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.6542, allocations: 0 / 0.9535 GB, free: 6.336 MB / 0.7169 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.001077/0.6552, allocations: 0.8669 MB / 0.9543 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.6553, allocations: 9.844 kB / 0.9543 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.6554, allocations: 58.92 kB / 0.9544 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.6557, allocations: 313.1 kB / 0.9547 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.506e-05/0.6558, allocations: 10 kB / 0.9547 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.77e-05/0.6559, allocations: 30.98 kB / 0.9547 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.6569, allocations: 214.5 kB / 0.9549 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.6569, allocations: 4.188 kB / 0.9549 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.657, allocations: 10.09 kB / 0.955 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.657, allocations: 0 / 0.955 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008268/0.6578, allocations: 95.61 kB / 0.955 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000372/0.6582, allocations: 396.4 kB / 0.9554 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.6593, allocations: 184.9 kB / 0.9556 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008213/0.6601, allocations: 110.7 kB / 0.9557 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.6602, allocations: 4 kB / 0.9557 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009891/0.6612, allocations: 217.6 kB / 0.9559 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/0.6612, allocations: 0 / 0.9559 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002781/0.664, allocations: 488.4 kB / 0.9564 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.664, allocations: 64.83 kB / 0.9564 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003477/0.6644, allocations: 413.2 kB / 0.9568 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.552e-05/0.6644, allocations: 45.72 kB / 0.9569 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.715e-05/0.6645, allocations: 97.23 kB / 0.957 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.6645, allocations: 40.69 kB / 0.957 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.6648, allocations: 132.3 kB / 0.9571 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.255e-05/0.6648, allocations: 320.9 kB / 0.9574 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/0.6651, allocations: 125.4 kB / 0.9576 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.6654, allocations: 167.4 kB / 0.9577 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.6657, allocations: 283.4 kB / 0.958 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.6657, allocations: 1.031 kB / 0.958 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007934/0.6665, allocations: 489 kB / 0.9585 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.657e-05/0.6666, allocations: 93.88 kB / 0.9586 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.6666, allocations: 5.984 kB / 0.9586 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.6666, allocations: 2.906 kB / 0.9586 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.6668, allocations: 21.86 kB / 0.9586 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.6668, allocations: 2.969 kB / 0.9586 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005495/0.6674, allocations: 70.78 kB / 0.9587 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.26e-05/0.6675, allocations: 60.33 kB / 0.9587 GB, free: 2.523 MB / 0.7169 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.0002052/0.6677, allocations: 192.1 kB / 0.9589 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/0.6678, allocations: 40.16 kB / 0.9589 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.287e-05/0.6679, allocations: 44.02 kB / 0.959 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.6679, allocations: 6.031 kB / 0.959 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.6679, allocations: 0.8125 kB / 0.959 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.6679, allocations: 3.938 kB / 0.959 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.6701, allocations: 0.7562 MB / 0.9597 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.6701, allocations: 0 / 0.9597 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.893e-05/0.6702, allocations: 4.25 kB / 0.9597 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.6702, allocations: 1.125 kB / 0.9597 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.6702, allocations: 19.28 kB / 0.9597 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.6702, allocations: 1.125 kB / 0.9597 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6703, allocations: 0 / 0.9597 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.6721, allocations: 479 kB / 0.9602 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.6723, allocations: 204.1 kB / 0.9604 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.929e-05/0.6724, allocations: 9.219 kB / 0.9604 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005081/0.6729, allocations: 27.62 kB / 0.9604 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.673, allocations: 15.89 kB / 0.9604 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/0.673, allocations: 58.53 kB / 0.9605 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002607/0.6733, allocations: 293.1 kB / 0.9608 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6733, allocations: 0 / 0.9608 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003797/0.6737, allocations: 66.23 kB / 0.9608 GB, free: 1.109 MB / 0.7169 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.0001252/0.6738, allocations: 116.2 kB / 0.961 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00128/0.6751, allocations: 448.4 kB / 0.9614 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.6751, allocations: 1.156 kB / 0.9614 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0008324/0.676, allocations: 120.9 kB / 0.9615 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.6763, allocations: 29.48 kB / 0.9615 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.6779, allocations: 0.7158 MB / 0.9622 GB, free: 164 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.6782, allocations: 0.7746 MB / 0.963 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.635e-05/0.6783, allocations: 14.03 kB / 0.963 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of SimCode: time 3e-07/0.6783, allocations: 0 / 0.963 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of Templates: time 0.006374/0.6847, allocations: 3.71 MB / 0.9666 GB, free: 13.38 MB / 0.7325 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