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: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01072/0.01072, allocations: 103.8 kB / 15.73 MB, free: 6.051 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.001766/0.001766, allocations: 191.5 kB / 16.67 MB, free: 5.984 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.532/1.532, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.509/2.509, allocations: 390.2 MB / 0.6648 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 67.02 kB / 0.9508 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3738, allocations: 140.4 MB / 1.088 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003619/0.3775, allocations: 1.523 MB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001678/0.3792, allocations: 0.5399 MB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.3794, allocations: 3.938 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.3796, allocations: 11.86 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.3799, allocations: 31.84 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.3812, allocations: 308.8 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009373/0.3822, allocations: 0.507 MB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.3823, allocations: 19.95 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008094/0.3831, allocations: 267.6 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003549/0.3835, allocations: 147.6 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.336e-05/0.3836, allocations: 32 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.543e-05/0.3837, allocations: 24 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.3839, allocations: 115.7 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002531/0.3841, allocations: 183 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000603/0.3847, allocations: 426.6 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.3848, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.635e-06/0.3848, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.097e-05/0.3848, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 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.001577/0.3864, allocations: 0.8742 MB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3864, allocations: 8.031 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.3866, allocations: 44.56 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.387, allocations: 310.2 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.927e-05/0.387, allocations: 16.38 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.646e-05/0.3871, allocations: 24.36 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008981/0.388, allocations: 217.9 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3881, allocations: 4.188 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.3881, allocations: 11.94 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3881, allocations: 0 / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006744/0.3888, allocations: 95.92 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004315/0.3892, allocations: 385.2 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009396/0.3902, allocations: 178.5 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006816/0.3909, allocations: 108.8 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.3909, allocations: 0 / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009293/0.3918, allocations: 235 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.174e-06/0.3919, allocations: 0 / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002335/0.3942, allocations: 488.1 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.309e-05/0.3943, allocations: 67.31 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005299/0.3948, allocations: 409.9 kB / 1.095 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.07e-05/0.3949, allocations: 45.69 kB / 1.095 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.395, allocations: 93.45 kB / 1.095 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.512e-05/0.3951, allocations: 27.61 kB / 1.095 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.3954, allocations: 129.3 kB / 1.096 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3956, allocations: 318.8 kB / 1.096 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003121/0.3959, allocations: 123.9 kB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003633/0.3962, allocations: 182.9 kB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/0.3967, allocations: 270.5 kB / 1.096 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.3967, allocations: 4 kB / 1.096 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000872/0.3976, allocations: 498.3 kB / 1.097 GB, free: 8.062 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.3977, allocations: 97.02 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3977, allocations: 4 kB / 1.097 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.218e-05/0.3978, allocations: 0 / 1.097 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.398, allocations: 23.92 kB / 1.097 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.398, allocations: 7.938 kB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004684/0.3985, allocations: 64.03 kB / 1.097 GB, free: 7.859 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.941e-05/0.3986, allocations: 55.98 kB / 1.097 GB, free: 7.805 MB / 0.8575 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.0003135/0.3989, allocations: 201.7 kB / 1.097 GB, free: 7.598 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.426e-05/0.399, allocations: 39.47 kB / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.563e-05/0.3991, allocations: 39.73 kB / 1.097 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.3991, allocations: 4 kB / 1.097 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.3991, allocations: 4 kB / 1.097 GB, free: 7.504 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3991, allocations: 3.984 kB / 1.097 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.4013, allocations: 0.7404 MB / 1.098 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.4013, allocations: 3.938 kB / 1.098 GB, free: 6.695 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.076e-05/0.4013, allocations: 8 kB / 1.098 GB, free: 6.688 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.4013, allocations: 0 / 1.098 GB, free: 6.688 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/0.4014, allocations: 23.97 kB / 1.098 GB, free: 6.664 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.4014, allocations: 0 / 1.098 GB, free: 6.664 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4014, allocations: 0 / 1.098 GB, free: 6.664 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.4031, allocations: 479.2 kB / 1.099 GB, free: 6.18 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.4033, allocations: 192.5 kB / 1.099 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.065e-05/0.4034, allocations: 16 kB / 1.099 GB, free: 5.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004313/0.4039, allocations: 31.95 kB / 1.099 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.4039, allocations: 11.92 kB / 1.099 GB, free: 5.914 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.036e-05/0.404, allocations: 59.98 kB / 1.099 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003146/0.4043, allocations: 295.1 kB / 1.099 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4043, allocations: 3.938 kB / 1.099 GB, free: 5.566 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004204/0.4047, allocations: 63.98 kB / 1.099 GB, free: 5.504 MB / 0.8575 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.0002107/0.405, allocations: 125.4 kB / 1.099 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001255/0.4062, allocations: 444.3 kB / 1.1 GB, free: 4.914 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4062, allocations: 0 / 1.1 GB, free: 4.914 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006907/0.4069, allocations: 115.9 kB / 1.1 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.4073, allocations: 34.84 kB / 1.1 GB, free: 4.766 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.4088, allocations: 0.5435 MB / 1.1 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.4092, allocations: 0.7708 MB / 1.101 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.584e-05/0.4092, allocations: 13.08 kB / 1.101 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.343e-05/0.4093, allocations: 11.44 kB / 1.101 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of SimCode: time 5.21e-07/0.4093, allocations: 0 / 1.101 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of Templates: time 0.008925/0.4182, allocations: 5.021 MB / 1.106 GB, free: 14.26 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.makefile (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 & ./Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches