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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001255/0.001255, allocations: 191 kB / 16.25 MB, free: 6.637 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.22/1.22, allocations: 222.9 MB / 239.9 MB, free: 4.453 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.123/2.123, allocations: 390.2 MB / 0.6644 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.91 kB / 0.8121 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4779/0.4792, allocations: 140.4 MB / 0.9492 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001895/0.4811, allocations: 1.579 MB / 0.9508 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008751/0.482, allocations: 0.5405 MB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.922e-05/0.482, allocations: 0 / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.482e-05/0.4821, allocations: 5.312 kB / 0.9513 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.181e-05/0.4822, allocations: 26.84 kB / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.4827, allocations: 279.5 kB / 0.9516 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003643/0.4831, allocations: 0.5168 MB / 0.9521 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.764e-05/0.4831, allocations: 9.734 kB / 0.9521 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003295/0.4835, allocations: 333.9 kB / 0.9524 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.4837, allocations: 171 kB / 0.9526 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.331e-05/0.4837, allocations: 26.91 kB / 0.9526 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.112e-05/0.4838, allocations: 26.69 kB / 0.9526 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.33e-05/0.4839, allocations: 124.2 kB / 0.9527 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.4841, allocations: 191.4 kB / 0.9529 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.4843, allocations: 428.5 kB / 0.9533 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.4844, allocations: 0 / 0.9533 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4844, allocations: 0 / 0.9533 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.21e-05/0.4844, allocations: 0 / 0.9533 GB, free: 6.25 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.0008813/0.4853, allocations: 0.8712 MB / 0.9542 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.4853, allocations: 10.44 kB / 0.9542 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.904e-05/0.4853, allocations: 41.05 kB / 0.9542 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.864e-05/0.4854, allocations: 49.62 kB / 0.9543 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.4857, allocations: 314.8 kB / 0.9546 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.938e-05/0.4857, allocations: 18.42 kB / 0.9546 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.251e-05/0.4858, allocations: 33.64 kB / 0.9546 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009059/0.4867, allocations: 215 kB / 0.9548 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.4867, allocations: 3.938 kB / 0.9548 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.4868, allocations: 5.5 kB / 0.9549 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.4868, allocations: 1.438 kB / 0.9549 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007282/0.4875, allocations: 100.1 kB / 0.9549 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002803/0.4878, allocations: 394.6 kB / 0.9553 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000964/0.4888, allocations: 177.5 kB / 0.9555 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007078/0.4895, allocations: 116 kB / 0.9556 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.4895, allocations: 1.375 kB / 0.9556 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008414/0.4904, allocations: 219.3 kB / 0.9558 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.4904, allocations: 0 / 0.9558 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002375/0.4927, allocations: 489.5 kB / 0.9563 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.4928, allocations: 63.28 kB / 0.9563 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.4931, allocations: 417.9 kB / 0.9567 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.4931, allocations: 37.77 kB / 0.9568 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.23e-05/0.4932, allocations: 96.31 kB / 0.9569 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.4932, allocations: 40.97 kB / 0.9569 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.4934, allocations: 128.5 kB / 0.957 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.323e-05/0.4934, allocations: 321.6 kB / 0.9573 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.4936, allocations: 125.1 kB / 0.9575 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.4939, allocations: 171.2 kB / 0.9576 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.4942, allocations: 282.4 kB / 0.9579 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4942, allocations: 0.75 kB / 0.9579 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006833/0.4949, allocations: 485.8 kB / 0.9584 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.174e-05/0.4949, allocations: 92.09 kB / 0.9584 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.4949, allocations: 1.188 kB / 0.9584 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.495, allocations: 7.484 kB / 0.9584 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.4951, allocations: 26.02 kB / 0.9585 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4951, allocations: 6.578 kB / 0.9585 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.4956, allocations: 62.86 kB / 0.9585 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.475e-05/0.4957, allocations: 64.19 kB / 0.9586 GB, free: 2.391 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.0001579/0.4958, allocations: 191.8 kB / 0.9588 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.02e-05/0.4959, allocations: 44.72 kB / 0.9588 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.065e-05/0.4959, allocations: 40.09 kB / 0.9589 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.496, allocations: 6.203 kB / 0.9589 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.496, allocations: 0 / 0.9589 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.496, allocations: 0 / 0.9589 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001909/0.4979, allocations: 0.7487 MB / 0.9596 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4979, allocations: 4 kB / 0.9596 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.075e-05/0.4979, allocations: 3.375 kB / 0.9596 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.4979, allocations: 5.516 kB / 0.9596 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.498, allocations: 15.7 kB / 0.9596 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.498, allocations: 1.344 kB / 0.9596 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.498, allocations: 0 / 0.9596 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.4996, allocations: 483 kB / 0.9601 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.4998, allocations: 200.6 kB / 0.9603 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.21e-05/0.4998, allocations: 16.86 kB / 0.9603 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/0.5003, allocations: 30.75 kB / 0.9603 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.5003, allocations: 12.83 kB / 0.9603 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.955e-05/0.5004, allocations: 55.14 kB / 0.9604 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002134/0.5006, allocations: 292.9 kB / 0.9607 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5006, allocations: 0 / 0.9607 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003147/0.5009, allocations: 69.61 kB / 0.9607 GB, free: 0.9766 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.001719/0.5027, allocations: 1.024 MB / 0.9617 GB, free: 176 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001126/0.5038, allocations: 444.9 kB / 0.9622 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.5038, allocations: 0.7188 kB / 0.9622 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007193/0.5045, allocations: 120.9 kB / 0.9623 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.5049, allocations: 33.94 kB / 0.9623 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003646/0.5085, allocations: 2.886 MB / 0.9651 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.5088, allocations: 0.7745 MB / 0.9659 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.68e-05/0.5089, allocations: 16.39 kB / 0.9659 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.5089, allocations: 26.67 kB / 0.9659 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.5089, allocations: 0 / 0.9659 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3435/0.8525, allocations: 6.253 MB / 0.972 GB, free: 9.449 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.8527, allocations: 208.8 kB / 0.9722 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/2.443, allocations: 0 / 0.9722 GB, free: 9.18 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)