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: "" <> 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.0008756/0.0008757, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.004954/0.004954, allocations: 170.8 kB / 16.27 MB, free: 6.652 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.199/1.199, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.134/2.134, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.0003509, allocations: 11.98 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.53/0.5304, allocations: 142.4 MB / 0.9552 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001243/0.5316, allocations: 1.23 MB / 0.9564 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.5327, allocations: 0.593 MB / 0.9569 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.254e-05/0.5328, allocations: 0 / 0.9569 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.119e-05/0.5328, allocations: 7.922 kB / 0.9569 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.44e-05/0.5329, allocations: 27.91 kB / 0.957 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006186/0.5336, allocations: 281.9 kB / 0.9572 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003697/0.534, allocations: 449.4 kB / 0.9577 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.283e-05/0.534, allocations: 12.61 kB / 0.9577 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003904/0.5344, allocations: 304.6 kB / 0.958 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.5347, allocations: 157.8 kB / 0.9581 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.285e-05/0.5347, allocations: 13.75 kB / 0.9581 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.274e-05/0.5348, allocations: 13.75 kB / 0.9581 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.5349, allocations: 124.9 kB / 0.9583 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.5351, allocations: 203.8 kB / 0.9585 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.5354, allocations: 409 kB / 0.9589 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.5354, allocations: 1.344 kB / 0.9589 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5354, allocations: 0 / 0.9589 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.756e-06/0.5354, allocations: 0 / 0.9589 GB, free: 5.145 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.0008574/0.5363, allocations: 0.7547 MB / 0.9596 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.5363, allocations: 8.688 kB / 0.9596 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.68e-05/0.5364, allocations: 45.48 kB / 0.9596 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.5365, allocations: 54.95 kB / 0.9597 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.5368, allocations: 309.3 kB / 0.96 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.5368, allocations: 19.14 kB / 0.96 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.525e-05/0.5369, allocations: 26.45 kB / 0.96 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009396/0.5379, allocations: 229.6 kB / 0.9603 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.5379, allocations: 3.938 kB / 0.9603 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.5379, allocations: 0.9688 kB / 0.9603 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.5379, allocations: 2.031 kB / 0.9603 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007551/0.5387, allocations: 113.3 kB / 0.9604 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003413/0.539, allocations: 391.3 kB / 0.9607 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.5401, allocations: 191 kB / 0.9609 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007467/0.5408, allocations: 124.9 kB / 0.961 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.5409, allocations: 6.281 kB / 0.961 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008776/0.5418, allocations: 229.9 kB / 0.9613 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.543e-06/0.5418, allocations: 0.7812 kB / 0.9613 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.00251/0.5443, allocations: 0.5113 MB / 0.9618 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.5443, allocations: 60.25 kB / 0.9618 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.5446, allocations: 413.3 kB / 0.9622 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.884e-05/0.5447, allocations: 38.58 kB / 0.9623 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.304e-05/0.5448, allocations: 100.5 kB / 0.9624 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.5448, allocations: 40.61 kB / 0.9624 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.437e-05/0.5449, allocations: 35.77 kB / 0.9624 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.884e-05/0.5449, allocations: 329.6 kB / 0.9627 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.5452, allocations: 121 kB / 0.9629 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002481/0.5454, allocations: 171.8 kB / 0.963 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003115/0.5457, allocations: 282.6 kB / 0.9633 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.5457, allocations: 1.188 kB / 0.9633 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007168/0.5465, allocations: 485.5 kB / 0.9638 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.36e-05/0.5465, allocations: 100.4 kB / 0.9638 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.5466, allocations: 1.125 kB / 0.9638 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.5466, allocations: 2.875 kB / 0.9639 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.5467, allocations: 22.05 kB / 0.9639 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.5467, allocations: 3.188 kB / 0.9639 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004999/0.5472, allocations: 70.48 kB / 0.9639 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.984e-05/0.5473, allocations: 64.47 kB / 0.964 GB, free: 1.379 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.000174/0.5475, allocations: 191.6 kB / 0.9642 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.22e-05/0.5476, allocations: 40.84 kB / 0.9642 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.51e-05/0.5476, allocations: 47.58 kB / 0.9643 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.5476, allocations: 1.719 kB / 0.9643 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5477, allocations: 4.922 kB / 0.9643 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.5477, allocations: 0 / 0.9643 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002045/0.5497, allocations: 0.7694 MB / 0.965 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5497, allocations: 0.9688 kB / 0.965 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.223e-05/0.5498, allocations: 6.984 kB / 0.965 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.5498, allocations: 1.031 kB / 0.965 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/0.5498, allocations: 20.08 kB / 0.9651 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.5498, allocations: 1.031 kB / 0.9651 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5498, allocations: 0 / 0.9651 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.5515, allocations: 0.4947 MB / 0.9655 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.5517, allocations: 199.6 kB / 0.9657 GB, free: 184 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.579e-05/0.5518, allocations: 13.2 kB / 0.9657 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004707/0.5523, allocations: 36.31 kB / 0.9658 GB, free: 164 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.5523, allocations: 11.98 kB / 0.9658 GB, free: 156 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.369e-05/0.5524, allocations: 57.66 kB / 0.9658 GB, free: 148 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002543/0.5526, allocations: 293.8 kB / 0.9661 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5526, allocations: 0 / 0.9661 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003273/0.553, allocations: 62.72 kB / 0.9662 GB, free: 15.96 MB / 0.7325 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.002034/0.555, allocations: 1.046 MB / 0.9672 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001232/0.5562, allocations: 448.9 kB / 0.9676 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5563, allocations: 1.375 kB / 0.9676 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007722/0.557, allocations: 129.7 kB / 0.9678 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.5574, allocations: 37.5 kB / 0.9678 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.5613, allocations: 2.901 MB / 0.9706 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.5616, allocations: 0.7704 MB / 0.9714 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.364e-05/0.5617, allocations: 12.58 kB / 0.9714 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.104e-05/0.5617, allocations: 22.5 kB / 0.9714 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.5617, allocations: 0 / 0.9714 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.5776, allocations: 6.001 MB / 0.9773 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/0.5779, allocations: 194.9 kB / 0.9775 GB, free: 7.773 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.258, allocations: 0 / 0.9775 GB, free: 7.773 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)