Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.002186/0.002186, allocations: 101.4 kB / 16.27 MB, free: 6.414 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.002295/0.002295, allocations: 190.3 kB / 17.2 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.495/1.495, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.779/2.779, allocations: 469.8 MB / 0.743 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 60.19 kB / 0.9092 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.4204, allocations: 159.1 MB / 1.065 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003054/0.4235, allocations: 1.517 MB / 1.066 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.4249, allocations: 0.5445 MB / 1.067 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.885e-05/0.425, allocations: 0 / 1.067 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.4251, allocations: 11.88 kB / 1.067 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.4252, allocations: 27.84 kB / 1.067 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007893/0.426, allocations: 314.8 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005521/0.4266, allocations: 0.5072 MB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.357e-05/0.4266, allocations: 4 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003634/0.427, allocations: 267.7 kB / 1.068 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.4273, allocations: 135.6 kB / 1.068 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.845e-05/0.4274, allocations: 28 kB / 1.068 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.749e-05/0.4275, allocations: 28 kB / 1.068 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.4276, allocations: 115.7 kB / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.4278, allocations: 191 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004656/0.4283, allocations: 430.9 kB / 1.069 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.4283, allocations: 0 / 1.069 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.302e-06/0.4283, allocations: 4 kB / 1.069 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.4284, allocations: 0 / 1.069 GB, free: 10.67 MB / 0.8419 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.001326/0.4297, allocations: 0.8587 MB / 1.069 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.4297, allocations: 8.031 kB / 1.069 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.4299, allocations: 52.47 kB / 1.07 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004588/0.4303, allocations: 310.2 kB / 1.07 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.737e-05/0.4304, allocations: 24.3 kB / 1.07 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.912e-05/0.4305, allocations: 32.36 kB / 1.07 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.4315, allocations: 206 kB / 1.07 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.4315, allocations: 4.125 kB / 1.07 GB, free: 9.055 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.4316, allocations: 3.938 kB / 1.07 GB, free: 9.051 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.4316, allocations: 3.984 kB / 1.07 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007686/0.4323, allocations: 103.9 kB / 1.07 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/0.4329, allocations: 393.2 kB / 1.071 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.434, allocations: 174.5 kB / 1.071 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000783/0.4347, allocations: 112.8 kB / 1.071 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.4348, allocations: 4 kB / 1.071 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.4359, allocations: 227.1 kB / 1.071 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 2.594e-06/0.4359, allocations: 0 / 1.071 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002817/0.4387, allocations: 490.4 kB / 1.071 GB, free: 7.496 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.4388, allocations: 59.41 kB / 1.072 GB, free: 7.426 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005813/0.4394, allocations: 413.8 kB / 1.072 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.223e-05/0.4395, allocations: 37.7 kB / 1.072 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.4396, allocations: 97.44 kB / 1.072 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.701e-05/0.4397, allocations: 43.44 kB / 1.072 GB, free: 6.828 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.4399, allocations: 129.3 kB / 1.072 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001919/0.4401, allocations: 322.8 kB / 1.073 GB, free: 6.371 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002922/0.4404, allocations: 119.9 kB / 1.073 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.4407, allocations: 180.4 kB / 1.073 GB, free: 6.059 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.4412, allocations: 275 kB / 1.073 GB, free: 5.758 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4412, allocations: 0 / 1.073 GB, free: 5.758 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009546/0.4422, allocations: 498.9 kB / 1.074 GB, free: 5.254 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.4423, allocations: 95.3 kB / 1.074 GB, free: 5.148 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.4424, allocations: 0 / 1.074 GB, free: 5.148 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.4424, allocations: 4 kB / 1.074 GB, free: 5.145 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.4426, allocations: 23.92 kB / 1.074 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.4426, allocations: 0 / 1.074 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005284/0.4431, allocations: 63.86 kB / 1.074 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.4432, allocations: 67.97 kB / 1.074 GB, free: 4.992 MB / 0.8419 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.000338/0.4436, allocations: 193.7 kB / 1.074 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.944e-05/0.4437, allocations: 39.47 kB / 1.074 GB, free: 4.754 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.422e-05/0.4438, allocations: 43.73 kB / 1.074 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.4438, allocations: 4 kB / 1.074 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.4438, allocations: 0 / 1.074 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4438, allocations: 0 / 1.074 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002421/0.4462, allocations: 0.738 MB / 1.075 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.4462, allocations: 0 / 1.075 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.832e-05/0.4463, allocations: 19.86 kB / 1.075 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/0.4463, allocations: 4 kB / 1.075 GB, free: 3.891 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.4464, allocations: 19.98 kB / 1.075 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4464, allocations: 0 / 1.075 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4464, allocations: 0 / 1.075 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.4483, allocations: 478.7 kB / 1.075 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.4486, allocations: 200.5 kB / 1.075 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.055e-05/0.4487, allocations: 15.98 kB / 1.076 GB, free: 3.156 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004673/0.4491, allocations: 23.97 kB / 1.076 GB, free: 3.133 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.502e-05/0.4492, allocations: 15.98 kB / 1.076 GB, free: 3.117 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.792e-05/0.4493, allocations: 51.98 kB / 1.076 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003774/0.4497, allocations: 295.1 kB / 1.076 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4497, allocations: 0 / 1.076 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000401/0.4501, allocations: 67.98 kB / 1.076 GB, free: 2.711 MB / 0.8419 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.0002214/0.4503, allocations: 133.4 kB / 1.076 GB, free: 2.57 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001407/0.4517, allocations: 445.7 kB / 1.076 GB, free: 2.113 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4517, allocations: 384 / 1.076 GB, free: 2.113 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000833/0.4526, allocations: 127.8 kB / 1.077 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.453, allocations: 29.42 kB / 1.077 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.4546, allocations: 0.5918 MB / 1.077 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000527/0.4552, allocations: 0.7708 MB / 1.078 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.925e-05/0.4552, allocations: 19.44 kB / 1.078 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of SimCode: time 7.01e-07/0.4552, allocations: 0 / 1.078 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of Templates: time 0.5969/1.052, allocations: 3.721 MB / 1.082 GB, free: 21.33 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches