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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00107/0.00107, allocations: 105.7 kB / 16.37 MB, free: 6.48 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.001211/0.001211, allocations: 193.1 kB / 17.31 MB, free: 5.82 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.213/1.213, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.006/2.006, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 66.22 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2222, allocations: 140.4 MB / 0.9511 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002313/0.2245, allocations: 1.524 MB / 0.9526 GB, free: 6.559 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001061/0.2256, allocations: 0.5345 MB / 0.9531 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.77e-05/0.2257, allocations: 4 kB / 0.9531 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.275e-05/0.2257, allocations: 11.86 kB / 0.9531 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.2259, allocations: 27.86 kB / 0.9532 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006466/0.2265, allocations: 303.4 kB / 0.9534 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004359/0.227, allocations: 0.511 MB / 0.9539 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.558e-05/0.227, allocations: 4 kB / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002894/0.2273, allocations: 267.6 kB / 0.9542 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.2275, allocations: 156.7 kB / 0.9544 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.635e-05/0.2276, allocations: 28 kB / 0.9544 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.762e-05/0.2277, allocations: 24 kB / 0.9544 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.2278, allocations: 111.7 kB / 0.9545 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.2279, allocations: 191 kB / 0.9547 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003401/0.2283, allocations: 426.7 kB / 0.9551 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2283, allocations: 3.938 kB / 0.9551 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2283, allocations: 0 / 0.9551 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.2283, allocations: 0 / 0.9551 GB, free: 3.984 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.001048/0.2294, allocations: 0.8597 MB / 0.9559 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.2294, allocations: 8.031 kB / 0.956 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.2295, allocations: 60.39 kB / 0.956 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.2299, allocations: 306.2 kB / 0.9563 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.034e-05/0.23, allocations: 16.36 kB / 0.9563 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.95e-05/0.23, allocations: 32.3 kB / 0.9563 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008334/0.2309, allocations: 217.1 kB / 0.9566 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.2309, allocations: 192 / 0.9566 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.2309, allocations: 11.92 kB / 0.9566 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.2309, allocations: 0 / 0.9566 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006554/0.2316, allocations: 95.92 kB / 0.9567 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003563/0.2319, allocations: 389.3 kB / 0.957 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008699/0.2328, allocations: 186.4 kB / 0.9572 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006225/0.2335, allocations: 108.7 kB / 0.9573 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.2335, allocations: 8 kB / 0.9573 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007859/0.2343, allocations: 219.1 kB / 0.9575 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.2343, allocations: 0 / 0.9575 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002136/0.2364, allocations: 484.9 kB / 0.958 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.2365, allocations: 55.41 kB / 0.958 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/0.2368, allocations: 425.8 kB / 0.9584 GB, free: 340 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.2369, allocations: 37.7 kB / 0.9585 GB, free: 296 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.729e-05/0.2369, allocations: 101.4 kB / 0.9586 GB, free: 192 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.237, allocations: 35.55 kB / 0.9586 GB, free: 156 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.2372, allocations: 125.3 kB / 0.9587 GB, free: 24 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.2373, allocations: 322.9 kB / 0.959 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.2375, allocations: 119.9 kB / 0.9592 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/0.2378, allocations: 181.4 kB / 0.9593 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.2381, allocations: 278.9 kB / 0.9596 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.2381, allocations: 4 kB / 0.9596 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007049/0.2388, allocations: 484.6 kB / 0.9601 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.859e-05/0.2389, allocations: 91.31 kB / 0.9601 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.2389, allocations: 0 / 0.9601 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.2389, allocations: 4 kB / 0.9602 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.2391, allocations: 27.91 kB / 0.9602 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.2391, allocations: 8.188 kB / 0.9602 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004205/0.2395, allocations: 63.73 kB / 0.9602 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.709e-05/0.2396, allocations: 55.98 kB / 0.9603 GB, free: 14.33 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.0001779/0.2398, allocations: 197.7 kB / 0.9605 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-05/0.2398, allocations: 39.47 kB / 0.9605 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.711e-05/0.2399, allocations: 43.69 kB / 0.9606 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2399, allocations: 4 kB / 0.9606 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2399, allocations: 0 / 0.9606 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.2399, allocations: 3.984 kB / 0.9606 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001931/0.2419, allocations: 0.7467 MB / 0.9613 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2419, allocations: 0 / 0.9613 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.199e-05/0.2419, allocations: 4 kB / 0.9613 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2419, allocations: 0 / 0.9613 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/0.242, allocations: 23.97 kB / 0.9613 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.242, allocations: 0 / 0.9613 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.242, allocations: 0 / 0.9613 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.2434, allocations: 483.1 kB / 0.9618 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/0.2437, allocations: 196.5 kB / 0.962 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.568e-05/0.2438, allocations: 12 kB / 0.962 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004142/0.2442, allocations: 31.95 kB / 0.962 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.516e-05/0.2442, allocations: 8 kB / 0.962 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.538e-05/0.2443, allocations: 59.97 kB / 0.9621 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002429/0.2446, allocations: 299 kB / 0.9624 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2446, allocations: 0 / 0.9624 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000309/0.2449, allocations: 67.98 kB / 0.9624 GB, free: 12.03 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.0001197/0.245, allocations: 125.5 kB / 0.9626 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001087/0.2461, allocations: 449.7 kB / 0.963 GB, free: 11.44 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2461, allocations: 0 / 0.963 GB, free: 11.44 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006442/0.2468, allocations: 119.8 kB / 0.9631 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.2471, allocations: 31.66 kB / 0.9631 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2484, allocations: 0.5482 MB / 0.9637 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.2487, allocations: 0.7707 MB / 0.9644 GB, free: 9.918 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.488e-05/0.2488, allocations: 13.08 kB / 0.9644 GB, free: 9.902 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.2488, allocations: 15.44 kB / 0.9644 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of SimCode: time 3e-07/0.2488, allocations: 4 kB / 0.9644 GB, free: 9.883 MB / 0.7481 GB Notification: Performance of Templates: time 0.007418/0.2562, allocations: 4.996 MB / 0.9693 GB, free: 4.781 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 -s cvode -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