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.001749/0.001749, allocations: 108 kB / 15.6 MB, free: 132 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.001098/0.001098, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.323/1.323, 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 10.1.1-maint.10.0.x/package.mo): time 2.482/2.482, allocations: 437 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 67.91 kB / 0.8693 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5803/0.5818, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002445/0.5842, allocations: 1.519 MB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001118/0.5854, allocations: 0.5384 MB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.187e-05/0.5854, allocations: 4 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.356e-05/0.5855, allocations: 11.86 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.783e-05/0.5856, allocations: 19.86 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.5863, allocations: 315.3 kB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0004384/0.5867, allocations: 0.5033 MB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.844e-05/0.5868, allocations: 12 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002989/0.5871, allocations: 275.6 kB / 1.021 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.5873, allocations: 139.6 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.392e-05/0.5874, allocations: 28 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.297e-05/0.5875, allocations: 24 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.5877, allocations: 111.7 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.5878, allocations: 183 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.5882, allocations: 429 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.5882, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5882, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.696e-06/0.5882, allocations: 4 kB / 1.021 GB, free: 14.36 MB / 0.7794 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.001063/0.5893, allocations: 0.8664 MB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.5893, allocations: 8.031 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.563e-05/0.5894, allocations: 42.69 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.5895, allocations: 52.45 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.5898, allocations: 318.1 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.5899, allocations: 12.38 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.423e-05/0.59, allocations: 28.36 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009826/0.591, allocations: 210 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.591, allocations: 11.91 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.591, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.591, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008025/0.5918, allocations: 99.92 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003844/0.5922, allocations: 389.2 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.5933, allocations: 182.4 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007895/0.5941, allocations: 112.8 kB / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.5941, allocations: 0 / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009522/0.5951, allocations: 227.1 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.392e-06/0.5951, allocations: 0 / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002644/0.5978, allocations: 488.8 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.5978, allocations: 59.39 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004132/0.5982, allocations: 413.8 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.72e-05/0.5983, allocations: 41.69 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.884e-05/0.5984, allocations: 93.45 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.782e-05/0.5985, allocations: 35.48 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.5987, allocations: 137.2 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.5988, allocations: 318.8 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000267/0.5991, allocations: 135.8 kB / 1.025 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.5994, allocations: 161.9 kB / 1.026 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.5997, allocations: 278.6 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.5998, allocations: 0 / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000812/0.6006, allocations: 492.6 kB / 1.026 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.423e-05/0.6007, allocations: 91.5 kB / 1.026 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.6007, allocations: 8 kB / 1.026 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.6007, allocations: 4 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.6009, allocations: 19.92 kB / 1.027 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.6009, allocations: 4 kB / 1.027 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004927/0.6014, allocations: 59.78 kB / 1.027 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.242e-05/0.6015, allocations: 63.98 kB / 1.027 GB, free: 8.637 MB / 0.7794 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.0002081/0.6017, allocations: 197.7 kB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.972e-05/0.6018, allocations: 39.47 kB / 1.027 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.281e-05/0.6018, allocations: 51.67 kB / 1.027 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.6018, allocations: 0 / 1.027 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.6019, allocations: 0 / 1.027 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.6019, allocations: 3.938 kB / 1.027 GB, free: 8.336 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.604, allocations: 0.7455 MB / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.604, allocations: 3.984 kB / 1.028 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.398e-05/0.6041, allocations: 4 kB / 1.028 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.6041, allocations: 0 / 1.028 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.6041, allocations: 19.97 kB / 1.028 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.6041, allocations: 0 / 1.028 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.6041, allocations: 4 kB / 1.028 GB, free: 7.504 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.6059, allocations: 479.5 kB / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.6061, allocations: 204.5 kB / 1.028 GB, free: 6.801 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.548e-05/0.6062, allocations: 12 kB / 1.028 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.6067, allocations: 27.97 kB / 1.028 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.552e-05/0.6067, allocations: 11.98 kB / 1.028 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.988e-05/0.6068, allocations: 55.97 kB / 1.028 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002492/0.607, allocations: 295.1 kB / 1.029 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.607, allocations: 0 / 1.029 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003284/0.6074, allocations: 71.98 kB / 1.029 GB, free: 6.34 MB / 0.7794 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.002011/0.6094, allocations: 1.019 MB / 1.03 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001224/0.6106, allocations: 451.7 kB / 1.03 GB, free: 4.832 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.6106, allocations: 0 / 1.03 GB, free: 4.832 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007845/0.6114, allocations: 120.2 kB / 1.03 GB, free: 4.715 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.6118, allocations: 27.94 kB / 1.03 GB, free: 4.688 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003852/0.6156, allocations: 2.771 MB / 1.033 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.616, allocations: 0.7822 MB / 1.034 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.623e-05/0.616, allocations: 13.09 kB / 1.034 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.967e-05/0.6161, allocations: 27.42 kB / 1.034 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of SimCode: time 1.744e-06/0.6161, allocations: 0 / 1.034 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02062/0.6367, allocations: 6.195 MB / 1.04 GB, free: 10.68 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.995/7.632, allocations: 16.98 kB / 1.04 GB, free: 10.67 MB / 0.795 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