Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_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.00172/0.001719, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 194.2 kB / 16.53 MB, free: 6.656 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.2/2.2, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 63.89 kB / 0.8126 GB, free: 14.4 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5574/0.5588, allocations: 140.4 MB / 0.9497 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002197/0.561, allocations: 1.511 MB / 0.9512 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001041/0.562, allocations: 0.5402 MB / 0.9517 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.284e-05/0.5621, allocations: 7.938 kB / 0.9517 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.634e-05/0.5622, allocations: 3.938 kB / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.714e-05/0.5623, allocations: 27.38 kB / 0.9517 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006293/0.563, allocations: 316.6 kB / 0.952 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.5634, allocations: 0.4964 MB / 0.9525 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.568e-05/0.5634, allocations: 13.45 kB / 0.9525 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.5637, allocations: 281.1 kB / 0.9528 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.5639, allocations: 131.9 kB / 0.9529 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.457e-05/0.564, allocations: 26.94 kB / 0.953 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.071e-05/0.5641, allocations: 31.97 kB / 0.953 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.5643, allocations: 115.1 kB / 0.9531 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.5644, allocations: 186.8 kB / 0.9533 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.5647, allocations: 420.4 kB / 0.9537 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.5647, allocations: 0 / 0.9537 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.472e-06/0.5647, allocations: 1.438 kB / 0.9537 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.5648, allocations: 0 / 0.9537 GB, free: 6.344 MB / 0.7169 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.000924/0.5657, allocations: 0.8752 MB / 0.9545 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.5657, allocations: 9 kB / 0.9545 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.846e-05/0.5658, allocations: 37.52 kB / 0.9546 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.5659, allocations: 59.28 kB / 0.9546 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.5661, allocations: 310.8 kB / 0.9549 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.5662, allocations: 18.86 kB / 0.955 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.018e-05/0.5663, allocations: 23.75 kB / 0.955 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009208/0.5672, allocations: 221.1 kB / 0.9552 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.5672, allocations: 5.031 kB / 0.9552 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.5672, allocations: 1.25 kB / 0.9552 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.5672, allocations: 1.375 kB / 0.9552 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007473/0.568, allocations: 99.66 kB / 0.9553 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003109/0.5683, allocations: 391.2 kB / 0.9557 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009941/0.5693, allocations: 177.9 kB / 0.9558 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007142/0.57, allocations: 114.7 kB / 0.9559 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.5701, allocations: 2.656 kB / 0.9559 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000898/0.571, allocations: 225.6 kB / 0.9562 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.415e-06/0.571, allocations: 0 / 0.9562 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002405/0.5734, allocations: 487 kB / 0.9566 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.5734, allocations: 59.41 kB / 0.9567 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.5738, allocations: 418 kB / 0.9571 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.5739, allocations: 45.12 kB / 0.9571 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.739e-05/0.5739, allocations: 95.84 kB / 0.9572 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.574, allocations: 46.5 kB / 0.9573 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.5742, allocations: 127.8 kB / 0.9574 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.144e-05/0.5742, allocations: 321 kB / 0.9577 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.5744, allocations: 122.1 kB / 0.9578 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.5747, allocations: 170 kB / 0.958 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.5751, allocations: 280.8 kB / 0.9582 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.5751, allocations: 1.312 kB / 0.9582 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007895/0.5759, allocations: 487.1 kB / 0.9587 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.191e-05/0.5759, allocations: 92.62 kB / 0.9588 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.5759, allocations: 1.062 kB / 0.9588 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.576, allocations: 3.406 kB / 0.9588 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.5761, allocations: 34.41 kB / 0.9588 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.5762, allocations: 2.844 kB / 0.9588 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004933/0.5766, allocations: 62.48 kB / 0.9589 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.438e-05/0.5767, allocations: 56.77 kB / 0.9589 GB, free: 2.492 MB / 0.7169 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.0001628/0.5769, allocations: 195.1 kB / 0.9591 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.134e-05/0.577, allocations: 37.34 kB / 0.9592 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.323e-05/0.577, allocations: 44.25 kB / 0.9592 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.577, allocations: 1.25 kB / 0.9592 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.577, allocations: 0 / 0.9592 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.577, allocations: 9.016 kB / 0.9592 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.579, allocations: 0.7503 MB / 0.9599 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.579, allocations: 0 / 0.9599 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.373e-05/0.5791, allocations: 4.344 kB / 0.96 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.5791, allocations: 1 kB / 0.96 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/0.5791, allocations: 23.28 kB / 0.96 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.5791, allocations: 1.156 kB / 0.96 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.5791, allocations: 0 / 0.96 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.5808, allocations: 483 kB / 0.9604 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.581, allocations: 195.5 kB / 0.9606 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.835e-05/0.581, allocations: 9.531 kB / 0.9606 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004454/0.5815, allocations: 40.17 kB / 0.9607 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.137e-05/0.5815, allocations: 3.156 kB / 0.9607 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.124e-05/0.5816, allocations: 61.44 kB / 0.9607 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002358/0.5818, allocations: 294 kB / 0.961 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5818, allocations: 1.062 kB / 0.961 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003347/0.5822, allocations: 66.05 kB / 0.9611 GB, free: 1.074 MB / 0.7169 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.001769/0.584, allocations: 1.035 MB / 0.9621 GB, free: 264 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001182/0.5851, allocations: 446 kB / 0.9625 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5852, allocations: 1.25 kB / 0.9625 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007493/0.5859, allocations: 118.6 kB / 0.9626 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.5863, allocations: 27.61 kB / 0.9627 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.5902, allocations: 2.779 MB / 0.9654 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.5905, allocations: 0.7711 MB / 0.9661 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.628e-05/0.5906, allocations: 19.98 kB / 0.9661 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.915e-05/0.5906, allocations: 26.98 kB / 0.9662 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of SimCode: time 5.91e-07/0.5907, allocations: 0 / 0.9662 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02085/0.6115, allocations: 6.177 MB / 0.9722 GB, free: 9.633 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/8.04, allocations: 4.625 kB / 0.9722 GB, free: 9.633 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches