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.0008344/0.0008344, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001139, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.386/1.386, allocations: 223.3 MB / 241 MB, free: 5.352 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.603/2.603, allocations: 437.8 MB / 0.7128 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003826, allocations: 12 kB / 0.8735 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8202/0.8207, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002356/0.8231, allocations: 1.239 MB / 1.025 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0016/0.8247, allocations: 0.5792 MB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.8248, allocations: 0 / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.825, allocations: 11.92 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.8251, allocations: 19.86 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.8262, allocations: 286.2 kB / 1.026 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006174/0.8269, allocations: 451.4 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 6.227e-05/0.8271, allocations: 12 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006749/0.8278, allocations: 303 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.8281, allocations: 163.2 kB / 1.027 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.063e-05/0.8282, allocations: 12 kB / 1.027 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.102e-05/0.8283, allocations: 16 kB / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.8285, allocations: 115.6 kB / 1.027 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002487/0.8287, allocations: 204.5 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.8291, allocations: 309.4 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.8291, allocations: 0 / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.963e-06/0.8291, allocations: 0 / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.8291, allocations: 7.938 kB / 1.027 GB, free: 12.18 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.001208/0.8303, allocations: 0.7536 MB / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.8304, allocations: 12.03 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.8305, allocations: 48.47 kB / 1.028 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004726/0.831, allocations: 310.2 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/0.831, allocations: 20.36 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.518e-05/0.8311, allocations: 28.36 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.8321, allocations: 222 kB / 1.029 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-06/0.8322, allocations: 192 / 1.029 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.8322, allocations: 3.938 kB / 1.029 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.8322, allocations: 0 / 1.029 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007851/0.833, allocations: 119.8 kB / 1.029 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005805/0.8336, allocations: 393.1 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.8347, allocations: 194.4 kB / 1.029 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007833/0.8355, allocations: 128.8 kB / 1.029 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.8355, allocations: 3.984 kB / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001032/0.8365, allocations: 229.7 kB / 1.03 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.8366, allocations: 0 / 1.03 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002689/0.8393, allocations: 0.5124 MB / 1.03 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.8393, allocations: 63.41 kB / 1.03 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.8398, allocations: 405.8 kB / 1.031 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.379e-05/0.8399, allocations: 45.69 kB / 1.031 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.8401, allocations: 97.44 kB / 1.031 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.8401, allocations: 47.47 kB / 1.031 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.636e-05/0.8402, allocations: 33.7 kB / 1.031 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002072/0.8404, allocations: 322.8 kB / 1.031 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/0.8408, allocations: 119.9 kB / 1.031 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00041/0.8412, allocations: 177.9 kB / 1.031 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004659/0.8417, allocations: 278.8 kB / 1.032 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.8417, allocations: 4 kB / 1.032 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008198/0.8425, allocations: 484.7 kB / 1.032 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.292e-05/0.8426, allocations: 91.31 kB / 1.032 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.8426, allocations: 0 / 1.032 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.8427, allocations: 7.984 kB / 1.032 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.8428, allocations: 19.92 kB / 1.032 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.8428, allocations: 4 kB / 1.032 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005045/0.8433, allocations: 71.98 kB / 1.032 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.194e-05/0.8434, allocations: 63.97 kB / 1.032 GB, free: 6.609 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 (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.0002201/0.8437, allocations: 194.2 kB / 1.033 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.06e-05/0.8437, allocations: 43.47 kB / 1.033 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.218e-05/0.8438, allocations: 43.75 kB / 1.033 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.8438, allocations: 7.922 kB / 1.033 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.8438, allocations: 0 / 1.033 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.8439, allocations: 0 / 1.033 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00245/0.8463, allocations: 0.7674 MB / 1.033 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.8463, allocations: 0 / 1.033 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.8464, allocations: 8 kB / 1.033 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.8464, allocations: 7.984 kB / 1.033 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/0.8464, allocations: 15.98 kB / 1.033 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.8464, allocations: 0 / 1.033 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.8464, allocations: 0 / 1.033 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001913/0.8484, allocations: 0.4924 MB / 1.034 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000235/0.8486, allocations: 200.5 kB / 1.034 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.911e-05/0.8487, allocations: 15.98 kB / 1.034 GB, free: 4.715 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004874/0.8492, allocations: 31.97 kB / 1.034 GB, free: 4.684 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/0.8492, allocations: 11.98 kB / 1.034 GB, free: 4.672 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.485e-05/0.8493, allocations: 55.98 kB / 1.034 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003055/0.8496, allocations: 291.1 kB / 1.035 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8496, allocations: 0 / 1.035 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003628/0.85, allocations: 71.98 kB / 1.035 GB, free: 4.266 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 (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.0001562/0.8501, allocations: 128.9 kB / 1.035 GB, free: 4.133 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001334/0.8515, allocations: 451.3 kB / 1.035 GB, free: 3.668 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.8515, allocations: 4 kB / 1.035 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000817/0.8523, allocations: 127.8 kB / 1.035 GB, free: 3.539 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.8527, allocations: 34.42 kB / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.8545, allocations: 0.7202 MB / 1.036 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.855, allocations: 0.7672 MB / 1.037 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.1e-05/0.855, allocations: 19.42 kB / 1.037 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of SimCode: time 6.72e-07/0.8551, allocations: 4 kB / 1.037 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of Templates: time 0.007415/0.8625, allocations: 3.707 MB / 1.04 GB, free: 14.19 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/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