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.00132/0.00132, 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.001328/0.001328, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.276/2.276, allocations: 390.2 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001563, allocations: 63.89 kB / 0.8126 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.608/0.6096, allocations: 140.4 MB / 0.9497 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002397/0.612, allocations: 1.506 MB / 0.9512 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.6131, allocations: 0.5397 MB / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.664e-05/0.6132, allocations: 0 / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.036e-05/0.6132, allocations: 9.062 kB / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.731e-05/0.6133, allocations: 22.98 kB / 0.9517 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.614, allocations: 327.5 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004022/0.6144, allocations: 0.4995 MB / 0.9525 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.889e-05/0.6144, allocations: 17.25 kB / 0.9525 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002959/0.6147, allocations: 273.5 kB / 0.9528 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.615, allocations: 136.2 kB / 0.9529 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.932e-05/0.6151, allocations: 26.81 kB / 0.953 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.837e-05/0.6152, allocations: 27.81 kB / 0.953 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.6153, allocations: 119.1 kB / 0.9531 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.6155, allocations: 183.2 kB / 0.9533 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.6159, allocations: 423.6 kB / 0.9537 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6159, allocations: 1.156 kB / 0.9537 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6159, allocations: 0 / 0.9537 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.6159, allocations: 0 / 0.9537 GB, free: 6.328 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.0009906/0.6169, allocations: 0.8709 MB / 0.9545 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.6169, allocations: 10.38 kB / 0.9545 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.356e-05/0.617, allocations: 37.02 kB / 0.9546 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.6171, allocations: 53.88 kB / 0.9546 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.6174, allocations: 314.3 kB / 0.9549 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.6174, allocations: 17.98 kB / 0.9549 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.977e-05/0.6175, allocations: 27.33 kB / 0.955 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009119/0.6185, allocations: 210.2 kB / 0.9552 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.6185, allocations: 3.938 kB / 0.9552 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.6185, allocations: 9.047 kB / 0.9552 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.6185, allocations: 5.062 kB / 0.9552 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007485/0.6193, allocations: 96.02 kB / 0.9553 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003125/0.6196, allocations: 391.2 kB / 0.9557 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000998/0.6206, allocations: 175.7 kB / 0.9558 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007317/0.6213, allocations: 111.9 kB / 0.9559 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.6214, allocations: 5.25 kB / 0.9559 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008692/0.6222, allocations: 228.1 kB / 0.9562 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.814e-06/0.6222, allocations: 0 / 0.9562 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002453/0.6247, allocations: 484.3 kB / 0.9566 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.6247, allocations: 59.91 kB / 0.9567 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003299/0.6251, allocations: 413.9 kB / 0.9571 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/0.6251, allocations: 37.33 kB / 0.9571 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.846e-05/0.6252, allocations: 100 kB / 0.9572 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.441e-05/0.6252, allocations: 46.59 kB / 0.9572 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.6254, allocations: 127.8 kB / 0.9574 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.374e-05/0.6255, allocations: 321 kB / 0.9577 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.6257, allocations: 121.7 kB / 0.9578 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002558/0.626, allocations: 170.1 kB / 0.9579 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.6263, allocations: 283.2 kB / 0.9582 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.6263, allocations: 5.031 kB / 0.9582 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007304/0.627, allocations: 489 kB / 0.9587 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.177e-05/0.6271, allocations: 96.42 kB / 0.9588 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.6271, allocations: 1.125 kB / 0.9588 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.6271, allocations: 3.344 kB / 0.9588 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.6273, allocations: 26.17 kB / 0.9588 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.6273, allocations: 2.531 kB / 0.9588 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.6278, allocations: 62.17 kB / 0.9589 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.561e-05/0.6279, allocations: 65.81 kB / 0.9589 GB, free: 2.48 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.0001673/0.6281, allocations: 200 kB / 0.9591 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.193e-05/0.6281, allocations: 35.19 kB / 0.9592 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.287e-05/0.6282, allocations: 45.23 kB / 0.9592 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.6282, allocations: 1.312 kB / 0.9592 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.6282, allocations: 0 / 0.9592 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.6282, allocations: 5.406 kB / 0.9592 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.6302, allocations: 0.7436 MB / 0.9599 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.6302, allocations: 1.219 kB / 0.9599 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.327e-05/0.6302, allocations: 11.52 kB / 0.9599 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.6303, allocations: 5.156 kB / 0.96 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.6303, allocations: 15.3 kB / 0.96 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.6303, allocations: 1 kB / 0.96 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.6303, allocations: 0 / 0.96 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.6319, allocations: 477.5 kB / 0.9604 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000188/0.6321, allocations: 199.4 kB / 0.9606 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.486e-05/0.6322, allocations: 12.86 kB / 0.9606 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004599/0.6327, allocations: 35.94 kB / 0.9607 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.314e-05/0.6327, allocations: 8.172 kB / 0.9607 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.219e-05/0.6328, allocations: 53.2 kB / 0.9607 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002527/0.633, allocations: 304.9 kB / 0.961 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6331, allocations: 0 / 0.961 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003449/0.6334, allocations: 63.67 kB / 0.9611 GB, free: 1.062 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.001838/0.6352, allocations: 1.029 MB / 0.9621 GB, free: 260 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001211/0.6365, allocations: 443.5 kB / 0.9625 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.6365, allocations: 4.125 kB / 0.9625 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007646/0.6373, allocations: 116.1 kB / 0.9626 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.6376, allocations: 31.17 kB / 0.9626 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/0.6417, allocations: 2.776 MB / 0.9654 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.6421, allocations: 0.7744 MB / 0.9661 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.938e-05/0.6422, allocations: 12.27 kB / 0.9661 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.83e-05/0.6423, allocations: 26.02 kB / 0.9661 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.6423, allocations: 1.125 kB / 0.9661 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02171/0.664, allocations: 6.182 MB / 0.9722 GB, free: 9.629 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.687, allocations: 4.969 kB / 0.9722 GB, free: 9.629 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)