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.001024/0.001025, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001201/0.001201, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.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.471/2.471, allocations: 390.9 MB / 0.666 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005899/0.0005901, allocations: 12 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7751/0.7757, allocations: 142.4 MB / 0.9544 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.00171/0.7775, allocations: 1.212 MB / 0.9556 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.7787, allocations: 0.5305 MB / 0.9561 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.639e-05/0.7788, allocations: 0 / 0.9561 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.848e-05/0.7789, allocations: 9.109 kB / 0.9561 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001266/0.7791, allocations: 19.47 kB / 0.9562 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007931/0.7799, allocations: 267.7 kB / 0.9564 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004297/0.7803, allocations: 378.8 kB / 0.9568 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.543e-05/0.7804, allocations: 9.516 kB / 0.9568 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005913/0.781, allocations: 324.2 kB / 0.9571 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003279/0.7813, allocations: 179.8 kB / 0.9573 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.828e-05/0.7814, allocations: 14.12 kB / 0.9573 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.542e-05/0.7815, allocations: 18.28 kB / 0.9573 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.7816, allocations: 122.6 kB / 0.9574 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.7818, allocations: 93.3 kB / 0.9575 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002692/0.782, allocations: 301.7 kB / 0.9578 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.782, allocations: 1.75 kB / 0.9578 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.754e-06/0.782, allocations: 0 / 0.9578 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.117e-05/0.7821, allocations: 0 / 0.9578 GB, free: 5.34 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.00103/0.7831, allocations: 0.7582 MB / 0.9585 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.7832, allocations: 12.25 kB / 0.9585 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.7833, allocations: 57.72 kB / 0.9586 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003702/0.7837, allocations: 297.5 kB / 0.9589 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.43e-05/0.7838, allocations: 11 kB / 0.9589 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.024e-05/0.7839, allocations: 33.92 kB / 0.9589 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008894/0.7848, allocations: 223 kB / 0.9591 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.7848, allocations: 0 / 0.9591 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.7848, allocations: 1.375 kB / 0.9591 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.7848, allocations: 1.375 kB / 0.9591 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006694/0.7855, allocations: 116.8 kB / 0.9593 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004191/0.7859, allocations: 391 kB / 0.9596 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009412/0.7869, allocations: 192.1 kB / 0.9598 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000664/0.7876, allocations: 125.2 kB / 0.9599 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.7876, allocations: 2.25 kB / 0.9599 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008406/0.7884, allocations: 236.6 kB / 0.9602 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.795e-06/0.7885, allocations: 3.984 kB / 0.9602 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002362/0.7908, allocations: 0.5041 MB / 0.9607 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.7909, allocations: 60.39 kB / 0.9607 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/0.7913, allocations: 414.8 kB / 0.9611 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.515e-05/0.7914, allocations: 41.81 kB / 0.9611 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.786e-05/0.7915, allocations: 91.55 kB / 0.9612 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.427e-05/0.7915, allocations: 40.92 kB / 0.9613 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-05/0.7916, allocations: 13.98 kB / 0.9613 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.377e-05/0.7916, allocations: 325.5 kB / 0.9616 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.7919, allocations: 121 kB / 0.9617 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.7922, allocations: 170.2 kB / 0.9619 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.7925, allocations: 187.3 kB / 0.9621 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.7925, allocations: 1.031 kB / 0.9621 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000769/0.7933, allocations: 498.7 kB / 0.9625 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.104e-05/0.7933, allocations: 88.03 kB / 0.9626 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.7934, allocations: 2.875 kB / 0.9626 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.7934, allocations: 2.75 kB / 0.9626 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.7935, allocations: 29.66 kB / 0.9626 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.7936, allocations: 3.844 kB / 0.9626 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.7941, allocations: 68.86 kB / 0.9627 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.708e-05/0.7941, allocations: 57.08 kB / 0.9628 GB, free: 1.746 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002082/0.7944, allocations: 211.7 kB / 0.963 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.299e-05/0.7944, allocations: 36.81 kB / 0.963 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.561e-05/0.7945, allocations: 35.44 kB / 0.963 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.7945, allocations: 2.594 kB / 0.963 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.7945, allocations: 0 / 0.963 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.7945, allocations: 3.984 kB / 0.963 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/0.7965, allocations: 0.7718 MB / 0.9638 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.7966, allocations: 3.938 kB / 0.9638 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.675e-05/0.7966, allocations: 8.031 kB / 0.9638 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.7966, allocations: 1.031 kB / 0.9638 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.889e-05/0.7967, allocations: 23.5 kB / 0.9638 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.7967, allocations: 1.031 kB / 0.9638 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.7967, allocations: 0 / 0.9638 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.7983, allocations: 499.9 kB / 0.9643 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/0.7985, allocations: 195.1 kB / 0.9645 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.167e-05/0.7986, allocations: 13.62 kB / 0.9645 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.799, allocations: 36.42 kB / 0.9645 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.7991, allocations: 8.547 kB / 0.9646 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-05/0.7992, allocations: 57.02 kB / 0.9646 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003292/0.7995, allocations: 294.7 kB / 0.9649 GB, free: 336 kB / 0.7169 GB Notification: Performance of sort global known variables: time 7.21e-07/0.7995, allocations: 0 / 0.9649 GB, free: 336 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004558/0.8, allocations: 70.39 kB / 0.965 GB, free: 324 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001557/0.8001, allocations: 116.3 kB / 0.9651 GB, free: 224 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001507/0.8017, allocations: 457.9 kB / 0.9655 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.8017, allocations: 0.9688 kB / 0.9655 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007643/0.8025, allocations: 129.6 kB / 0.9656 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.8029, allocations: 25.62 kB / 0.9657 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.8049, allocations: 0.6548 MB / 0.9663 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005643/0.8055, allocations: 0.7741 MB / 0.967 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000105/0.8056, allocations: 17.28 kB / 0.9671 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.644e-05/0.8056, allocations: 13.44 kB / 0.9671 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of SimCode: time 1.523e-06/0.8057, allocations: 1 kB / 0.9671 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.01349/0.8191, allocations: 4.924 MB / 0.9719 GB, free: 11.91 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