Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_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.006276/0.006276, allocations: 96.31 kB / 15.73 MB, free: 6.039 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.001421/0.001422, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00323/0.00323, allocations: 286.4 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9646/0.9646, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001966, allocations: 96.48 kB / 0.6809 GB, free: 32 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1835, allocations: 86.98 MB / 0.7659 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002492/0.186, allocations: 1.478 MB / 0.7673 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008773/0.1869, allocations: 431.3 kB / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.017e-05/0.187, allocations: 0 / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.723e-05/0.1871, allocations: 3.938 kB / 0.7677 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.1872, allocations: 28.16 kB / 0.7678 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006937/0.1879, allocations: 246.9 kB / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003763/0.1883, allocations: 331.5 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.331e-05/0.1884, allocations: 11.97 kB / 0.7683 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.1887, allocations: 195.6 kB / 0.7685 GB, free: 6.262 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002374/0.1889, allocations: 122.3 kB / 0.7686 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/0.189, allocations: 20 kB / 0.7686 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.759e-05/0.189, allocations: 16 kB / 0.7687 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.452e-05/0.1891, allocations: 87.7 kB / 0.7687 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.1893, allocations: 127.4 kB / 0.7689 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003177/0.1896, allocations: 299.2 kB / 0.7691 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1896, allocations: 0 / 0.7691 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.122e-06/0.1896, allocations: 0 / 0.7691 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.1896, allocations: 0 / 0.7691 GB, free: 5.605 MB / 0.5606 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.00106/0.1907, allocations: 0.7462 MB / 0.7699 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.1907, allocations: 8.031 kB / 0.7699 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.739e-05/0.1908, allocations: 38.73 kB / 0.7699 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.245e-05/0.1909, allocations: 32.8 kB / 0.77 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.1912, allocations: 271.7 kB / 0.7702 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.1913, allocations: 16.12 kB / 0.7702 GB, free: 4.367 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.941e-05/0.1913, allocations: 19.98 kB / 0.7702 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000977/0.1923, allocations: 197.5 kB / 0.7704 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1923, allocations: 0 / 0.7704 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.1924, allocations: 7.938 kB / 0.7704 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1924, allocations: 0 / 0.7704 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007797/0.1932, allocations: 99.91 kB / 0.7705 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003516/0.1935, allocations: 313.4 kB / 0.7708 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.1946, allocations: 190.3 kB / 0.771 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007679/0.1954, allocations: 108 kB / 0.7711 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.1954, allocations: 0 / 0.7711 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.1965, allocations: 212.4 kB / 0.7713 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 3.767e-06/0.1965, allocations: 0 / 0.7713 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.002569/0.199, allocations: 465.7 kB / 0.7718 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.1991, allocations: 55.41 kB / 0.7718 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.1994, allocations: 291 kB / 0.7721 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.897e-05/0.1994, allocations: 37.7 kB / 0.7721 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.1995, allocations: 89.14 kB / 0.7722 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.494e-05/0.1996, allocations: 35.75 kB / 0.7723 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.1997, allocations: 105.6 kB / 0.7724 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.408e-05/0.1998, allocations: 318.8 kB / 0.7727 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.2, allocations: 79.95 kB / 0.7727 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.2002, allocations: 153 kB / 0.7729 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.2005, allocations: 243.2 kB / 0.7731 GB, free: 1.234 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2005, allocations: 3.984 kB / 0.7731 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006215/0.2012, allocations: 392.7 kB / 0.7735 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.967e-05/0.2013, allocations: 75.39 kB / 0.7736 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.2013, allocations: 0 / 0.7736 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.2013, allocations: 4 kB / 0.7736 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.2015, allocations: 23.91 kB / 0.7736 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.2015, allocations: 4 kB / 0.7736 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.202, allocations: 60.03 kB / 0.7737 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.796e-05/0.2021, allocations: 39.98 kB / 0.7737 GB, free: 0.6133 MB / 0.5606 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.0002346/0.2023, allocations: 178.3 kB / 0.7739 GB, free: 444 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-05/0.2024, allocations: 23.86 kB / 0.7739 GB, free: 420 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.654e-05/0.2025, allocations: 30.3 kB / 0.7739 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2025, allocations: 0 / 0.7739 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2025, allocations: 0 / 0.7739 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.2025, allocations: 3.984 kB / 0.7739 GB, free: 388 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3164/0.5189, allocations: 0.6915 MB / 0.7746 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5189, allocations: 0.6562 kB / 0.7746 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.92e-05/0.519, allocations: 5.031 kB / 0.7746 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.519, allocations: 1.391 kB / 0.7746 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.542e-05/0.519, allocations: 18.44 kB / 0.7746 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.5191, allocations: 2.922 kB / 0.7746 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5191, allocations: 0.875 kB / 0.7746 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.5208, allocations: 456.2 kB / 0.7751 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.5211, allocations: 166.1 kB / 0.7752 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.915e-05/0.5211, allocations: 9.453 kB / 0.7752 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005084/0.5216, allocations: 29.12 kB / 0.7752 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.5217, allocations: 16.2 kB / 0.7753 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.869e-05/0.5218, allocations: 39.75 kB / 0.7753 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00021/0.522, allocations: 211.7 kB / 0.7755 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.6e-07/0.522, allocations: 2.312 kB / 0.7755 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000375/0.5224, allocations: 48.92 kB / 0.7756 GB, free: 14.58 MB / 0.5606 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.001886/0.5243, allocations: 0.987 MB / 0.7765 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001157/0.5254, allocations: 382.8 kB / 0.7769 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.5254, allocations: 0.9844 kB / 0.7769 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007815/0.5262, allocations: 114.5 kB / 0.777 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.5266, allocations: 33.53 kB / 0.777 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00323/0.5298, allocations: 2.36 MB / 0.7793 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.53, allocations: 0.7387 MB / 0.7801 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.615e-05/0.5301, allocations: 16.95 kB / 0.7801 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.686e-05/0.5302, allocations: 20.55 kB / 0.7801 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of SimCode: time 9.81e-07/0.5302, allocations: 2.266 kB / 0.7801 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01972/0.5499, allocations: 4.845 MB / 0.7848 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/8.178, allocations: 7.297 kB / 0.7848 GB, free: 11.04 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)