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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: 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_latest_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_latest_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.001064/0.001064, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00938/0.00938, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.63/1.63, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.85/2.85, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003208, allocations: 12.27 kB / 0.9028 GB, free: 36.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3745, allocations: 159.6 MB / 1.059 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001778/0.3763, allocations: 1.238 MB / 1.06 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.3778, allocations: 0.5892 MB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.109e-05/0.3779, allocations: 0 / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.378, allocations: 7.922 kB / 1.06 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.3781, allocations: 23.86 kB / 1.06 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007364/0.3789, allocations: 291.2 kB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.3793, allocations: 447.4 kB / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.859e-05/0.3794, allocations: 4 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004076/0.3798, allocations: 307 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000272/0.3801, allocations: 163.2 kB / 1.062 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.576e-05/0.3802, allocations: 16 kB / 1.062 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.969e-05/0.3802, allocations: 12 kB / 1.062 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.3804, allocations: 111.6 kB / 1.062 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.3806, allocations: 212.5 kB / 1.062 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004192/0.381, allocations: 418.8 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.381, allocations: 0 / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.904e-06/0.381, allocations: 0 / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.3811, allocations: 4 kB / 1.062 GB, free: 1.684 MB / 0.8106 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.001119/0.3822, allocations: 0.742 MB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.3822, allocations: 8.031 kB / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.3824, allocations: 60.39 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003883/0.3828, allocations: 318.1 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.654e-05/0.3828, allocations: 20.36 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.873e-05/0.3829, allocations: 28.36 kB / 1.064 GB, free: 400 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.3839, allocations: 222 kB / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.384, allocations: 192 / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.384, allocations: 11.88 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.384, allocations: 4 kB / 1.064 GB, free: 156 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008033/0.3848, allocations: 103.9 kB / 1.064 GB, free: 52 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004728/0.3853, allocations: 393.3 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.3864, allocations: 198.3 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008013/0.3872, allocations: 116.8 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.3873, allocations: 8 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.3883, allocations: 243.1 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.713e-06/0.3883, allocations: 0 / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002723/0.391, allocations: 0.5111 MB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.3911, allocations: 63.39 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.3915, allocations: 409.8 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.825e-05/0.3916, allocations: 41.69 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.864e-05/0.3917, allocations: 93.45 kB / 1.066 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.3918, allocations: 39.53 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.651e-05/0.3919, allocations: 41.69 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.392, allocations: 318.8 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.3923, allocations: 123.9 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/0.3926, allocations: 162.4 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.393, allocations: 282.6 kB / 1.067 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.393, allocations: 0 / 1.067 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008285/0.3938, allocations: 497.8 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.345e-05/0.394, allocations: 91.31 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.394, allocations: 4 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.394, allocations: 4.188 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.3942, allocations: 23.92 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.3942, allocations: 7.984 kB / 1.067 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.3947, allocations: 67.73 kB / 1.067 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.681e-05/0.3948, allocations: 59.98 kB / 1.067 GB, free: 12.12 MB / 0.8262 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.0002219/0.395, allocations: 197.7 kB / 1.068 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.216e-05/0.3951, allocations: 43.45 kB / 1.068 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.529e-05/0.3952, allocations: 35.75 kB / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3952, allocations: 4 kB / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3952, allocations: 0 / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.3952, allocations: 0 / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.3975, allocations: 0.7715 MB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3975, allocations: 0 / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.903e-05/0.3976, allocations: 4 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.3976, allocations: 4 kB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.544e-05/0.3976, allocations: 23.97 kB / 1.069 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3977, allocations: 0 / 1.069 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3977, allocations: 3.938 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.3996, allocations: 0.4931 MB / 1.069 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.3999, allocations: 196.5 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.416e-05/0.4, allocations: 12 kB / 1.069 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004876/0.4005, allocations: 39.97 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.027e-05/0.4005, allocations: 7.984 kB / 1.069 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-05/0.4006, allocations: 63.97 kB / 1.069 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000351/0.401, allocations: 299 kB / 1.07 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.401, allocations: 0 / 1.07 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004901/0.4015, allocations: 63.98 kB / 1.07 GB, free: 9.773 MB / 0.8262 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.0002029/0.4017, allocations: 120.9 kB / 1.07 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001352/0.403, allocations: 450.5 kB / 1.07 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.4031, allocations: 0 / 1.07 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007916/0.4039, allocations: 132.2 kB / 1.07 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.4043, allocations: 29.48 kB / 1.07 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.4059, allocations: 0.6751 MB / 1.071 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.4063, allocations: 0.7749 MB / 1.072 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.346e-05/0.4064, allocations: 13.08 kB / 1.072 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.759e-05/0.4064, allocations: 19.42 kB / 1.072 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of SimCode: time 4e-07/0.4064, allocations: 0 / 1.072 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of Templates: time 0.009173/0.4156, allocations: 5.005 MB / 1.077 GB, free: 2.383 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile (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 & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches