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.001561/0.001562, allocations: 104.5 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.001724/0.001724, allocations: 190.3 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.422/1.422, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.526/2.526, allocations: 390.3 MB / 0.6653 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 69.28 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3192, allocations: 140.4 MB / 0.9503 GB, free: 8.902 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003399/0.3226, allocations: 1.518 MB / 0.9517 GB, free: 7.371 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001459/0.3241, allocations: 0.5363 MB / 0.9523 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.3242, allocations: 0 / 0.9523 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.3244, allocations: 11.86 kB / 0.9523 GB, free: 6.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.3246, allocations: 31.84 kB / 0.9523 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.3256, allocations: 307.4 kB / 0.9526 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007142/0.3263, allocations: 0.4994 MB / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 6.959e-05/0.3264, allocations: 15.97 kB / 0.9531 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005118/0.3269, allocations: 267.7 kB / 0.9534 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.3273, allocations: 135.7 kB / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.3274, allocations: 31.94 kB / 0.9535 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.3275, allocations: 32 kB / 0.9535 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.3277, allocations: 115.6 kB / 0.9537 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002223/0.3279, allocations: 187.1 kB / 0.9538 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004811/0.3284, allocations: 426.9 kB / 0.9542 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3284, allocations: 0 / 0.9542 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.829e-06/0.3284, allocations: 0 / 0.9542 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.636e-05/0.3284, allocations: 3.938 kB / 0.9542 GB, free: 4.797 MB / 0.7325 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.001482/0.3299, allocations: 0.8625 MB / 0.9551 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.33, allocations: 8.031 kB / 0.9551 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.3301, allocations: 56.47 kB / 0.9552 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004306/0.3306, allocations: 318.1 kB / 0.9555 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.888e-05/0.3306, allocations: 16.36 kB / 0.9555 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.237e-05/0.3307, allocations: 28.36 kB / 0.9555 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.3318, allocations: 213.9 kB / 0.9557 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.3318, allocations: 192 / 0.9557 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.3318, allocations: 7.938 kB / 0.9557 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.3319, allocations: 4 kB / 0.9557 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008086/0.3327, allocations: 103.8 kB / 0.9558 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.3331, allocations: 385.3 kB / 0.9562 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.3343, allocations: 174.5 kB / 0.9563 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007955/0.3351, allocations: 108.8 kB / 0.9564 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.3351, allocations: 3.984 kB / 0.9565 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.3361, allocations: 231.1 kB / 0.9567 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.344e-06/0.3362, allocations: 0 / 0.9567 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002847/0.339, allocations: 484.8 kB / 0.9571 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.3391, allocations: 59.41 kB / 0.9572 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005102/0.3396, allocations: 413.8 kB / 0.9576 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.3397, allocations: 37.7 kB / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3398, allocations: 97.44 kB / 0.9577 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.34, allocations: 43.53 kB / 0.9578 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/0.3402, allocations: 129.3 kB / 0.9579 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3404, allocations: 322.8 kB / 0.9582 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002904/0.3407, allocations: 123.9 kB / 0.9583 GB, free: 396 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004085/0.3411, allocations: 169.9 kB / 0.9585 GB, free: 204 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004659/0.3416, allocations: 279.5 kB / 0.9587 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3416, allocations: 0 / 0.9587 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000871/0.3425, allocations: 496.5 kB / 0.9592 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.674e-05/0.3426, allocations: 91.31 kB / 0.9593 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.3426, allocations: 4 kB / 0.9593 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.3426, allocations: 3.984 kB / 0.9593 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.3428, allocations: 23.98 kB / 0.9593 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3428, allocations: 11.88 kB / 0.9593 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.3434, allocations: 63.98 kB / 0.9594 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.71e-05/0.3435, allocations: 59.97 kB / 0.9595 GB, free: 15.12 MB / 0.7481 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.0002857/0.3438, allocations: 193.8 kB / 0.9596 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.3439, allocations: 39.47 kB / 0.9597 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.325e-05/0.344, allocations: 43.69 kB / 0.9597 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.344, allocations: 4 kB / 0.9597 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.344, allocations: 3.984 kB / 0.9597 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.344, allocations: 4 kB / 0.9597 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002473/0.3465, allocations: 0.7389 MB / 0.9605 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3465, allocations: 3.938 kB / 0.9605 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.986e-05/0.3466, allocations: 11.94 kB / 0.9605 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.3466, allocations: 3.984 kB / 0.9605 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.559e-05/0.3466, allocations: 15.98 kB / 0.9605 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.3466, allocations: 0 / 0.9605 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3466, allocations: 0 / 0.9605 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.3484, allocations: 478.7 kB / 0.9609 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/0.3487, allocations: 200.5 kB / 0.9611 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.11e-05/0.3488, allocations: 11.98 kB / 0.9611 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/0.3493, allocations: 31.97 kB / 0.9612 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.3494, allocations: 7.984 kB / 0.9612 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.516e-05/0.3494, allocations: 55.98 kB / 0.9612 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002933/0.3497, allocations: 299.1 kB / 0.9615 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3497, allocations: 0 / 0.9615 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000403/0.3502, allocations: 67.98 kB / 0.9616 GB, free: 12.83 MB / 0.7481 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.0001607/0.3503, allocations: 121.4 kB / 0.9617 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001499/0.3518, allocations: 458.2 kB / 0.9621 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3518, allocations: 0 / 0.9621 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008026/0.3526, allocations: 115.9 kB / 0.9623 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.3531, allocations: 40.58 kB / 0.9623 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.3548, allocations: 0.5885 MB / 0.9629 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.3552, allocations: 0.7785 MB / 0.9636 GB, free: 10.66 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.166e-05/0.3553, allocations: 15.44 kB / 0.9636 GB, free: 10.65 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/0.3553, allocations: 0 / 0.9636 GB, free: 10.65 MB / 0.7481 GB Notification: Performance of Templates: time 0.006696/0.362, allocations: 3.714 MB / 0.9673 GB, free: 6.883 MB / 0.7481 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches