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.001439/0.00144, allocations: 104 kB / 15.61 MB, free: 148 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.00138/0.00138, allocations: 196.2 kB / 16.53 MB, free: 6.684 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.416/1.416, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002551/0.002551, allocations: 294.9 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.062/1.062, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004013/0.004013, allocations: 95.14 kB / 0.6065 GB, free: 24.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1789, allocations: 89.16 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002693/0.1816, allocations: 1.511 MB / 0.6951 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.1829, allocations: 0.5438 MB / 0.6956 GB, free: 2.148 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.828e-05/0.1829, allocations: 0 / 0.6956 GB, free: 2.148 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.559e-05/0.183, allocations: 12.55 kB / 0.6956 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.673e-05/0.1831, allocations: 27.86 kB / 0.6956 GB, free: 2.109 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007125/0.1839, allocations: 317.1 kB / 0.6959 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005116/0.1844, allocations: 0.5003 MB / 0.6964 GB, free: 1.305 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.91e-05/0.1844, allocations: 7.984 kB / 0.6964 GB, free: 1.297 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003403/0.1848, allocations: 271.6 kB / 0.6967 GB, free: 1.031 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002375/0.185, allocations: 144.3 kB / 0.6968 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.945e-05/0.1851, allocations: 28 kB / 0.6969 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.337e-05/0.1852, allocations: 28 kB / 0.6969 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.1854, allocations: 111.7 kB / 0.697 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.1856, allocations: 183 kB / 0.6972 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004083/0.186, allocations: 431 kB / 0.6976 GB, free: 128 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.186, allocations: 0 / 0.6976 GB, free: 128 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.186, allocations: 0 / 0.6976 GB, free: 128 kB / 494.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.186, allocations: 0 / 0.6976 GB, free: 128 kB / 494.1 MB 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.001212/0.1872, allocations: 0.8664 MB / 0.6984 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.1873, allocations: 12.03 kB / 0.6984 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.1873, allocations: 34.75 kB / 0.6985 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.1874, allocations: 56.45 kB / 0.6985 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.1878, allocations: 314.2 kB / 0.6988 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.255e-05/0.1879, allocations: 12.38 kB / 0.6988 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.288e-05/0.188, allocations: 28.36 kB / 0.6989 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009973/0.189, allocations: 214 kB / 0.6991 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.189, allocations: 3.938 kB / 0.6991 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.189, allocations: 4 kB / 0.6991 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.189, allocations: 4 kB / 0.6991 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007699/0.1898, allocations: 91.92 kB / 0.6992 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004476/0.1903, allocations: 397.2 kB / 0.6995 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.1913, allocations: 182.4 kB / 0.6997 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007977/0.1921, allocations: 112.8 kB / 0.6998 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.1922, allocations: 4 kB / 0.6998 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009927/0.1932, allocations: 223 kB / 0.7 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 1.934e-06/0.1932, allocations: 4 kB / 0.7 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16): time 0.0026/0.1958, allocations: 490.1 kB / 0.7005 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.1959, allocations: 59.39 kB / 0.7006 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004536/0.1963, allocations: 417.8 kB / 0.701 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.511e-05/0.1964, allocations: 41.69 kB / 0.701 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.197e-05/0.1965, allocations: 89.45 kB / 0.7011 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.653e-05/0.1966, allocations: 43.53 kB / 0.7011 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.1968, allocations: 129.3 kB / 0.7013 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1969, allocations: 326.8 kB / 0.7016 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.1972, allocations: 119.9 kB / 0.7017 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.1975, allocations: 167.9 kB / 0.7018 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.1979, allocations: 278.4 kB / 0.7021 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1979, allocations: 0 / 0.7021 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008361/0.1988, allocations: 496.6 kB / 0.7026 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.971e-05/0.1989, allocations: 91.31 kB / 0.7027 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1989, allocations: 4 kB / 0.7027 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.1989, allocations: 0 / 0.7027 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.1991, allocations: 23.92 kB / 0.7027 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.1991, allocations: 8.188 kB / 0.7027 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004941/0.1996, allocations: 59.78 kB / 0.7028 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.999e-05/0.1997, allocations: 59.98 kB / 0.7028 GB, free: 10.41 MB / 0.4981 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.0002289/0.1999, allocations: 203 kB / 0.703 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.877e-05/0.2, allocations: 39.47 kB / 0.7031 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.998e-05/0.2001, allocations: 47.73 kB / 0.7031 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.2001, allocations: 7.938 kB / 0.7031 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2001, allocations: 0 / 0.7031 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2001, allocations: 0 / 0.7031 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.2024, allocations: 0.7535 MB / 0.7038 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2024, allocations: 0 / 0.7038 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.451e-05/0.2025, allocations: 4 kB / 0.7038 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2025, allocations: 0 / 0.7038 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.612e-05/0.2025, allocations: 19.97 kB / 0.7039 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2025, allocations: 4 kB / 0.7039 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2025, allocations: 0 / 0.7039 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.2043, allocations: 474.7 kB / 0.7043 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002591/0.2046, allocations: 204.4 kB / 0.7045 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.53e-05/0.2047, allocations: 12 kB / 0.7045 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004749/0.2052, allocations: 31.97 kB / 0.7046 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.2052, allocations: 11.98 kB / 0.7046 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.842e-05/0.2053, allocations: 55.97 kB / 0.7046 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003042/0.2056, allocations: 295.1 kB / 0.7049 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2056, allocations: 0 / 0.7049 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003618/0.206, allocations: 67.98 kB / 0.705 GB, free: 8.109 MB / 0.4981 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.002193/0.2082, allocations: 1.02 MB / 0.706 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001349/0.2095, allocations: 451.5 kB / 0.7064 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2096, allocations: 4 kB / 0.7064 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007696/0.2103, allocations: 115.9 kB / 0.7065 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003784/0.2107, allocations: 31.03 kB / 0.7065 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004435/0.2152, allocations: 2.781 MB / 0.7093 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.2156, allocations: 0.7708 MB / 0.71 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.199e-05/0.2157, allocations: 9.25 kB / 0.71 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.2157, allocations: 35.36 kB / 0.7101 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.2157, allocations: 0 / 0.7101 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.2448, allocations: 6.219 MB / 0.7161 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.576/7.821, allocations: 7.734 kB / 0.7161 GB, free: 12.46 MB / 0.5137 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)