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: 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.001211/0.001211, allocations: 106.9 kB / 16.27 MB, free: 6.414 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.001194/0.001194, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.398/1.398, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.607/2.607, allocations: 437.1 MB / 0.7111 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 68.2 kB / 0.8699 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3122, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002949/0.3152, allocations: 1.519 MB / 1.019 GB, free: 9.137 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001362/0.3166, allocations: 0.5387 MB / 1.02 GB, free: 8.602 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.059e-05/0.3167, allocations: 3.938 kB / 1.02 GB, free: 8.598 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.3168, allocations: 7.922 kB / 1.02 GB, free: 8.59 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.3169, allocations: 27.84 kB / 1.02 GB, free: 8.562 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008532/0.3178, allocations: 322.2 kB / 1.02 GB, free: 8.25 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0005766/0.3184, allocations: 0.4955 MB / 1.021 GB, free: 7.754 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.028e-05/0.3184, allocations: 15.98 kB / 1.021 GB, free: 7.738 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.3188, allocations: 271.6 kB / 1.021 GB, free: 7.473 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.3191, allocations: 143.6 kB / 1.021 GB, free: 7.332 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.963e-05/0.3192, allocations: 24 kB / 1.021 GB, free: 7.309 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.3193, allocations: 28 kB / 1.021 GB, free: 7.281 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.3195, allocations: 115.7 kB / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002352/0.3197, allocations: 187 kB / 1.022 GB, free: 6.984 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004747/0.3202, allocations: 415 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3202, allocations: 3.938 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3202, allocations: 4 kB / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.3202, allocations: 0 / 1.022 GB, free: 6.57 MB / 0.795 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.001363/0.3216, allocations: 0.8665 MB / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.3217, allocations: 12.92 kB / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.3218, allocations: 48.47 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.3222, allocations: 314.1 kB / 1.023 GB, free: 5.207 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.35e-05/0.3223, allocations: 20.36 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.322e-05/0.3224, allocations: 28.36 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.3234, allocations: 216.2 kB / 1.023 GB, free: 4.945 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.3234, allocations: 192 / 1.023 GB, free: 4.945 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.3235, allocations: 7.938 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.3235, allocations: 0 / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008376/0.3243, allocations: 99.91 kB / 1.024 GB, free: 4.84 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004837/0.3248, allocations: 385.3 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.326, allocations: 170.5 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008145/0.3268, allocations: 117.2 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.3268, allocations: 7.969 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001009/0.3278, allocations: 235 kB / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.974e-06/0.3278, allocations: 0 / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.002792/0.3306, allocations: 484.9 kB / 1.025 GB, free: 3.391 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.3307, allocations: 59.41 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004596/0.3312, allocations: 409.8 kB / 1.025 GB, free: 2.918 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.717e-05/0.3313, allocations: 45.62 kB / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.957e-05/0.3314, allocations: 97.44 kB / 1.025 GB, free: 2.766 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.045e-05/0.3314, allocations: 35.55 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.3316, allocations: 133.2 kB / 1.026 GB, free: 2.594 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3318, allocations: 322.8 kB / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002819/0.3321, allocations: 123.9 kB / 1.026 GB, free: 2.148 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.3324, allocations: 171.6 kB / 1.026 GB, free: 1.961 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004208/0.3329, allocations: 271.2 kB / 1.026 GB, free: 1.664 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3329, allocations: 7.938 kB / 1.026 GB, free: 1.656 MB / 0.795 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009108/0.3338, allocations: 494.1 kB / 1.027 GB, free: 1.156 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.3339, allocations: 87.31 kB / 1.027 GB, free: 1.059 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3339, allocations: 8.188 kB / 1.027 GB, free: 1.051 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3339, allocations: 4 kB / 1.027 GB, free: 1.047 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.3341, allocations: 27.91 kB / 1.027 GB, free: 1.02 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.3341, allocations: 4 kB / 1.027 GB, free: 1.016 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.3347, allocations: 59.8 kB / 1.027 GB, free: 0.957 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.951e-05/0.3348, allocations: 63.92 kB / 1.027 GB, free: 0.8945 MB / 0.795 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.0002594/0.335, allocations: 205.7 kB / 1.027 GB, free: 0.6875 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.463e-05/0.3351, allocations: 43.47 kB / 1.027 GB, free: 0.6445 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.118e-05/0.3352, allocations: 35.75 kB / 1.027 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3352, allocations: 0 / 1.027 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3352, allocations: 0 / 1.027 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.3352, allocations: 3.984 kB / 1.027 GB, free: 0.5977 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.3377, allocations: 0.7496 MB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3377, allocations: 0 / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.78e-05/0.3377, allocations: 4 kB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3377, allocations: 0 / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.3378, allocations: 23.97 kB / 1.028 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3378, allocations: 0 / 1.028 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3378, allocations: 0 / 1.028 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.3396, allocations: 474.8 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/0.3399, allocations: 196.5 kB / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.974e-05/0.34, allocations: 11.98 kB / 1.029 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004904/0.3405, allocations: 35.97 kB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.3405, allocations: 11.92 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.25e-05/0.3406, allocations: 55.98 kB / 1.029 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000324/0.341, allocations: 295.1 kB / 1.029 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.341, allocations: 0 / 1.029 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003976/0.3414, allocations: 71.92 kB / 1.029 GB, free: 14.61 MB / 0.8106 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.0001897/0.3416, allocations: 124.9 kB / 1.029 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00139/0.343, allocations: 444.4 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.343, allocations: 0 / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008307/0.3438, allocations: 124.2 kB / 1.03 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.3442, allocations: 29.48 kB / 1.03 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.3459, allocations: 0.596 MB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.3463, allocations: 0.7708 MB / 1.031 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.033e-05/0.3464, allocations: 11.44 kB / 1.031 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of SimCode: time 1.032e-06/0.3464, allocations: 0 / 1.031 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of Templates: time 0.006656/0.3531, allocations: 3.735 MB / 1.035 GB, free: 8.652 MB / 0.8106 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=400 -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/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