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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008057/0.008057, allocations: 101.1 kB / 15.73 MB, free: 6.012 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.001896/0.001896, allocations: 187 kB / 16.67 MB, free: 5.949 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.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.87/2.87, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 63.91 kB / 1.054 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3241, allocations: 157.4 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003551/0.3277, allocations: 1.511 MB / 1.209 GB, free: 8.691 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.3292, allocations: 0.5401 MB / 1.209 GB, free: 8.152 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.171e-05/0.3293, allocations: 3.938 kB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.3295, allocations: 3.938 kB / 1.209 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.3296, allocations: 27.84 kB / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009247/0.3305, allocations: 306.1 kB / 1.21 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006505/0.3312, allocations: 0.511 MB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.366e-05/0.3313, allocations: 8 kB / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005093/0.3318, allocations: 271.6 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003825/0.3322, allocations: 151.5 kB / 1.21 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.3323, allocations: 28 kB / 1.211 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.749e-05/0.3324, allocations: 24 kB / 1.211 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.3325, allocations: 115.7 kB / 1.211 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.3328, allocations: 187 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004613/0.3332, allocations: 422.9 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3332, allocations: 0 / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3333, allocations: 4 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.186e-05/0.3333, allocations: 0 / 1.211 GB, free: 6.121 MB / 0.9669 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.001345/0.3346, allocations: 0.8665 MB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3347, allocations: 8.625 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.764e-05/0.3347, allocations: 42.73 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.3349, allocations: 52.47 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004757/0.3353, allocations: 318.2 kB / 1.212 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.046e-05/0.3354, allocations: 16.36 kB / 1.212 GB, free: 4.691 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.34e-05/0.3355, allocations: 24.38 kB / 1.213 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009895/0.3365, allocations: 214.7 kB / 1.213 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.3365, allocations: 3.938 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.3366, allocations: 4 kB / 1.213 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3366, allocations: 4 kB / 1.213 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007614/0.3373, allocations: 95.92 kB / 1.213 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004467/0.3378, allocations: 389.2 kB / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.3389, allocations: 178.4 kB / 1.213 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007651/0.3396, allocations: 116.7 kB / 1.213 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.3397, allocations: 0 / 1.213 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009323/0.3406, allocations: 229 kB / 1.214 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.3406, allocations: 4 kB / 1.214 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.002584/0.3432, allocations: 476.9 kB / 1.214 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.3433, allocations: 71.27 kB / 1.214 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.3437, allocations: 417.8 kB / 1.215 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.551e-05/0.3438, allocations: 41.69 kB / 1.215 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.304e-05/0.3439, allocations: 89.45 kB / 1.215 GB, free: 2.27 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.835e-05/0.3439, allocations: 35.59 kB / 1.215 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.3441, allocations: 125.3 kB / 1.215 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3442, allocations: 322.8 kB / 1.215 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.3445, allocations: 119.9 kB / 1.215 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.3448, allocations: 175.2 kB / 1.215 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003851/0.3452, allocations: 279.3 kB / 1.216 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.3452, allocations: 4 kB / 1.216 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007998/0.346, allocations: 481.9 kB / 1.216 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.742e-05/0.3461, allocations: 95.3 kB / 1.216 GB, free: 0.5703 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3461, allocations: 192 / 1.216 GB, free: 0.5703 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3462, allocations: 8 kB / 1.216 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.3463, allocations: 23.92 kB / 1.216 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3463, allocations: 0 / 1.216 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004711/0.3468, allocations: 63.73 kB / 1.216 GB, free: 488 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.259e-05/0.3469, allocations: 59.97 kB / 1.216 GB, free: 428 kB / 0.9669 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.0002182/0.3471, allocations: 201.7 kB / 1.217 GB, free: 220 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.158e-05/0.3472, allocations: 43.47 kB / 1.217 GB, free: 176 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.31e-05/0.3473, allocations: 35.75 kB / 1.217 GB, free: 140 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3473, allocations: 7.984 kB / 1.217 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3473, allocations: 0 / 1.217 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3473, allocations: 0 / 1.217 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002277/0.3496, allocations: 0.7547 MB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3496, allocations: 0 / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-05/0.3497, allocations: 4 kB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.3497, allocations: 7.984 kB / 1.217 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.718e-05/0.3497, allocations: 19.98 kB / 1.217 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.3497, allocations: 0 / 1.217 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3497, allocations: 0 / 1.217 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.3515, allocations: 479.1 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.3518, allocations: 196.5 kB / 1.218 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.293e-05/0.3519, allocations: 19.98 kB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.3523, allocations: 27.97 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.353e-05/0.3524, allocations: 7.984 kB / 1.218 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.429e-05/0.3525, allocations: 59.98 kB / 1.218 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002768/0.3527, allocations: 295.1 kB / 1.219 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3528, allocations: 3.938 kB / 1.219 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003688/0.3531, allocations: 63.98 kB / 1.219 GB, free: 14.12 MB / 0.9825 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.002068/0.3552, allocations: 1.029 MB / 1.22 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001286/0.3565, allocations: 442.9 kB / 1.22 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3565, allocations: 0 / 1.22 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007714/0.3573, allocations: 119.8 kB / 1.22 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.3577, allocations: 29.91 kB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00409/0.3618, allocations: 2.789 MB / 1.223 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.3621, allocations: 0.7746 MB / 1.224 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.613e-05/0.3622, allocations: 17.23 kB / 1.224 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.285e-05/0.3623, allocations: 23.42 kB / 1.224 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.3623, allocations: 0 / 1.224 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.386, allocations: 6.324 MB / 1.23 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.669/8.055, allocations: 1.875 kB / 1.23 GB, free: 2.355 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > 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