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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_10_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.007428/0.007428, allocations: 98.09 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.001807/0.001807, allocations: 197.3 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.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.779/2.779, allocations: 437 MB / 0.7105 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 55.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2844, allocations: 151.6 MB / 1.166 GB, free: 7.309 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002552/0.287, allocations: 1.514 MB / 1.168 GB, free: 5.777 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001283/0.2883, allocations: 0.5442 MB / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.381e-05/0.2884, allocations: 0 / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 8.948e-05/0.2885, allocations: 15.86 kB / 1.168 GB, free: 5.219 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.2886, allocations: 31.62 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007672/0.2894, allocations: 303.3 kB / 1.168 GB, free: 4.891 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005799/0.29, allocations: 0.5072 MB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 5.038e-05/0.29, allocations: 15.98 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003765/0.2904, allocations: 267.6 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.2907, allocations: 143.7 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2908, allocations: 28 kB / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.977e-05/0.2909, allocations: 28 kB / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.2911, allocations: 119.6 kB / 1.17 GB, free: 3.793 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002052/0.2913, allocations: 179.1 kB / 1.17 GB, free: 3.617 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004887/0.2918, allocations: 426.6 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2918, allocations: 0 / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.482e-06/0.2918, allocations: 0 / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.2918, allocations: 0 / 1.17 GB, free: 3.199 MB / 0.92 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.001298/0.2931, allocations: 0.8898 MB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2931, allocations: 12.03 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.503e-05/0.2932, allocations: 34.75 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.2933, allocations: 52.7 kB / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.2937, allocations: 310.6 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.657e-05/0.2937, allocations: 16.36 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.453e-05/0.2938, allocations: 32.36 kB / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009941/0.2948, allocations: 213.9 kB / 1.172 GB, free: 1.512 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.2948, allocations: 3.938 kB / 1.172 GB, free: 1.508 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/0.2949, allocations: 3.984 kB / 1.172 GB, free: 1.504 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.2949, allocations: 4 kB / 1.172 GB, free: 1.5 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008008/0.2957, allocations: 95.92 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004597/0.2962, allocations: 393.2 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.2973, allocations: 181.6 kB / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007767/0.298, allocations: 108.8 kB / 1.172 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.2981, allocations: 15.92 kB / 1.172 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009681/0.2991, allocations: 220.9 kB / 1.173 GB, free: 448 kB / 0.92 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.2991, allocations: 0 / 1.173 GB, free: 448 kB / 0.92 GB Notification: Performance of matching and sorting (n=16): time 0.002666/0.3017, allocations: 489 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.3018, allocations: 67.39 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004517/0.3023, allocations: 413.9 kB / 1.174 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.116e-05/0.3024, allocations: 37.7 kB / 1.174 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.345e-05/0.3024, allocations: 93.44 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.368e-05/0.3025, allocations: 47.62 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/0.3027, allocations: 125.5 kB / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3029, allocations: 322.8 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.3032, allocations: 115.9 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/0.3035, allocations: 170.9 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004146/0.3039, allocations: 275.4 kB / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3039, allocations: 0 / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008853/0.3048, allocations: 0.4892 MB / 1.175 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.04e-05/0.3049, allocations: 91.31 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3049, allocations: 0 / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.305, allocations: 4 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.3051, allocations: 31.91 kB / 1.175 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.3052, allocations: 4.188 kB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/0.3056, allocations: 59.8 kB / 1.175 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.379e-05/0.3057, allocations: 59.98 kB / 1.175 GB, free: 13.46 MB / 0.9356 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.0002276/0.306, allocations: 189.7 kB / 1.176 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.703e-05/0.3061, allocations: 51.69 kB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.71e-05/0.3061, allocations: 39.75 kB / 1.176 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3061, allocations: 4 kB / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3061, allocations: 0 / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.3062, allocations: 0 / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.3085, allocations: 0.756 MB / 1.176 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3085, allocations: 0 / 1.176 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.626e-05/0.3085, allocations: 4 kB / 1.176 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3085, allocations: 0 / 1.176 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.3086, allocations: 19.97 kB / 1.176 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.3086, allocations: 0 / 1.176 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3086, allocations: 4 kB / 1.176 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.3104, allocations: 475.4 kB / 1.177 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002687/0.3107, allocations: 204.7 kB / 1.177 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.345e-05/0.3108, allocations: 8 kB / 1.177 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004854/0.3113, allocations: 31.97 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.175e-05/0.3113, allocations: 11.98 kB / 1.177 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.88e-05/0.3114, allocations: 59.97 kB / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003294/0.3117, allocations: 303 kB / 1.177 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3117, allocations: 0 / 1.177 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003701/0.3121, allocations: 67.98 kB / 1.178 GB, free: 11.16 MB / 0.9356 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.002165/0.3143, allocations: 1.02 MB / 1.179 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001345/0.3156, allocations: 444.9 kB / 1.179 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.3157, allocations: 4 kB / 1.179 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008144/0.3165, allocations: 115.9 kB / 1.179 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.3169, allocations: 21.55 kB / 1.179 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00445/0.3213, allocations: 2.799 MB / 1.182 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.3218, allocations: 0.7748 MB / 1.183 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.464e-05/0.3218, allocations: 13.08 kB / 1.183 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.084e-05/0.3219, allocations: 27.42 kB / 1.183 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of SimCode: time 3.81e-07/0.3219, allocations: 4 kB / 1.183 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03007/0.352, allocations: 6.192 MB / 1.189 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.979/8.331, allocations: 11.98 kB / 1.189 GB, free: 15.51 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.csv","/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