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: 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_9_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_9_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.001605/0.001605, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002201/0.002202, allocations: 193 kB / 16.25 MB, free: 6.629 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.487/1.487, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.522/2.522, allocations: 390.2 MB / 0.6643 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 63.89 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8312/0.8327, allocations: 140.4 MB / 0.9491 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002303/0.835, allocations: 1.578 MB / 0.9506 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.8361, allocations: 0.5367 MB / 0.9511 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.9e-05/0.8361, allocations: 3.938 kB / 0.9511 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.802e-05/0.8362, allocations: 5.109 kB / 0.9512 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.943e-05/0.8364, allocations: 26.7 kB / 0.9512 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006456/0.837, allocations: 283.7 kB / 0.9514 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004487/0.8375, allocations: 0.5052 MB / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.05e-05/0.8375, allocations: 8.891 kB / 0.9519 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003969/0.8379, allocations: 341.4 kB / 0.9523 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.8382, allocations: 167.1 kB / 0.9524 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.262e-05/0.8382, allocations: 27.62 kB / 0.9525 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.374e-05/0.8383, allocations: 26.47 kB / 0.9525 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.8384, allocations: 128.8 kB / 0.9526 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.8386, allocations: 194.1 kB / 0.9528 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003652/0.839, allocations: 429.5 kB / 0.9532 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.839, allocations: 0 / 0.9532 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.375e-06/0.839, allocations: 0 / 0.9532 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.839, allocations: 3.938 kB / 0.9532 GB, free: 6.145 MB / 0.7169 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.001041/0.8401, allocations: 0.8643 MB / 0.9541 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.8401, allocations: 8.594 kB / 0.9541 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.8403, allocations: 50.41 kB / 0.9541 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.8406, allocations: 314.8 kB / 0.9544 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/0.8406, allocations: 17.92 kB / 0.9544 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.252e-05/0.8407, allocations: 26.27 kB / 0.9544 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009754/0.8417, allocations: 210.8 kB / 0.9547 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.8417, allocations: 192 / 0.9547 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.8418, allocations: 13.17 kB / 0.9547 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.8418, allocations: 1.125 kB / 0.9547 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007855/0.8426, allocations: 95.55 kB / 0.9548 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003819/0.843, allocations: 399.9 kB / 0.9551 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.844, allocations: 182.1 kB / 0.9553 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007836/0.8448, allocations: 114.5 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.8448, allocations: 1.719 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009507/0.8458, allocations: 217.4 kB / 0.9556 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.834e-06/0.8458, allocations: 0 / 0.9556 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002596/0.8484, allocations: 495 kB / 0.9561 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.8484, allocations: 55.53 kB / 0.9562 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003714/0.8488, allocations: 421.8 kB / 0.9566 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.883e-05/0.8489, allocations: 37.73 kB / 0.9566 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.119e-05/0.849, allocations: 96.28 kB / 0.9567 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.849, allocations: 45.66 kB / 0.9567 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.8492, allocations: 124.1 kB / 0.9568 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.611e-05/0.8492, allocations: 325.1 kB / 0.9572 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.8495, allocations: 121.9 kB / 0.9573 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002636/0.8498, allocations: 170 kB / 0.9574 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.8501, allocations: 282.8 kB / 0.9577 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.8501, allocations: 1.062 kB / 0.9577 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007668/0.8509, allocations: 485.3 kB / 0.9582 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.699e-05/0.851, allocations: 96.3 kB / 0.9583 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.851, allocations: 1.938 kB / 0.9583 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.851, allocations: 2.188 kB / 0.9583 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.8512, allocations: 22.77 kB / 0.9583 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.8512, allocations: 7.25 kB / 0.9583 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005171/0.8517, allocations: 61.48 kB / 0.9584 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.938e-05/0.8518, allocations: 72.84 kB / 0.9584 GB, free: 2.34 MB / 0.7169 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.000197/0.852, allocations: 191.9 kB / 0.9586 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.825e-05/0.8521, allocations: 44.62 kB / 0.9586 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.166e-05/0.8521, allocations: 48.52 kB / 0.9587 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.8522, allocations: 1.094 kB / 0.9587 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.8522, allocations: 1.094 kB / 0.9587 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.8522, allocations: 0 / 0.9587 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.8543, allocations: 0.7463 MB / 0.9594 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.8543, allocations: 1.062 kB / 0.9594 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.838e-05/0.8543, allocations: 7.953 kB / 0.9594 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.8543, allocations: 0 / 0.9594 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.657e-05/0.8544, allocations: 15.83 kB / 0.9594 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.8544, allocations: 1.375 kB / 0.9594 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.8544, allocations: 0 / 0.9594 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.8561, allocations: 483.4 kB / 0.9599 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.8563, allocations: 199.8 kB / 0.9601 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.639e-05/0.8564, allocations: 13.45 kB / 0.9601 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/0.8569, allocations: 34.38 kB / 0.9601 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.857, allocations: 9.047 kB / 0.9602 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.015e-05/0.857, allocations: 57.34 kB / 0.9602 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002607/0.8573, allocations: 294.9 kB / 0.9605 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8573, allocations: 0 / 0.9605 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000393/0.8577, allocations: 65.38 kB / 0.9606 GB, free: 0.9297 MB / 0.7169 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.0001495/0.8579, allocations: 122.1 kB / 0.9607 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001262/0.8591, allocations: 454.2 kB / 0.9611 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.8592, allocations: 0 / 0.9611 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007847/0.8599, allocations: 114.4 kB / 0.9612 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.8603, allocations: 32.73 kB / 0.9612 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.8618, allocations: 0.6636 MB / 0.9619 GB, free: 36 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.8622, allocations: 0.7859 MB / 0.9627 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.664e-05/0.8622, allocations: 12.5 kB / 0.9627 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.8623, allocations: 21.89 kB / 0.9627 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.8623, allocations: 0 / 0.9627 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of Templates: time 0.009305/0.8716, allocations: 5.182 MB / 0.9678 GB, free: 12.36 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.makefile (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 & ./Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches