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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: 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_10_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_10_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.001291/0.001291, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001639/0.001638, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.77/2.77, allocations: 437.7 MB / 0.7117 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003644, allocations: 8 kB / 0.8722 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7864/0.7867, allocations: 153.8 MB / 1.022 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001675/0.7885, allocations: 1.22 MB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001159/0.7896, allocations: 0.5307 MB / 1.024 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.172e-05/0.7897, allocations: 0 / 1.024 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.592e-05/0.7898, allocations: 7.922 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.7899, allocations: 19.92 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007022/0.7906, allocations: 271.4 kB / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.791, allocations: 383.4 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.594e-05/0.7911, allocations: 4 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004801/0.7916, allocations: 327.3 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002774/0.7919, allocations: 179.7 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.327e-05/0.792, allocations: 12 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.142e-05/0.792, allocations: 16 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.7922, allocations: 115.7 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.72e-05/0.7923, allocations: 93.52 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002787/0.7925, allocations: 317.3 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.7926, allocations: 4 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7926, allocations: 0 / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.7926, allocations: 0 / 1.026 GB, free: 12.55 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.001028/0.7936, allocations: 0.7457 MB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.7937, allocations: 8.562 kB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.7938, allocations: 51.53 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.7941, allocations: 293.3 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.052e-05/0.7942, allocations: 19.94 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.045e-05/0.7943, allocations: 27.98 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000913/0.7952, allocations: 221.4 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.7952, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.7952, allocations: 12 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.7953, allocations: 0 / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006909/0.796, allocations: 103.9 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004033/0.7964, allocations: 401.1 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000935/0.7973, allocations: 198.4 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006611/0.798, allocations: 116.8 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.798, allocations: 0 / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008511/0.7989, allocations: 241.2 kB / 1.028 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.804e-06/0.7989, allocations: 3.938 kB / 1.028 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002368/0.8013, allocations: 0.5008 MB / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.8013, allocations: 71.33 kB / 1.029 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004102/0.8018, allocations: 401.9 kB / 1.029 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.069e-05/0.8018, allocations: 41.69 kB / 1.029 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.536e-05/0.8019, allocations: 101.3 kB / 1.029 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.838e-05/0.802, allocations: 35.55 kB / 1.029 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-05/0.802, allocations: 15.98 kB / 1.029 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.8022, allocations: 322.8 kB / 1.03 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002548/0.8024, allocations: 119.9 kB / 1.03 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.8027, allocations: 173.9 kB / 1.03 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.803, allocations: 183.4 kB / 1.03 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.8031, allocations: 0 / 1.03 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008161/0.8039, allocations: 498.1 kB / 1.03 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.843e-05/0.804, allocations: 91.38 kB / 1.031 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.804, allocations: 0 / 1.031 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.804, allocations: 7.938 kB / 1.031 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.8042, allocations: 23.91 kB / 1.031 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.8042, allocations: 7.953 kB / 1.031 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004513/0.8047, allocations: 71.98 kB / 1.031 GB, free: 7.207 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.673e-05/0.8048, allocations: 67.91 kB / 1.031 GB, free: 7.141 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002129/0.805, allocations: 193.7 kB / 1.031 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-05/0.8051, allocations: 39.53 kB / 1.031 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.091e-05/0.8051, allocations: 39.75 kB / 1.031 GB, free: 6.855 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.8051, allocations: 4 kB / 1.031 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.8052, allocations: 7.984 kB / 1.031 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.8052, allocations: 3.953 kB / 1.031 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.8071, allocations: 0.7654 MB / 1.032 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.8071, allocations: 0 / 1.032 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.32e-05/0.8072, allocations: 4 kB / 1.032 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.8072, allocations: 0 / 1.032 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.8072, allocations: 23.97 kB / 1.032 GB, free: 5.992 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.8072, allocations: 3.953 kB / 1.032 GB, free: 5.988 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.8073, allocations: 0 / 1.032 GB, free: 5.988 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.8088, allocations: 492.9 kB / 1.032 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.809, allocations: 200.5 kB / 1.032 GB, free: 5.277 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.939e-05/0.8091, allocations: 11.98 kB / 1.032 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004155/0.8095, allocations: 35.97 kB / 1.032 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.8096, allocations: 19.94 kB / 1.033 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.106e-05/0.8096, allocations: 51.98 kB / 1.033 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002667/0.8099, allocations: 295 kB / 1.033 GB, free: 4.875 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8099, allocations: 0 / 1.033 GB, free: 4.875 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003321/0.8102, allocations: 67.98 kB / 1.033 GB, free: 4.809 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001402/0.8104, allocations: 121 kB / 1.033 GB, free: 4.684 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001134/0.8115, allocations: 454.7 kB / 1.033 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.8116, allocations: 4.125 kB / 1.033 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000682/0.8122, allocations: 123.9 kB / 1.034 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.8126, allocations: 27.17 kB / 1.034 GB, free: 4.062 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.814, allocations: 0.6599 MB / 1.034 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.8143, allocations: 0.7672 MB / 1.035 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.045e-05/0.8144, allocations: 17.08 kB / 1.035 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.093e-05/0.8144, allocations: 15.44 kB / 1.035 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.8145, allocations: 0 / 1.035 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of Templates: time 0.008294/0.8228, allocations: 4.92 MB / 1.04 GB, free: 13.54 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.makefile (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 & ./Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches