Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_11_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.008755/0.008755, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002174/0.002174, allocations: 196 kB / 16.68 MB, free: 5.934 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.751/2.751, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 72.09 kB / 1.065 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7581/0.7601, allocations: 159.1 MB / 1.22 GB, free: 2.074 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002627/0.7627, allocations: 1.515 MB / 1.222 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.764, allocations: 0.5423 MB / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.294e-05/0.7641, allocations: 3.938 kB / 1.222 GB, free: 0 / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.7642, allocations: 4.047 kB / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001097/0.7643, allocations: 35.84 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000817/0.7652, allocations: 314.5 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005498/0.7657, allocations: 0.4993 MB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.288e-05/0.7658, allocations: 11.98 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003718/0.7662, allocations: 275.6 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002741/0.7664, allocations: 143.4 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.697e-05/0.7665, allocations: 28 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.7667, allocations: 28 kB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.7668, allocations: 119.6 kB / 1.224 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.767, allocations: 183.1 kB / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004744/0.7675, allocations: 418.1 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.7675, allocations: 3.984 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.276e-06/0.7675, allocations: 0 / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.7675, allocations: 3.938 kB / 1.224 GB, free: 13.97 MB / 0.9512 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.001294/0.7688, allocations: 0.8781 MB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.7689, allocations: 16.03 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.82e-05/0.7689, allocations: 34.73 kB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.769, allocations: 56.7 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003836/0.7694, allocations: 314.5 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.7695, allocations: 16.36 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.427e-05/0.7695, allocations: 24.38 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009469/0.7705, allocations: 214 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.7705, allocations: 11.88 kB / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.7706, allocations: 0 / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.7706, allocations: 0 / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007475/0.7713, allocations: 99.92 kB / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004733/0.7718, allocations: 393.2 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.7729, allocations: 182.9 kB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007452/0.7736, allocations: 104.8 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.7737, allocations: 8 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00097/0.7747, allocations: 229.8 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 1.954e-06/0.7747, allocations: 0 / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.002591/0.7773, allocations: 489 kB / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.7773, allocations: 67.39 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.7778, allocations: 401.9 kB / 1.228 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.436e-05/0.7779, allocations: 45.69 kB / 1.228 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.471e-05/0.778, allocations: 101.4 kB / 1.228 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.963e-05/0.778, allocations: 35.77 kB / 1.228 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.7782, allocations: 121.5 kB / 1.228 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.7784, allocations: 326.8 kB / 1.228 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.7787, allocations: 119.9 kB / 1.228 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.779, allocations: 181.5 kB / 1.228 GB, free: 9.289 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.7794, allocations: 283.4 kB / 1.229 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.7794, allocations: 0 / 1.229 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008834/0.7803, allocations: 0.4889 MB / 1.229 GB, free: 8.473 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.7804, allocations: 91.31 kB / 1.229 GB, free: 8.371 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.7804, allocations: 0 / 1.229 GB, free: 8.371 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.7805, allocations: 4 kB / 1.229 GB, free: 8.367 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.7806, allocations: 19.92 kB / 1.229 GB, free: 8.348 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.036e-06/0.7807, allocations: 4 kB / 1.229 GB, free: 8.344 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004596/0.7811, allocations: 60.09 kB / 1.229 GB, free: 8.285 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-05/0.7812, allocations: 63.97 kB / 1.229 GB, free: 8.223 MB / 0.9512 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.000234/0.7815, allocations: 201.6 kB / 1.23 GB, free: 8.016 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.7815, allocations: 43.7 kB / 1.23 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.441e-05/0.7816, allocations: 43.73 kB / 1.23 GB, free: 7.934 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.7816, allocations: 4 kB / 1.23 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.7816, allocations: 0 / 1.23 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.7816, allocations: 0 / 1.23 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.7839, allocations: 0.7435 MB / 1.23 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.7839, allocations: 4 kB / 1.23 GB, free: 7.125 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-05/0.7839, allocations: 11.98 kB / 1.23 GB, free: 7.113 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.7839, allocations: 0 / 1.23 GB, free: 7.113 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-05/0.784, allocations: 15.98 kB / 1.23 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.784, allocations: 0 / 1.23 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.784, allocations: 7.938 kB / 1.23 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.7858, allocations: 475.4 kB / 1.231 GB, free: 6.609 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/0.7861, allocations: 208.6 kB / 1.231 GB, free: 6.387 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.115e-05/0.7862, allocations: 11.98 kB / 1.231 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004808/0.7866, allocations: 27.97 kB / 1.231 GB, free: 6.348 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.156e-05/0.7867, allocations: 11.98 kB / 1.231 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.505e-05/0.7868, allocations: 63.97 kB / 1.231 GB, free: 6.273 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003235/0.7871, allocations: 291.1 kB / 1.231 GB, free: 5.988 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7871, allocations: 0 / 1.231 GB, free: 5.988 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003722/0.7875, allocations: 64 kB / 1.232 GB, free: 5.926 MB / 0.9512 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.002242/0.7897, allocations: 1.027 MB / 1.233 GB, free: 4.871 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001361/0.7911, allocations: 445.8 kB / 1.233 GB, free: 4.414 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.7911, allocations: 0 / 1.233 GB, free: 4.414 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007806/0.7919, allocations: 119.8 kB / 1.233 GB, free: 4.297 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.7923, allocations: 30.61 kB / 1.233 GB, free: 4.273 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004421/0.7967, allocations: 2.8 MB / 1.236 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.7972, allocations: 0.7746 MB / 1.237 GB, free: 0.543 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.44e-05/0.7973, allocations: 13.08 kB / 1.237 GB, free: 0.5273 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.035e-05/0.7973, allocations: 23.42 kB / 1.237 GB, free: 0.5039 MB / 0.9512 GB Notification: Performance of SimCode: time 2.9e-07/0.7973, allocations: 4 kB / 1.237 GB, free: 0.5 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.8252, allocations: 6.178 MB / 1.243 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.996/8.821, allocations: 16.53 kB / 1.243 GB, free: 10.27 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches