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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.007205/0.007205, allocations: 100.3 kB / 15.73 MB, free: 6.02 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.001676/0.001676, allocations: 194.9 kB / 16.67 MB, free: 5.93 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.668/2.668, allocations: 469.4 MB / 0.7422 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 71.83 kB / 1.064 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7032/0.7045, allocations: 159.1 MB / 1.22 GB, free: 2.324 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002823/0.7074, allocations: 1.503 MB / 1.221 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.7087, allocations: 0.5462 MB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.854e-05/0.7088, allocations: 4 kB / 1.222 GB, free: 264 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.322e-05/0.7089, allocations: 11.86 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.709, allocations: 31.8 kB / 1.222 GB, free: 220 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008767/0.7099, allocations: 307.4 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005457/0.7105, allocations: 0.4994 MB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.937e-05/0.7105, allocations: 23.97 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000417/0.7109, allocations: 267.6 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.7113, allocations: 151.4 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.194e-05/0.7114, allocations: 28 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.891e-05/0.7115, allocations: 27.94 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.7116, allocations: 111.7 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001978/0.7118, allocations: 183 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004439/0.7123, allocations: 430.1 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.7123, allocations: 7.938 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7123, allocations: 0 / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.057e-05/0.7123, allocations: 0 / 1.224 GB, free: 14.21 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.001258/0.7136, allocations: 0.8781 MB / 1.225 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.7136, allocations: 8.625 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.191e-05/0.7137, allocations: 38.75 kB / 1.225 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.7138, allocations: 48.7 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.7142, allocations: 314.6 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.089e-05/0.7143, allocations: 20.36 kB / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.045e-05/0.7144, allocations: 28.36 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.7155, allocations: 217.3 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.7155, allocations: 3.938 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.7155, allocations: 3.984 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.7156, allocations: 4 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008872/0.7165, allocations: 99.92 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004244/0.7169, allocations: 389.2 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.7181, allocations: 174.5 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008647/0.719, allocations: 112.8 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.719, allocations: 7.984 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001085/0.7201, allocations: 223.1 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 2.024e-06/0.7201, allocations: 0 / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.002914/0.723, allocations: 489 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.7231, allocations: 63.41 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004146/0.7235, allocations: 413.8 kB / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 8.74e-05/0.7236, allocations: 37.7 kB / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.997e-05/0.7237, allocations: 93.44 kB / 1.227 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.635e-05/0.7238, allocations: 43.73 kB / 1.227 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.724, allocations: 129.5 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.697e-05/0.7241, allocations: 318.8 kB / 1.228 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.7243, allocations: 123.8 kB / 1.228 GB, free: 9.734 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002834/0.7246, allocations: 173.9 kB / 1.228 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.725, allocations: 283.4 kB / 1.228 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.725, allocations: 4 kB / 1.228 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008016/0.7258, allocations: 492.7 kB / 1.229 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.853e-05/0.7259, allocations: 93.03 kB / 1.229 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.7259, allocations: 7.984 kB / 1.229 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.726, allocations: 0 / 1.229 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.7261, allocations: 32.09 kB / 1.229 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.7262, allocations: 4 kB / 1.229 GB, free: 8.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005243/0.7267, allocations: 55.84 kB / 1.229 GB, free: 8.535 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.13e-05/0.7268, allocations: 59.98 kB / 1.229 GB, free: 8.477 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.0002148/0.727, allocations: 198.2 kB / 1.229 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.277e-05/0.7271, allocations: 43.69 kB / 1.229 GB, free: 8.234 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.02e-05/0.7271, allocations: 43.75 kB / 1.229 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.7271, allocations: 4 kB / 1.229 GB, free: 8.191 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.7272, allocations: 4 kB / 1.229 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.7272, allocations: 0 / 1.229 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/0.7296, allocations: 0.7482 MB / 1.23 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.7296, allocations: 0 / 1.23 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.801e-05/0.7296, allocations: 4 kB / 1.23 GB, free: 7.375 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.7297, allocations: 4 kB / 1.23 GB, free: 7.371 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.573e-05/0.7297, allocations: 19.97 kB / 1.23 GB, free: 7.352 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7297, allocations: 0 / 1.23 GB, free: 7.352 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.7297, allocations: 0 / 1.23 GB, free: 7.352 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001932/0.7316, allocations: 471.5 kB / 1.23 GB, free: 6.875 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002853/0.7319, allocations: 208.6 kB / 1.231 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.2e-05/0.732, allocations: 12 kB / 1.231 GB, free: 6.641 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005365/0.7326, allocations: 27.97 kB / 1.231 GB, free: 6.613 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.7326, allocations: 19.92 kB / 1.231 GB, free: 6.594 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.271e-05/0.7327, allocations: 55.97 kB / 1.231 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000281/0.733, allocations: 295.1 kB / 1.231 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.31e-07/0.733, allocations: 0 / 1.231 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003635/0.7334, allocations: 67.98 kB / 1.231 GB, free: 6.18 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.00226/0.7356, allocations: 1.013 MB / 1.232 GB, free: 5.141 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00136/0.737, allocations: 450.4 kB / 1.233 GB, free: 4.676 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.737, allocations: 0 / 1.233 GB, free: 4.676 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008686/0.7379, allocations: 119.9 kB / 1.233 GB, free: 4.559 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.7383, allocations: 32.52 kB / 1.233 GB, free: 4.531 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004168/0.7424, allocations: 2.806 MB / 1.235 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.7428, allocations: 0.7707 MB / 1.236 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.714e-05/0.7429, allocations: 21.06 kB / 1.236 GB, free: 0.7734 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.774e-05/0.7429, allocations: 27.42 kB / 1.236 GB, free: 0.7461 MB / 0.9512 GB Notification: Performance of SimCode: time 4.51e-07/0.7429, allocations: 0 / 1.236 GB, free: 0.7461 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.7669, allocations: 6.188 MB / 1.242 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/8.304, allocations: 12 kB / 1.242 GB, free: 10.54 MB / 0.9669 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 50 --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