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.004603/0.004603, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001132/0.001132, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.358/1.358, 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 10.1.1-maint.10.0.x/package.mo): time 2.475/2.475, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 67.84 kB / 1.018 GB, free: 9.949 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7488/0.7502, allocations: 151.6 MB / 1.166 GB, free: 3.961 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002488/0.7527, allocations: 1.515 MB / 1.168 GB, free: 2.434 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001278/0.754, allocations: 0.5446 MB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.988e-05/0.7541, allocations: 4 kB / 1.168 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.7542, allocations: 11.81 kB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.7543, allocations: 27.64 kB / 1.168 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009534/0.7553, allocations: 318.6 kB / 1.168 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0006258/0.7559, allocations: 0.5033 MB / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.575e-05/0.756, allocations: 8 kB / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004205/0.7564, allocations: 279.6 kB / 1.169 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.7567, allocations: 144.2 kB / 1.169 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 9.022e-05/0.7568, allocations: 24 kB / 1.169 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.035e-05/0.7569, allocations: 32 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.7571, allocations: 115.7 kB / 1.17 GB, free: 456 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.7573, allocations: 183 kB / 1.17 GB, free: 272 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004493/0.7577, allocations: 426.5 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.7577, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7577, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.7577, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 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.001388/0.7591, allocations: 0.8803 MB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.7592, allocations: 12.92 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.733e-05/0.7593, allocations: 42.69 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.7594, allocations: 56.69 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004357/0.7599, allocations: 306.6 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.015e-05/0.7599, allocations: 16.36 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.912e-05/0.76, allocations: 32.36 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.7611, allocations: 206 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.7611, allocations: 3.938 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.7612, allocations: 11.97 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.7612, allocations: 4 kB / 1.172 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008846/0.7621, allocations: 101.2 kB / 1.172 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000425/0.7625, allocations: 389.2 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.7637, allocations: 182.5 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008447/0.7645, allocations: 104.8 kB / 1.172 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.7646, allocations: 8.312 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/0.7657, allocations: 231 kB / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.134e-06/0.7657, allocations: 0 / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.002881/0.7686, allocations: 487.2 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.7686, allocations: 63.41 kB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004075/0.769, allocations: 409.9 kB / 1.174 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.377e-05/0.7691, allocations: 41.7 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.958e-05/0.7692, allocations: 93.44 kB / 1.174 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.033e-05/0.7692, allocations: 43.73 kB / 1.174 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.7694, allocations: 125.5 kB / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.7696, allocations: 322.8 kB / 1.174 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.7698, allocations: 119.9 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003115/0.7702, allocations: 177.9 kB / 1.174 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.7706, allocations: 269.3 kB / 1.175 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.7706, allocations: 4 kB / 1.175 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008337/0.7714, allocations: 494.6 kB / 1.175 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-05/0.7715, allocations: 91.31 kB / 1.175 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.7715, allocations: 0 / 1.175 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.7715, allocations: 4 kB / 1.175 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.7717, allocations: 27.97 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.7717, allocations: 3.938 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005366/0.7723, allocations: 67.98 kB / 1.175 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.363e-05/0.7724, allocations: 55.98 kB / 1.175 GB, free: 10.11 MB / 0.9044 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.0002149/0.7726, allocations: 193.8 kB / 1.176 GB, free: 9.914 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.088e-05/0.7727, allocations: 43.7 kB / 1.176 GB, free: 9.871 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.096e-05/0.7727, allocations: 43.69 kB / 1.176 GB, free: 9.828 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.7727, allocations: 0 / 1.176 GB, free: 9.828 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.7728, allocations: 4 kB / 1.176 GB, free: 9.824 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.7728, allocations: 3.984 kB / 1.176 GB, free: 9.82 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002447/0.7752, allocations: 0.75 MB / 1.176 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.7752, allocations: 0 / 1.176 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.021e-05/0.7753, allocations: 11.94 kB / 1.176 GB, free: 9 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.7753, allocations: 0 / 1.176 GB, free: 9 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.192e-05/0.7753, allocations: 19.97 kB / 1.176 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.7754, allocations: 0 / 1.176 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7754, allocations: 4 kB / 1.176 GB, free: 8.977 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.7773, allocations: 475.5 kB / 1.177 GB, free: 8.496 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003053/0.7776, allocations: 204.7 kB / 1.177 GB, free: 8.277 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.247e-05/0.7777, allocations: 8 kB / 1.177 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005407/0.7783, allocations: 35.95 kB / 1.177 GB, free: 8.234 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.252e-05/0.7783, allocations: 7.938 kB / 1.177 GB, free: 8.227 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.287e-05/0.7784, allocations: 63.97 kB / 1.177 GB, free: 8.164 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0003009/0.7787, allocations: 295.1 kB / 1.177 GB, free: 7.875 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.703e-06/0.7787, allocations: 0 / 1.177 GB, free: 7.875 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003974/0.7791, allocations: 71.92 kB / 1.178 GB, free: 7.805 MB / 0.9044 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.002209/0.7813, allocations: 1.017 MB / 1.179 GB, free: 6.762 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001341/0.7827, allocations: 446.7 kB / 1.179 GB, free: 6.301 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.7827, allocations: 4.062 kB / 1.179 GB, free: 6.297 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000857/0.7836, allocations: 115.9 kB / 1.179 GB, free: 6.184 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.784, allocations: 29.48 kB / 1.179 GB, free: 6.156 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004217/0.7882, allocations: 2.791 MB / 1.182 GB, free: 3.238 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.7886, allocations: 0.7708 MB / 1.183 GB, free: 2.441 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.518e-05/0.7886, allocations: 9.094 kB / 1.183 GB, free: 2.434 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.549e-05/0.7887, allocations: 27.42 kB / 1.183 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of SimCode: time 3.6e-07/0.7887, allocations: 0 / 1.183 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02317/0.8119, allocations: 6.197 MB / 1.189 GB, free: 12.18 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/8.319, allocations: 20.16 kB / 1.189 GB, free: 12.16 MB / 0.92 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