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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> 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.007316/0.007316, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001787/0.001787, allocations: 202.6 kB / 16.68 MB, free: 5.969 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.502/1.502, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.957/2.957, allocations: 482.4 MB / 0.7548 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002808/0.002808, allocations: 63.89 kB / 1.083 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3062, allocations: 162.2 MB / 1.241 GB, free: 10.3 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002573/0.3088, allocations: 1.51 MB / 1.243 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001303/0.3102, allocations: 0.5422 MB / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.62e-05/0.3102, allocations: 0 / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.3104, allocations: 7.922 kB / 1.243 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.3105, allocations: 27.8 kB / 1.243 GB, free: 8.203 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007716/0.3112, allocations: 318.6 kB / 1.244 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005666/0.3118, allocations: 0.4956 MB / 1.244 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.661e-05/0.3119, allocations: 7.984 kB / 1.244 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000373/0.3123, allocations: 283.6 kB / 1.245 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002793/0.3125, allocations: 147.5 kB / 1.245 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.3127, allocations: 28 kB / 1.245 GB, free: 6.941 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.404e-05/0.3128, allocations: 24 kB / 1.245 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.3129, allocations: 111.7 kB / 1.245 GB, free: 6.809 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002033/0.3131, allocations: 187 kB / 1.245 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.3136, allocations: 430.4 kB / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3136, allocations: 0 / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3136, allocations: 0 / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.3136, allocations: 4 kB / 1.245 GB, free: 6.199 MB / 0.9981 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.001274/0.3149, allocations: 0.8781 MB / 1.246 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.3149, allocations: 8.031 kB / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.452e-05/0.315, allocations: 38.73 kB / 1.246 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.3151, allocations: 48.7 kB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.3155, allocations: 314.6 kB / 1.247 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.521e-05/0.3156, allocations: 20.36 kB / 1.247 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.422e-05/0.3157, allocations: 24.36 kB / 1.247 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009948/0.3167, allocations: 214 kB / 1.247 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3167, allocations: 3.938 kB / 1.247 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/0.3167, allocations: 8 kB / 1.247 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3168, allocations: 3.984 kB / 1.247 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000782/0.3175, allocations: 103.9 kB / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004913/0.318, allocations: 393.2 kB / 1.247 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.3192, allocations: 177.9 kB / 1.248 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007698/0.3199, allocations: 112.8 kB / 1.248 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.32, allocations: 0 / 1.248 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001013/0.321, allocations: 235 kB / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 1.673e-06/0.321, allocations: 0 / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.002698/0.3237, allocations: 496.2 kB / 1.248 GB, free: 2.953 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.3238, allocations: 59.39 kB / 1.248 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004878/0.3243, allocations: 409.9 kB / 1.249 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.83e-05/0.3244, allocations: 41.69 kB / 1.249 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.604e-05/0.3245, allocations: 97.44 kB / 1.249 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.301e-05/0.3245, allocations: 35.75 kB / 1.249 GB, free: 2.285 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.3248, allocations: 133.4 kB / 1.249 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3249, allocations: 322.8 kB / 1.249 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.3252, allocations: 115.9 kB / 1.25 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.3255, allocations: 173.9 kB / 1.25 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004134/0.3259, allocations: 282.7 kB / 1.25 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3259, allocations: 0 / 1.25 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008796/0.3268, allocations: 488.6 kB / 1.25 GB, free: 0.7148 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.785e-05/0.3269, allocations: 92.72 kB / 1.251 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.327, allocations: 8.188 kB / 1.251 GB, free: 0.6055 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.327, allocations: 3.938 kB / 1.251 GB, free: 0.6016 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.3272, allocations: 23.92 kB / 1.251 GB, free: 0.5781 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.3272, allocations: 4 kB / 1.251 GB, free: 0.5742 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004965/0.3277, allocations: 59.84 kB / 1.251 GB, free: 0.5156 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.722e-05/0.3278, allocations: 55.98 kB / 1.251 GB, free: 472 kB / 0.9981 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.000257/0.328, allocations: 211.1 kB / 1.251 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.326e-05/0.3281, allocations: 39.7 kB / 1.251 GB, free: 216 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.02e-05/0.3282, allocations: 43.73 kB / 1.251 GB, free: 176 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3282, allocations: 4 kB / 1.251 GB, free: 172 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3282, allocations: 0 / 1.251 GB, free: 172 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3282, allocations: 0 / 1.251 GB, free: 172 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5616/0.8898, allocations: 0.7308 MB / 1.252 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.8898, allocations: 1.25 kB / 1.252 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.535e-05/0.8899, allocations: 8.609 kB / 1.252 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.8899, allocations: 2.031 kB / 1.252 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/0.8899, allocations: 25.2 kB / 1.252 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.8899, allocations: 0.9375 kB / 1.252 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.8899, allocations: 2.859 kB / 1.252 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001768/0.8917, allocations: 472.5 kB / 1.252 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.892, allocations: 198.9 kB / 1.252 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.355e-05/0.892, allocations: 17.91 kB / 1.252 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004846/0.8925, allocations: 32.45 kB / 1.252 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.8926, allocations: 12.17 kB / 1.252 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-05/0.8927, allocations: 59.95 kB / 1.252 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003168/0.893, allocations: 293.8 kB / 1.253 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.893, allocations: 0 / 1.253 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004274/0.8934, allocations: 67.69 kB / 1.253 GB, free: 14.85 MB / 0.9981 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.001999/0.8954, allocations: 1.028 MB / 1.254 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001274/0.8967, allocations: 446 kB / 1.254 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8967, allocations: 4.688 kB / 1.254 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00078/0.8975, allocations: 114.4 kB / 1.254 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.8979, allocations: 33.95 kB / 1.254 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004075/0.902, allocations: 2.784 MB / 1.257 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.9023, allocations: 0.7715 MB / 1.258 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.531e-05/0.9024, allocations: 14.14 kB / 1.258 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-05/0.9024, allocations: 24.23 kB / 1.258 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of SimCode: time 5.21e-07/0.9024, allocations: 0 / 1.258 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.9304, allocations: 6.213 MB / 1.264 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.892, allocations: 14.75 kB / 1.264 GB, free: 10.5 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 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.csv","/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