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.0008868/0.0008868, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006981/0.006981, allocations: 170 kB / 16.26 MB, free: 6.613 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.572/1.572, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.624/2.624, allocations: 390.9 MB / 0.6663 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004188/0.0004188, allocations: 12 kB / 0.8159 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7858/0.7863, allocations: 142.4 MB / 0.955 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001552/0.7879, allocations: 1.239 MB / 0.9562 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001244/0.7891, allocations: 0.5889 MB / 0.9568 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.802e-05/0.7892, allocations: 4 kB / 0.9568 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.014e-05/0.7893, allocations: 3.938 kB / 0.9568 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.7895, allocations: 23.91 kB / 0.9568 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007991/0.7903, allocations: 277.9 kB / 0.9571 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005229/0.7908, allocations: 448.5 kB / 0.9575 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.706e-05/0.7909, allocations: 8.453 kB / 0.9575 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005687/0.7915, allocations: 304.4 kB / 0.9578 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003295/0.7918, allocations: 165.4 kB / 0.958 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.68e-05/0.7919, allocations: 13.75 kB / 0.958 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.517e-05/0.792, allocations: 13.75 kB / 0.958 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.7921, allocations: 116.9 kB / 0.9581 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.7924, allocations: 208.2 kB / 0.9583 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004305/0.7928, allocations: 420.7 kB / 0.9587 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7928, allocations: 3.938 kB / 0.9587 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.644e-06/0.7928, allocations: 1.125 kB / 0.9587 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.7928, allocations: 0 / 0.9587 GB, free: 5.137 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.001158/0.794, allocations: 0.7465 MB / 0.9595 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.7941, allocations: 9.219 kB / 0.9595 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.7942, allocations: 50.5 kB / 0.9595 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.7946, allocations: 310 kB / 0.9598 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.096e-05/0.7947, allocations: 15.38 kB / 0.9598 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.7948, allocations: 30.34 kB / 0.9599 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.796, allocations: 223.6 kB / 0.9601 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.796, allocations: 192 / 0.9601 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.414e-05/0.7961, allocations: 13.25 kB / 0.9601 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.7961, allocations: 1.375 kB / 0.9601 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008841/0.797, allocations: 112.9 kB / 0.9602 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005884/0.7976, allocations: 395.7 kB / 0.9606 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.7988, allocations: 191.5 kB / 0.9608 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008391/0.7996, allocations: 120.6 kB / 0.9609 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.221e-05/0.7997, allocations: 2.125 kB / 0.9609 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/0.8008, allocations: 240.5 kB / 0.9611 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.305e-06/0.8008, allocations: 1.25 kB / 0.9611 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002903/0.8037, allocations: 0.5054 MB / 0.9616 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.8038, allocations: 63.77 kB / 0.9617 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004785/0.8043, allocations: 413.6 kB / 0.9621 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.827e-05/0.8044, allocations: 41.31 kB / 0.9621 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.8044, allocations: 97.12 kB / 0.9622 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.432e-05/0.8045, allocations: 41.33 kB / 0.9622 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.661e-05/0.8046, allocations: 39.44 kB / 0.9623 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.105e-05/0.8046, allocations: 321.3 kB / 0.9626 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.8049, allocations: 121.2 kB / 0.9627 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/0.8052, allocations: 171.2 kB / 0.9628 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.8056, allocations: 279.9 kB / 0.9631 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.8056, allocations: 1.344 kB / 0.9631 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007918/0.8064, allocations: 496 kB / 0.9636 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.403e-05/0.8065, allocations: 93.03 kB / 0.9637 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.8065, allocations: 1.594 kB / 0.9637 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.8065, allocations: 3 kB / 0.9637 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.8067, allocations: 22.75 kB / 0.9637 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.8067, allocations: 6.656 kB / 0.9637 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/0.8073, allocations: 73.64 kB / 0.9638 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.913e-05/0.8074, allocations: 56.55 kB / 0.9638 GB, free: 1.43 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.0002215/0.8076, allocations: 199.7 kB / 0.964 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.441e-05/0.8077, allocations: 44.38 kB / 0.9641 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.762e-05/0.8078, allocations: 39.94 kB / 0.9641 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.8078, allocations: 2.406 kB / 0.9641 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.8078, allocations: 4 kB / 0.9641 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.8078, allocations: 5.047 kB / 0.9641 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002322/0.8101, allocations: 0.7636 MB / 0.9649 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.8101, allocations: 0 / 0.9649 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.004e-05/0.8102, allocations: 7.969 kB / 0.9649 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.822e-06/0.8102, allocations: 4.953 kB / 0.9649 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.8102, allocations: 24.03 kB / 0.9649 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.8102, allocations: 5.125 kB / 0.9649 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.8103, allocations: 0 / 0.9649 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001935/0.8122, allocations: 496.9 kB / 0.9654 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.8125, allocations: 195.4 kB / 0.9656 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.424e-05/0.8126, allocations: 12.91 kB / 0.9656 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005026/0.8131, allocations: 40.36 kB / 0.9656 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.8131, allocations: 4.5 kB / 0.9656 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.112e-05/0.8132, allocations: 60.97 kB / 0.9657 GB, free: 200 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003954/0.8136, allocations: 294.6 kB / 0.966 GB, free: 16 kB / 0.7169 GB Notification: Performance of sort global known variables: time 6.41e-07/0.8136, allocations: 0 / 0.966 GB, free: 16 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005209/0.8142, allocations: 66.52 kB / 0.966 GB, free: 8 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 (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.0002336/0.8144, allocations: 123.8 kB / 0.9661 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001496/0.8159, allocations: 447.4 kB / 0.9666 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.8159, allocations: 9.375 kB / 0.9666 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000827/0.8168, allocations: 126.2 kB / 0.9667 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.8172, allocations: 34.52 kB / 0.9667 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.8191, allocations: 0.6753 MB / 0.9674 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.8195, allocations: 0.7754 MB / 0.9681 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.485e-05/0.8196, allocations: 11.88 kB / 0.9682 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.805e-05/0.8197, allocations: 22.14 kB / 0.9682 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of SimCode: time 3.91e-07/0.8197, allocations: 1.188 kB / 0.9682 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of Templates: time 0.01168/0.8314, allocations: 5.008 MB / 0.9731 GB, free: 11.53 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