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.001393/0.001393, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001444/0.001444, allocations: 191.3 kB / 16.25 MB, free: 6.625 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.417/1.417, allocations: 222.9 MB / 239.9 MB, free: 4.492 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.534/2.534, allocations: 437 MB / 0.7101 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 59.91 kB / 0.8688 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5897/0.5912, allocations: 151.6 MB / 1.017 GB, free: 2.703 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002363/0.5936, allocations: 1.578 MB / 1.018 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.5946, allocations: 0.5345 MB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.099e-05/0.5947, allocations: 0 / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.193e-05/0.5948, allocations: 3.938 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.258e-05/0.5949, allocations: 23.86 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006465/0.5956, allocations: 294.8 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0004433/0.596, allocations: 0.5111 MB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.691e-05/0.5961, allocations: 4 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000383/0.5964, allocations: 339 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.5967, allocations: 167.2 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.769e-05/0.5968, allocations: 28 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.246e-05/0.5968, allocations: 28 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.5969, allocations: 115.6 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.5971, allocations: 198.8 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.5975, allocations: 428.7 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.5975, allocations: 4 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5975, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.5975, allocations: 0 / 1.021 GB, free: 14.47 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.001045/0.5986, allocations: 0.8665 MB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.5986, allocations: 8.031 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.886e-05/0.5987, allocations: 42.73 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.5988, allocations: 52.41 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.5991, allocations: 318.2 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.671e-05/0.5991, allocations: 24.36 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.613e-05/0.5992, allocations: 24.36 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009629/0.6002, allocations: 206 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.6002, allocations: 3.938 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.6002, allocations: 7.984 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.6002, allocations: 4 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007514/0.601, allocations: 99.92 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003594/0.6014, allocations: 389.2 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.6024, allocations: 182.3 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007401/0.6031, allocations: 112.8 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.6032, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008899/0.6041, allocations: 233.4 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.6041, allocations: 0 / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002393/0.6065, allocations: 484.9 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.6065, allocations: 55.41 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.6068, allocations: 417.8 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.091e-05/0.6069, allocations: 37.7 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.607, allocations: 97.44 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.039e-05/0.607, allocations: 39.53 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/0.6072, allocations: 129.3 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.953e-05/0.6073, allocations: 322.8 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/0.6075, allocations: 127.9 kB / 1.025 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.6078, allocations: 169.9 kB / 1.025 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.6081, allocations: 279.1 kB / 1.026 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.6081, allocations: 3.938 kB / 1.026 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007179/0.6089, allocations: 494.5 kB / 1.026 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.913e-05/0.6089, allocations: 95.3 kB / 1.026 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.6089, allocations: 4 kB / 1.026 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.609, allocations: 4 kB / 1.026 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.6091, allocations: 19.92 kB / 1.026 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.6091, allocations: 7.984 kB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004644/0.6096, allocations: 59.73 kB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.596e-05/0.6097, allocations: 72.03 kB / 1.026 GB, free: 8.727 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.0001882/0.6099, allocations: 191.8 kB / 1.026 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.635e-05/0.6099, allocations: 39.47 kB / 1.027 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.666e-05/0.61, allocations: 43.73 kB / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.61, allocations: 4 kB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.61, allocations: 0 / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.61, allocations: 3.984 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/0.612, allocations: 0.7502 MB / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.6121, allocations: 0 / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.463e-05/0.6121, allocations: 7.984 kB / 1.027 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.6121, allocations: 0 / 1.027 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.6121, allocations: 15.98 kB / 1.027 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.6121, allocations: 4 kB / 1.027 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.6122, allocations: 0 / 1.027 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.6138, allocations: 478.8 kB / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.614, allocations: 200.5 kB / 1.028 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.028e-05/0.6141, allocations: 11.98 kB / 1.028 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004759/0.6146, allocations: 31.97 kB / 1.028 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.95e-05/0.6146, allocations: 11.98 kB / 1.028 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.999e-05/0.6147, allocations: 55.97 kB / 1.028 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002357/0.6149, allocations: 299 kB / 1.028 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6149, allocations: 0 / 1.028 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000316/0.6152, allocations: 72 kB / 1.028 GB, free: 6.434 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.001896/0.6171, allocations: 1.023 MB / 1.029 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001148/0.6183, allocations: 454.8 kB / 1.03 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6183, allocations: 0 / 1.03 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007508/0.6191, allocations: 120.9 kB / 1.03 GB, free: 4.801 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.6194, allocations: 35.47 kB / 1.03 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.623, allocations: 2.885 MB / 1.033 GB, free: 1.75 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.6233, allocations: 0.7746 MB / 1.034 GB, free: 0.9492 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.815e-05/0.6233, allocations: 17.08 kB / 1.034 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.288e-05/0.6234, allocations: 31.36 kB / 1.034 GB, free: 0.9023 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.6234, allocations: 0 / 1.034 GB, free: 0.9023 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.399/2.022, allocations: 6.261 MB / 1.04 GB, free: 10.64 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/2.022, allocations: 188.6 kB / 1.04 GB, free: 10.39 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/4.131, allocations: 0 / 1.04 GB, free: 10.39 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)