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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001429/0.00143, allocations: 108 kB / 15.61 MB, free: 152 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.00154/0.00154, allocations: 193.2 kB / 16.53 MB, free: 6.664 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.37/1.37, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.569/2.569, allocations: 437 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 59.91 kB / 0.8693 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6134/0.6147, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002639/0.6174, allocations: 1.517 MB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.6186, allocations: 0.5321 MB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.174e-05/0.6187, allocations: 0 / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.897e-05/0.6188, allocations: 11.86 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.6189, allocations: 27.86 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000731/0.6197, allocations: 323 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000471/0.6202, allocations: 0.4955 MB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.293e-05/0.6202, allocations: 15.98 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003247/0.6205, allocations: 271.6 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.6208, allocations: 139.6 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.634e-05/0.6209, allocations: 24 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.423e-05/0.621, allocations: 28 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.6211, allocations: 115.7 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.6213, allocations: 183 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004048/0.6217, allocations: 429 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.6217, allocations: 4 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.635e-06/0.6217, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.6218, allocations: 3.938 kB / 1.021 GB, free: 14.4 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.001161/0.6229, allocations: 0.8586 MB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.623, allocations: 12.03 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.972e-05/0.623, allocations: 34.75 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.6231, allocations: 56.45 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.6235, allocations: 314.1 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.449e-05/0.6236, allocations: 20.31 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.708e-05/0.6236, allocations: 32.36 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009889/0.6246, allocations: 210 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.6247, allocations: 3.938 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.6247, allocations: 0 / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.6247, allocations: 4 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007921/0.6255, allocations: 95.92 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00045/0.626, allocations: 401.2 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.627, allocations: 178.5 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007875/0.6278, allocations: 116.8 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.6279, allocations: 0 / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.6289, allocations: 224.7 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.854e-06/0.6289, allocations: 4 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002529/0.6315, allocations: 485.6 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.6315, allocations: 63.39 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004201/0.6319, allocations: 409.8 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.792e-05/0.632, allocations: 41.69 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.963e-05/0.6321, allocations: 93.39 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.942e-05/0.6322, allocations: 43.53 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002155/0.6324, allocations: 137.3 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.6325, allocations: 318.8 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.6328, allocations: 127.9 kB / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.6331, allocations: 161.9 kB / 1.026 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003968/0.6335, allocations: 282.6 kB / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.6335, allocations: 0 / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008316/0.6343, allocations: 498.4 kB / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-05/0.6344, allocations: 91.31 kB / 1.026 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.6345, allocations: 4 kB / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.6345, allocations: 0 / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.6346, allocations: 23.92 kB / 1.027 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.6347, allocations: 4 kB / 1.027 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005193/0.6352, allocations: 63.72 kB / 1.027 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.405e-05/0.6353, allocations: 60.08 kB / 1.027 GB, free: 8.676 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.0002303/0.6355, allocations: 205.6 kB / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.949e-05/0.6356, allocations: 39.47 kB / 1.027 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.169e-05/0.6357, allocations: 39.73 kB / 1.027 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.6357, allocations: 4 kB / 1.027 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.6357, allocations: 0 / 1.027 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.6357, allocations: 0 / 1.027 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.638, allocations: 0.7489 MB / 1.028 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.638, allocations: 0 / 1.028 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.638, allocations: 7.938 kB / 1.028 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.638, allocations: 0 / 1.028 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.731e-05/0.6381, allocations: 23.97 kB / 1.028 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.6381, allocations: 8 kB / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.6381, allocations: 0 / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.6399, allocations: 479.4 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/0.6401, allocations: 196.5 kB / 1.028 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.6402, allocations: 16 kB / 1.028 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004893/0.6407, allocations: 27.97 kB / 1.028 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.6408, allocations: 7.984 kB / 1.028 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.594e-05/0.6408, allocations: 59.97 kB / 1.028 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000291/0.6411, allocations: 295.1 kB / 1.029 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6411, allocations: 0 / 1.029 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000377/0.6415, allocations: 67.98 kB / 1.029 GB, free: 6.379 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.00212/0.6436, allocations: 1.024 MB / 1.03 GB, free: 5.332 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001301/0.645, allocations: 448.8 kB / 1.03 GB, free: 4.871 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.645, allocations: 0 / 1.03 GB, free: 4.871 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007885/0.6458, allocations: 124.2 kB / 1.03 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.6462, allocations: 21.55 kB / 1.03 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004939/0.6511, allocations: 2.778 MB / 1.033 GB, free: 1.816 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.6515, allocations: 0.7782 MB / 1.034 GB, free: 1.012 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.338e-05/0.6516, allocations: 13.09 kB / 1.034 GB, free: 1 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.801e-05/0.6517, allocations: 27.42 kB / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.6517, allocations: 0 / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.6784, allocations: 6.187 MB / 1.04 GB, free: 10.73 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.392/8.07, allocations: 25.67 kB / 1.04 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)