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.01286/0.01286, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.002923/0.002923, allocations: 193.8 kB / 16.79 MB, free: 5.809 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.419/1.419, allocations: 222.9 MB / 240.5 MB, free: 4.594 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.577/2.577, allocations: 437 MB / 0.7106 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.89 kB / 0.8692 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7323/0.7337, allocations: 151.6 MB / 1.017 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003014/0.7368, allocations: 1.574 MB / 1.019 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001362/0.7382, allocations: 0.5891 MB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.881e-05/0.7383, allocations: 0 / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001117/0.7384, allocations: 3.938 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.7386, allocations: 27.86 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008017/0.7394, allocations: 286.5 kB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0004986/0.7399, allocations: 439.5 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.431e-05/0.7399, allocations: 15.98 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005138/0.7405, allocations: 314.9 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003262/0.7408, allocations: 159.2 kB / 1.021 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.7409, allocations: 19.94 kB / 1.021 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.187e-05/0.741, allocations: 12 kB / 1.021 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.7412, allocations: 107.7 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.7414, allocations: 186.8 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.7417, allocations: 309.4 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.7418, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.92e-07/0.7418, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.007e-05/0.7418, allocations: 4 kB / 1.021 GB, free: 14.74 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.001344/0.7431, allocations: 0.8742 MB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.7432, allocations: 8.031 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.7434, allocations: 52.47 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003931/0.7438, allocations: 310.2 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.048e-05/0.7438, allocations: 20.3 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.091e-05/0.7439, allocations: 28.38 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.745, allocations: 214 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.745, allocations: 192 / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.745, allocations: 3.938 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.745, allocations: 4 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000824/0.7459, allocations: 95.86 kB / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004537/0.7463, allocations: 397.2 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.7474, allocations: 174.5 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008013/0.7482, allocations: 116.8 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.7483, allocations: 3.984 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.7493, allocations: 221.7 kB / 1.024 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 4.638e-06/0.7493, allocations: 4 kB / 1.024 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002752/0.7521, allocations: 488.7 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.7521, allocations: 63.39 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000451/0.7526, allocations: 413.8 kB / 1.025 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.297e-05/0.7527, allocations: 41.69 kB / 1.025 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.7528, allocations: 93.44 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.104e-05/0.7529, allocations: 39.55 kB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002536/0.7531, allocations: 129.3 kB / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.7533, allocations: 318.8 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.7536, allocations: 131.9 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003002/0.7539, allocations: 173.8 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004207/0.7543, allocations: 274.7 kB / 1.026 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.7543, allocations: 0 / 1.026 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000908/0.7553, allocations: 498.6 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.261e-05/0.7554, allocations: 89.19 kB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.7554, allocations: 4.188 kB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.7554, allocations: 4 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.7556, allocations: 27.97 kB / 1.026 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.7556, allocations: 7.938 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005568/0.7562, allocations: 63.67 kB / 1.026 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.169e-05/0.7563, allocations: 55.98 kB / 1.026 GB, free: 9.059 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.0002733/0.7566, allocations: 202.3 kB / 1.027 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.996e-05/0.7566, allocations: 39.47 kB / 1.027 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.853e-05/0.7567, allocations: 39.75 kB / 1.027 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.7567, allocations: 4 kB / 1.027 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.7567, allocations: 3.938 kB / 1.027 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.7568, allocations: 3.984 kB / 1.027 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.7591, allocations: 0.7403 MB / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.7591, allocations: 0 / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.7591, allocations: 11.88 kB / 1.027 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.7591, allocations: 0 / 1.027 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.7592, allocations: 23.97 kB / 1.027 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.7592, allocations: 0 / 1.027 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.7592, allocations: 0 / 1.027 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.761, allocations: 480.1 kB / 1.028 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.7613, allocations: 196.5 kB / 1.028 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.976e-05/0.7614, allocations: 16 kB / 1.028 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004959/0.7619, allocations: 31.95 kB / 1.028 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.7619, allocations: 4 kB / 1.028 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.97e-05/0.762, allocations: 59.97 kB / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003059/0.7623, allocations: 295.1 kB / 1.028 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7623, allocations: 0 / 1.028 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003928/0.7627, allocations: 63.98 kB / 1.029 GB, free: 6.77 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.0001517/0.7629, allocations: 132.9 kB / 1.029 GB, free: 6.633 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00135/0.7642, allocations: 443.7 kB / 1.029 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.7642, allocations: 0 / 1.029 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008126/0.765, allocations: 124.2 kB / 1.029 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003888/0.7654, allocations: 36.3 kB / 1.029 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.7671, allocations: 0.6992 MB / 1.03 GB, free: 5.285 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.7675, allocations: 0.7711 MB / 1.031 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.232e-05/0.7676, allocations: 15.42 kB / 1.031 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.7676, allocations: 4 kB / 1.031 GB, free: 4.469 MB / 0.7794 GB Notification: Performance of Templates: time 0.006523/0.7741, allocations: 3.72 MB / 1.034 GB, free: 0.707 MB / 0.7794 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