Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001752/0.001752, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.001825/0.001825, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.455/1.455, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.585/2.585, allocations: 437 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 67.89 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8643/0.8662, allocations: 151.6 MB / 1.167 GB, free: 3.891 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003988/0.8703, allocations: 1.521 MB / 1.169 GB, free: 2.359 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001968/0.8723, allocations: 0.5407 MB / 1.169 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.083e-05/0.8723, allocations: 0 / 1.169 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.8725, allocations: 11.86 kB / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.8727, allocations: 27.64 kB / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.8739, allocations: 321.8 kB / 1.17 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0008455/0.8748, allocations: 0.4994 MB / 1.17 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 6.097e-05/0.8748, allocations: 7.984 kB / 1.17 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000546/0.8754, allocations: 283.6 kB / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004072/0.8758, allocations: 140.7 kB / 1.171 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 9.226e-05/0.8759, allocations: 24 kB / 1.171 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.066e-05/0.876, allocations: 32 kB / 1.171 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001722/0.8762, allocations: 115.7 kB / 1.171 GB, free: 388 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0002552/0.8765, allocations: 183 kB / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0006711/0.8771, allocations: 427 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.8772, allocations: 0 / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.743e-06/0.8772, allocations: 3.938 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.8772, allocations: 0 / 1.171 GB, free: 15.78 MB / 0.9044 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.001807/0.879, allocations: 0.8743 MB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.8791, allocations: 15.97 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002187/0.8793, allocations: 56.69 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006144/0.8799, allocations: 314.5 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.577e-05/0.88, allocations: 16.36 kB / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.8802, allocations: 32.36 kB / 1.173 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.8816, allocations: 210 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.8816, allocations: 192 / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.022e-05/0.8816, allocations: 3.938 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.8817, allocations: 8 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.8828, allocations: 99.86 kB / 1.173 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007282/0.8835, allocations: 385.3 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.885, allocations: 182.4 kB / 1.173 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.8861, allocations: 109.8 kB / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.8861, allocations: 0 / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001394/0.8875, allocations: 235.4 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.706e-06/0.8875, allocations: 0 / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.003667/0.8912, allocations: 490.8 kB / 1.174 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.8913, allocations: 59.41 kB / 1.174 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006815/0.892, allocations: 413.8 kB / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.636e-05/0.8921, allocations: 37.7 kB / 1.175 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.8922, allocations: 97.44 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.983e-05/0.8923, allocations: 39.75 kB / 1.175 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000313/0.8926, allocations: 129.5 kB / 1.175 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002028/0.8929, allocations: 322.8 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/0.8933, allocations: 115.9 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.8938, allocations: 182.3 kB / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006264/0.8945, allocations: 271.7 kB / 1.176 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.8945, allocations: 4 kB / 1.176 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001388/0.8959, allocations: 492.6 kB / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001324/0.896, allocations: 93.66 kB / 1.176 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.896, allocations: 0 / 1.176 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.8961, allocations: 4 kB / 1.176 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.8963, allocations: 23.97 kB / 1.176 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.8963, allocations: 3.938 kB / 1.176 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007456/0.8971, allocations: 71.92 kB / 1.176 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001424/0.8972, allocations: 59.98 kB / 1.177 GB, free: 10.08 MB / 0.9044 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.0003646/0.8976, allocations: 193.8 kB / 1.177 GB, free: 9.887 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.695e-05/0.8977, allocations: 39.7 kB / 1.177 GB, free: 9.848 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.8978, allocations: 39.75 kB / 1.177 GB, free: 9.809 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.8979, allocations: 3.938 kB / 1.177 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.8979, allocations: 4 kB / 1.177 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.8979, allocations: 11.92 kB / 1.177 GB, free: 9.789 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00306/0.901, allocations: 0.7434 MB / 1.178 GB, free: 8.988 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.901, allocations: 0 / 1.178 GB, free: 8.988 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.319e-05/0.901, allocations: 4 kB / 1.178 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.507e-05/0.9011, allocations: 11.94 kB / 1.178 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.893e-05/0.9011, allocations: 15.97 kB / 1.178 GB, free: 8.957 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.9012, allocations: 4 kB / 1.178 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.9012, allocations: 0 / 1.178 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.9037, allocations: 475.4 kB / 1.178 GB, free: 8.473 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000402/0.9041, allocations: 204.7 kB / 1.178 GB, free: 8.254 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.9042, allocations: 8 kB / 1.178 GB, free: 8.246 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006582/0.9049, allocations: 31.95 kB / 1.178 GB, free: 8.215 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.9049, allocations: 12 kB / 1.178 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.905, allocations: 59.97 kB / 1.178 GB, free: 8.145 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0004863/0.9055, allocations: 299.1 kB / 1.179 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9056, allocations: 0 / 1.179 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0006324/0.9062, allocations: 67.98 kB / 1.179 GB, free: 7.785 MB / 0.9044 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.0002117/0.9064, allocations: 120.9 kB / 1.179 GB, free: 7.656 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001843/0.9083, allocations: 438.7 kB / 1.179 GB, free: 7.203 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.9083, allocations: 4.125 kB / 1.179 GB, free: 7.199 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.9094, allocations: 123.8 kB / 1.179 GB, free: 7.078 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005694/0.9099, allocations: 30.75 kB / 1.179 GB, free: 7.051 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.912, allocations: 0.5507 MB / 1.18 GB, free: 6.473 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.9127, allocations: 0.7747 MB / 1.181 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.667e-05/0.9128, allocations: 9.078 kB / 1.181 GB, free: 5.664 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.378e-05/0.9128, allocations: 15.44 kB / 1.181 GB, free: 5.648 MB / 0.9044 GB Notification: Performance of SimCode: time 4.31e-07/0.9128, allocations: 0 / 1.181 GB, free: 5.648 MB / 0.9044 GB Notification: Performance of Templates: time 0.01137/0.9242, allocations: 5.031 MB / 1.186 GB, free: 0.5195 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches