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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_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.004657/0.004657, allocations: 100.5 kB / 15.73 MB, free: 6.031 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.001125/0.001126, allocations: 186.6 kB / 16.67 MB, free: 5.965 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.302/2.302, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 66.67 kB / 0.9503 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2565, allocations: 140.4 MB / 1.087 GB, free: 2.07 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002819/0.2594, allocations: 1.51 MB / 1.089 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00118/0.2606, allocations: 0.5374 MB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.887e-05/0.2607, allocations: 0 / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.2608, allocations: 11.88 kB / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.261, allocations: 27.84 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009762/0.262, allocations: 321.6 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006291/0.2626, allocations: 0.4994 MB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.926e-05/0.2627, allocations: 15.97 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004443/0.2631, allocations: 279.6 kB / 1.091 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.2634, allocations: 143.6 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.902e-05/0.2635, allocations: 24 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.091e-05/0.2636, allocations: 28 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.2637, allocations: 111.7 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.2639, allocations: 187 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004671/0.2644, allocations: 426.3 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.318e-06/0.2644, allocations: 8 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2644, allocations: 0 / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.599e-05/0.2645, allocations: 0 / 1.091 GB, free: 13.96 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.001412/0.2659, allocations: 0.8586 MB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.2659, allocations: 15.97 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.058e-05/0.266, allocations: 38.73 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.2662, allocations: 52.47 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.2666, allocations: 306.3 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.314e-05/0.2666, allocations: 12.38 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.052e-05/0.2667, allocations: 36.36 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009465/0.2676, allocations: 221 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2677, allocations: 3.938 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.2677, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.2677, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006806/0.2684, allocations: 99.92 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/0.2688, allocations: 397.1 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009098/0.2698, allocations: 174.5 kB / 1.094 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000657/0.2704, allocations: 108.8 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.2705, allocations: 7.938 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009215/0.2714, allocations: 233.6 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.174e-06/0.2714, allocations: 0 / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002355/0.2738, allocations: 480.9 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.2738, allocations: 67.39 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004491/0.2743, allocations: 401.9 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/0.2744, allocations: 41.69 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.033e-05/0.2745, allocations: 93.45 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.964e-05/0.2745, allocations: 47.44 kB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.2747, allocations: 125.3 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.2749, allocations: 326.8 kB / 1.095 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.2752, allocations: 115.9 kB / 1.096 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002988/0.2755, allocations: 172.9 kB / 1.096 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003851/0.2759, allocations: 278.7 kB / 1.096 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2759, allocations: 0 / 1.096 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007966/0.2767, allocations: 492.8 kB / 1.096 GB, free: 8.52 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.178e-05/0.2768, allocations: 99.3 kB / 1.097 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2768, allocations: 0 / 1.097 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.2768, allocations: 4 kB / 1.097 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.277, allocations: 19.92 kB / 1.097 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.277, allocations: 7.938 kB / 1.097 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004561/0.2774, allocations: 55.86 kB / 1.097 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.903e-05/0.2775, allocations: 63.97 kB / 1.097 GB, free: 8.262 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.0002287/0.2778, allocations: 205.6 kB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.2779, allocations: 43.47 kB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.208e-05/0.2779, allocations: 39.75 kB / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2779, allocations: 0 / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.278, allocations: 3.984 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.278, allocations: 0 / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002149/0.2801, allocations: 0.7482 MB / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.2801, allocations: 0 / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.585e-05/0.2802, allocations: 7.938 kB / 1.098 GB, free: 7.141 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.2802, allocations: 3.984 kB / 1.098 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.2802, allocations: 15.98 kB / 1.098 GB, free: 7.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2802, allocations: 0 / 1.098 GB, free: 7.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.2802, allocations: 8 kB / 1.098 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.2818, allocations: 470.2 kB / 1.098 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.2821, allocations: 208.4 kB / 1.098 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.751e-05/0.2822, allocations: 11.98 kB / 1.098 GB, free: 6.406 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004318/0.2826, allocations: 31.91 kB / 1.098 GB, free: 6.375 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.2827, allocations: 15.92 kB / 1.098 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.711e-05/0.2827, allocations: 55.98 kB / 1.098 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003374/0.2831, allocations: 291.1 kB / 1.099 GB, free: 6.023 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2831, allocations: 0 / 1.099 GB, free: 6.023 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003497/0.2834, allocations: 71.98 kB / 1.099 GB, free: 5.953 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.002007/0.2855, allocations: 1.023 MB / 1.1 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001152/0.2866, allocations: 441.6 kB / 1.1 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2866, allocations: 0 / 1.1 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007327/0.2874, allocations: 120.2 kB / 1.1 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.2877, allocations: 29.53 kB / 1.1 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/0.2919, allocations: 2.778 MB / 1.103 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.2923, allocations: 0.7669 MB / 1.104 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.995e-05/0.2924, allocations: 17.23 kB / 1.104 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.135e-05/0.2925, allocations: 27.42 kB / 1.104 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of SimCode: time 4.31e-07/0.2925, allocations: 0 / 1.104 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.3158, allocations: 6.183 MB / 1.11 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.478/7.793, allocations: 20.38 kB / 1.11 GB, free: 10.32 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches