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.001196/0.001196, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002621/0.002622, allocations: 197.3 kB / 16.54 MB, free: 6.672 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.479/1.479, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.508/2.508, allocations: 390.2 MB / 0.6646 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.00129, allocations: 67.89 kB / 0.8125 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8832/0.8845, allocations: 140.3 MB / 0.9496 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002752/0.8873, allocations: 1.518 MB / 0.951 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.8887, allocations: 0.5422 MB / 0.9516 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.294e-05/0.8888, allocations: 4 kB / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.889, allocations: 13.33 kB / 0.9516 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.8891, allocations: 26.52 kB / 0.9516 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008539/0.89, allocations: 308.7 kB / 0.9519 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005416/0.8905, allocations: 0.5036 MB / 0.9524 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.466e-05/0.8906, allocations: 12.98 kB / 0.9524 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003745/0.891, allocations: 269.1 kB / 0.9527 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.8912, allocations: 137.3 kB / 0.9528 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.8914, allocations: 29.73 kB / 0.9528 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.8915, allocations: 27.03 kB / 0.9529 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.8916, allocations: 119.8 kB / 0.953 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.8918, allocations: 179.4 kB / 0.9531 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004568/0.8923, allocations: 424.3 kB / 0.9535 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.8923, allocations: 4 kB / 0.9536 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8923, allocations: 0 / 0.9536 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.756e-06/0.8923, allocations: 0 / 0.9536 GB, free: 6.316 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.001259/0.8936, allocations: 0.8751 MB / 0.9544 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.8937, allocations: 9.656 kB / 0.9544 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.8938, allocations: 54.56 kB / 0.9545 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.8941, allocations: 301.3 kB / 0.9548 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.031e-05/0.8942, allocations: 19.8 kB / 0.9548 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.158e-05/0.8943, allocations: 29.22 kB / 0.9548 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009886/0.8953, allocations: 214.4 kB / 0.955 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.8953, allocations: 192 / 0.955 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.8953, allocations: 6.25 kB / 0.955 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.8953, allocations: 1.594 kB / 0.955 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007931/0.8961, allocations: 102.5 kB / 0.9551 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004202/0.8966, allocations: 392.7 kB / 0.9555 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.8976, allocations: 185 kB / 0.9557 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007471/0.8984, allocations: 107.9 kB / 0.9558 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.8984, allocations: 9.297 kB / 0.9558 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.8995, allocations: 219.7 kB / 0.956 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.695e-06/0.8996, allocations: 0 / 0.956 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.003308/0.9029, allocations: 488.6 kB / 0.9565 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.903, allocations: 64.27 kB / 0.9565 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009779/0.904, allocations: 417.2 kB / 0.9569 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002002/0.9042, allocations: 41.94 kB / 0.957 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.9044, allocations: 92.31 kB / 0.957 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.925e-05/0.9044, allocations: 33.06 kB / 0.9571 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003332/0.9048, allocations: 132.4 kB / 0.9572 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.9049, allocations: 321.7 kB / 0.9575 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.9052, allocations: 121.2 kB / 0.9576 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.9056, allocations: 178.2 kB / 0.9578 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.9061, allocations: 283.7 kB / 0.9581 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.9061, allocations: 1.125 kB / 0.9581 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001107/0.9072, allocations: 492.5 kB / 0.9585 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.58e-05/0.9073, allocations: 95.59 kB / 0.9586 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.9073, allocations: 1 kB / 0.9586 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.9074, allocations: 3.312 kB / 0.9586 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.9076, allocations: 22.81 kB / 0.9586 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.9076, allocations: 5.875 kB / 0.9587 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005959/0.9082, allocations: 63.2 kB / 0.9587 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.9083, allocations: 60.67 kB / 0.9588 GB, free: 2.508 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.0003353/0.9087, allocations: 187.8 kB / 0.9589 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-05/0.9088, allocations: 44.64 kB / 0.959 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.249e-05/0.9089, allocations: 39.94 kB / 0.959 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.9089, allocations: 5.594 kB / 0.959 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.9089, allocations: 0.75 kB / 0.959 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.9089, allocations: 0 / 0.959 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.9112, allocations: 0.7493 MB / 0.9598 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.9112, allocations: 0 / 0.9598 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.424e-05/0.9112, allocations: 3.906 kB / 0.9598 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.9112, allocations: 1.156 kB / 0.9598 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/0.9113, allocations: 27.5 kB / 0.9598 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.9113, allocations: 9.25 kB / 0.9598 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.9113, allocations: 0 / 0.9598 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.913, allocations: 479.1 kB / 0.9603 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.9132, allocations: 197.8 kB / 0.9605 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/0.9133, allocations: 13.75 kB / 0.9605 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004531/0.9138, allocations: 31.08 kB / 0.9605 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.224e-05/0.9138, allocations: 11.56 kB / 0.9605 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-05/0.9139, allocations: 57.88 kB / 0.9606 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002909/0.9142, allocations: 294.3 kB / 0.9608 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9142, allocations: 0 / 0.9608 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005287/0.9148, allocations: 65.83 kB / 0.9609 GB, free: 1.09 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.0001611/0.9149, allocations: 124.5 kB / 0.961 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001296/0.9162, allocations: 451.3 kB / 0.9615 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.9162, allocations: 0 / 0.9615 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007712/0.917, allocations: 121.6 kB / 0.9616 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.9174, allocations: 27.05 kB / 0.9616 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.9189, allocations: 0.5468 MB / 0.9621 GB, free: 316 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.9192, allocations: 0.7785 MB / 0.9629 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.665e-05/0.9193, allocations: 17.25 kB / 0.9629 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.191e-05/0.9193, allocations: 17.78 kB / 0.9629 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.9193, allocations: 0 / 0.9629 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of Templates: time 0.01022/0.9296, allocations: 5.044 MB / 0.9678 GB, free: 12.73 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