Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_10_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.001395/0.001395, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001324/0.001324, allocations: 195 kB / 16.14 MB, free: 6.648 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.274/1.274, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.313/2.313, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 67.89 kB / 0.8686 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5158/0.5173, allocations: 151.6 MB / 1.017 GB, free: 2.754 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.00223/0.5196, allocations: 1.582 MB / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.5206, allocations: 0.595 MB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.898e-05/0.5207, allocations: 0 / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.023e-05/0.5207, allocations: 3.938 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.511e-05/0.5208, allocations: 23.92 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005512/0.5214, allocations: 291.2 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003318/0.5217, allocations: 447.4 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.544e-05/0.5218, allocations: 4 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003259/0.5221, allocations: 306.9 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.5223, allocations: 159.2 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.346e-05/0.5224, allocations: 19.94 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.608e-05/0.5225, allocations: 12 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.5226, allocations: 115.6 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.5228, allocations: 182.8 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003435/0.5232, allocations: 424.7 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.5232, allocations: 4 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.012e-06/0.5232, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.5232, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 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.001002/0.5242, allocations: 0.8665 MB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.5242, allocations: 11.97 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.533e-05/0.5243, allocations: 38.73 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.5244, allocations: 48.47 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002935/0.5247, allocations: 310.2 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.952e-05/0.5247, allocations: 20.38 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.988e-05/0.5248, allocations: 24.36 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009705/0.5258, allocations: 217.9 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.5258, allocations: 3.938 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.5258, allocations: 4 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.5259, allocations: 0 / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007772/0.5266, allocations: 99.92 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.527, allocations: 397.2 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.528, allocations: 174.5 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007586/0.5288, allocations: 108.8 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.5288, allocations: 7.984 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009194/0.5298, allocations: 237.5 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.5298, allocations: 0 / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002436/0.5322, allocations: 477 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.5323, allocations: 63.39 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003233/0.5326, allocations: 409.8 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.5327, allocations: 41.69 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.5327, allocations: 97.39 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.5328, allocations: 39.53 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.5329, allocations: 137.3 kB / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.237e-05/0.533, allocations: 326.8 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.5333, allocations: 123.9 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.5336, allocations: 165.9 kB / 1.025 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.5339, allocations: 279.5 kB / 1.025 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.5339, allocations: 0 / 1.025 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007534/0.5347, allocations: 0.4889 MB / 1.026 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.728e-05/0.5347, allocations: 91.31 kB / 1.026 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.5347, allocations: 0 / 1.026 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.5348, allocations: 4 kB / 1.026 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.5349, allocations: 23.92 kB / 1.026 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.5349, allocations: 11.92 kB / 1.026 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000484/0.5354, allocations: 63.92 kB / 1.026 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-05/0.5355, allocations: 55.98 kB / 1.026 GB, free: 8.887 MB / 0.7794 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.0001784/0.5357, allocations: 195.2 kB / 1.026 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.5357, allocations: 43.45 kB / 1.026 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.253e-05/0.5358, allocations: 39.75 kB / 1.026 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.5358, allocations: 0 / 1.026 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.5358, allocations: 0 / 1.026 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.5358, allocations: 0 / 1.026 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.5378, allocations: 0.7539 MB / 1.027 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.5378, allocations: 0 / 1.027 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.424e-05/0.5379, allocations: 4 kB / 1.027 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.5379, allocations: 0 / 1.027 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/0.5379, allocations: 23.97 kB / 1.027 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.5379, allocations: 4 kB / 1.027 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5379, allocations: 0 / 1.027 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/0.5396, allocations: 470.8 kB / 1.027 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.5398, allocations: 200.5 kB / 1.028 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.894e-05/0.5399, allocations: 8 kB / 1.028 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004549/0.5403, allocations: 35.97 kB / 1.028 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.477e-05/0.5404, allocations: 15.86 kB / 1.028 GB, free: 7.008 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.997e-05/0.5404, allocations: 59.97 kB / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000236/0.5407, allocations: 295.1 kB / 1.028 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5407, allocations: 0 / 1.028 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003269/0.541, allocations: 71.98 kB / 1.028 GB, free: 6.594 MB / 0.7794 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.001879/0.5429, allocations: 1.027 MB / 1.029 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00114/0.5441, allocations: 447.3 kB / 1.03 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5441, allocations: 0 / 1.03 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007209/0.5448, allocations: 120.9 kB / 1.03 GB, free: 4.965 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.5451, allocations: 21.55 kB / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.5488, allocations: 2.892 MB / 1.033 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.5491, allocations: 0.7826 MB / 1.033 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.53e-05/0.5491, allocations: 13.09 kB / 1.033 GB, free: 1.098 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.282e-05/0.5492, allocations: 23.42 kB / 1.033 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.5492, allocations: 0 / 1.033 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.543/3.092, allocations: 6.091 MB / 1.039 GB, free: 10.96 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002625/3.093, allocations: 190.5 kB / 1.039 GB, free: 10.71 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.987/5.08, allocations: 3.938 kB / 1.039 GB, free: 10.71 MB / 0.795 GB (rm -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)