Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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: 110.5 kB / 16.37 MB, free: 6.016 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.001286/0.001286, allocations: 195.1 kB / 17.31 MB, free: 5.613 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.404/2.404, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 64.41 kB / 0.8773 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3399, allocations: 153 MB / 1.027 GB, free: 2.078 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002733/0.3427, allocations: 1.51 MB / 1.028 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.3439, allocations: 0.55 MB / 1.029 GB, free: 8 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.267e-05/0.344, allocations: 7.938 kB / 1.029 GB, free: 0 / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.3441, allocations: 8.031 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.3442, allocations: 23.86 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007207/0.3449, allocations: 306.9 kB / 1.029 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005108/0.3455, allocations: 0.507 MB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.82e-05/0.3455, allocations: 8 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003606/0.3459, allocations: 271.6 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.3461, allocations: 151.5 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.748e-05/0.3462, allocations: 24 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.576e-05/0.3463, allocations: 28 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.3464, allocations: 115.6 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.3466, allocations: 183.1 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004162/0.3471, allocations: 426.6 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3471, allocations: 0 / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3471, allocations: 0 / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.136e-05/0.3471, allocations: 0 / 1.031 GB, free: 13.98 MB / 0.8106 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.001253/0.3484, allocations: 0.8664 MB / 1.032 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.3484, allocations: 12.03 kB / 1.032 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.3485, allocations: 56.55 kB / 1.032 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.349, allocations: 310.1 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.164e-05/0.3491, allocations: 20.36 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.799e-05/0.3492, allocations: 32.28 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008862/0.3501, allocations: 218 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.3501, allocations: 192 / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.3501, allocations: 7.922 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.3501, allocations: 4 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000661/0.3508, allocations: 95.92 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000418/0.3512, allocations: 381.3 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009037/0.3521, allocations: 174.5 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006471/0.3528, allocations: 120.7 kB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.3528, allocations: 0 / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00086/0.3537, allocations: 231 kB / 1.033 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.3537, allocations: 0 / 1.033 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002285/0.356, allocations: 484.2 kB / 1.034 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.3561, allocations: 59.41 kB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004028/0.3565, allocations: 417.8 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.608e-05/0.3565, allocations: 37.7 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.306e-05/0.3566, allocations: 97.44 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.252e-05/0.3567, allocations: 39.53 kB / 1.034 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002582/0.3569, allocations: 125.3 kB / 1.034 GB, free: 10 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3571, allocations: 322.8 kB / 1.035 GB, free: 9.68 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.3573, allocations: 123.9 kB / 1.035 GB, free: 9.559 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.3576, allocations: 170.9 kB / 1.035 GB, free: 9.371 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.358, allocations: 279 kB / 1.035 GB, free: 9.066 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.358, allocations: 0 / 1.035 GB, free: 9.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007607/0.3588, allocations: 490.8 kB / 1.036 GB, free: 8.57 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.952e-05/0.3589, allocations: 91.31 kB / 1.036 GB, free: 8.469 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3589, allocations: 4 kB / 1.036 GB, free: 8.465 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3589, allocations: 0 / 1.036 GB, free: 8.465 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.3591, allocations: 28.09 kB / 1.036 GB, free: 8.438 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.3591, allocations: 8 kB / 1.036 GB, free: 8.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004602/0.3596, allocations: 55.8 kB / 1.036 GB, free: 8.375 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.113e-05/0.3597, allocations: 59.98 kB / 1.036 GB, free: 8.316 MB / 0.8106 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.0002613/0.3599, allocations: 201.6 kB / 1.036 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.861e-05/0.36, allocations: 39.47 kB / 1.036 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.099e-05/0.3601, allocations: 43.75 kB / 1.036 GB, free: 8.031 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3601, allocations: 4 kB / 1.036 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3601, allocations: 0 / 1.036 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3601, allocations: 3.938 kB / 1.036 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.3623, allocations: 0.7482 MB / 1.037 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3623, allocations: 0 / 1.037 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.587e-05/0.3623, allocations: 15.92 kB / 1.037 GB, free: 7.199 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.3624, allocations: 4 kB / 1.037 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/0.3624, allocations: 19.97 kB / 1.037 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3624, allocations: 3.984 kB / 1.037 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3624, allocations: 0 / 1.037 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.364, allocations: 483.1 kB / 1.037 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002874/0.3643, allocations: 196.5 kB / 1.038 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.212e-05/0.3644, allocations: 12 kB / 1.038 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.3648, allocations: 27.95 kB / 1.038 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.3648, allocations: 16 kB / 1.038 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.223e-05/0.3649, allocations: 55.97 kB / 1.038 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000285/0.3652, allocations: 295.1 kB / 1.038 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3652, allocations: 0 / 1.038 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003608/0.3656, allocations: 63.98 kB / 1.038 GB, free: 6.008 MB / 0.8106 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.0001627/0.3657, allocations: 121.2 kB / 1.038 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001233/0.367, allocations: 442.4 kB / 1.039 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.367, allocations: 0 / 1.039 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000691/0.3677, allocations: 127.2 kB / 1.039 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.3681, allocations: 34.89 kB / 1.039 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.3696, allocations: 0.5405 MB / 1.039 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.37, allocations: 0.7746 MB / 1.04 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.842e-05/0.3701, allocations: 9.078 kB / 1.04 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.3702, allocations: 19.44 kB / 1.04 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of SimCode: time 7.32e-07/0.3702, allocations: 0 / 1.04 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of Templates: time 0.01078/0.381, allocations: 5.009 MB / 1.045 GB, free: 14.77 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches