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.0008635/0.0008635, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.005899/0.005899, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.266/1.266, allocations: 223.2 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001707/0.001707, allocations: 270.4 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9497/0.9497, allocations: 169.5 MB / 0.5004 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000426/0.000426, allocations: 14.12 kB / 0.5988 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1681, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.001845/0.17, allocations: 1.201 MB / 0.6864 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009298/0.1709, allocations: 446.5 kB / 0.6868 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/0.171, allocations: 0 / 0.6868 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.21e-05/0.1711, allocations: 7.922 kB / 0.6868 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.491e-05/0.1712, allocations: 12.31 kB / 0.6868 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.1718, allocations: 231.5 kB / 0.6871 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002771/0.172, allocations: 300.3 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.513e-05/0.1721, allocations: 17.06 kB / 0.6874 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.1724, allocations: 218.3 kB / 0.6876 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.1726, allocations: 120.2 kB / 0.6877 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.1727, allocations: 12.53 kB / 0.6877 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.247e-05/0.1727, allocations: 10.28 kB / 0.6877 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.1728, allocations: 83.7 kB / 0.6878 GB, free: 12.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.173, allocations: 149.1 kB / 0.6879 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002892/0.1733, allocations: 290.9 kB / 0.6882 GB, free: 11.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1733, allocations: 0 / 0.6882 GB, free: 11.89 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1733, allocations: 0 / 0.6882 GB, free: 11.89 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.1733, allocations: 0.5 kB / 0.6882 GB, free: 11.89 MB / 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.0009283/0.1743, allocations: 0.6579 MB / 0.6889 GB, free: 11.14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1743, allocations: 8.031 kB / 0.6889 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.894e-05/0.1744, allocations: 45.92 kB / 0.6889 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.614e-05/0.1745, allocations: 27.72 kB / 0.6889 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.1748, allocations: 262.3 kB / 0.6892 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.154e-05/0.1748, allocations: 15.98 kB / 0.6892 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.536e-05/0.1749, allocations: 20 kB / 0.6892 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009487/0.1758, allocations: 219 kB / 0.6894 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.1758, allocations: 0.75 kB / 0.6894 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.1759, allocations: 3.984 kB / 0.6894 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.1759, allocations: 4.562 kB / 0.6894 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007482/0.1766, allocations: 106.5 kB / 0.6895 GB, free: 10.4 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003457/0.177, allocations: 325.2 kB / 0.6898 GB, free: 10.04 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.178, allocations: 186.5 kB / 0.69 GB, free: 9.844 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007254/0.1788, allocations: 112.8 kB / 0.6901 GB, free: 9.73 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.1788, allocations: 8 kB / 0.6901 GB, free: 9.723 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009029/0.1797, allocations: 223.1 kB / 0.6904 GB, free: 9.492 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 3.267e-06/0.1797, allocations: 7.922 kB / 0.6904 GB, free: 9.484 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002453/0.1822, allocations: 481 kB / 0.6908 GB, free: 9.008 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.1822, allocations: 59.39 kB / 0.6909 GB, free: 8.938 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.1825, allocations: 290.9 kB / 0.6912 GB, free: 8.645 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.634e-05/0.1826, allocations: 37.7 kB / 0.6912 GB, free: 8.602 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.417e-05/0.1826, allocations: 93.12 kB / 0.6913 GB, free: 8.508 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.1827, allocations: 39.55 kB / 0.6913 GB, free: 8.469 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.06e-05/0.1827, allocations: 37.69 kB / 0.6913 GB, free: 8.426 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.692e-05/0.1828, allocations: 314.8 kB / 0.6916 GB, free: 8.109 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.183, allocations: 91.94 kB / 0.6917 GB, free: 8.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.1833, allocations: 140.4 kB / 0.6919 GB, free: 7.863 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/0.1836, allocations: 243.3 kB / 0.6921 GB, free: 7.594 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1836, allocations: 0 / 0.6921 GB, free: 7.594 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005913/0.1842, allocations: 398.6 kB / 0.6925 GB, free: 7.188 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.159e-05/0.1843, allocations: 75.38 kB / 0.6926 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1843, allocations: 0 / 0.6926 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.1843, allocations: 8.188 kB / 0.6926 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.1845, allocations: 23.92 kB / 0.6926 GB, free: 7.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.1845, allocations: 3.938 kB / 0.6926 GB, free: 7.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004547/0.185, allocations: 63.8 kB / 0.6927 GB, free: 7.004 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.496e-05/0.185, allocations: 43.98 kB / 0.6927 GB, free: 6.961 MB / 494.1 MB 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.00016/0.1852, allocations: 170.5 kB / 0.6929 GB, free: 6.789 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.1853, allocations: 27.66 kB / 0.6929 GB, free: 6.762 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.368e-05/0.1853, allocations: 30.3 kB / 0.6929 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1853, allocations: 3.938 kB / 0.6929 GB, free: 6.723 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1853, allocations: 4 kB / 0.6929 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1853, allocations: 0 / 0.6929 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.1873, allocations: 0.7133 MB / 0.6936 GB, free: 5.949 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1873, allocations: 0 / 0.6936 GB, free: 5.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.421e-05/0.1874, allocations: 7.938 kB / 0.6936 GB, free: 5.941 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1874, allocations: 0 / 0.6936 GB, free: 5.941 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/0.1874, allocations: 27.91 kB / 0.6936 GB, free: 5.914 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1874, allocations: 0 / 0.6936 GB, free: 5.914 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1874, allocations: 0 / 0.6936 GB, free: 5.914 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.1891, allocations: 474.9 kB / 0.6941 GB, free: 5.434 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.1893, allocations: 156.7 kB / 0.6943 GB, free: 5.262 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.801e-05/0.1893, allocations: 8 kB / 0.6943 GB, free: 5.254 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/0.1898, allocations: 39.89 kB / 0.6943 GB, free: 5.215 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.857e-05/0.1898, allocations: 8 kB / 0.6943 GB, free: 5.207 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.036e-05/0.1899, allocations: 47.97 kB / 0.6943 GB, free: 5.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000173/0.19, allocations: 209.9 kB / 0.6945 GB, free: 4.961 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1901, allocations: 0 / 0.6945 GB, free: 4.961 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.1904, allocations: 44 kB / 0.6946 GB, free: 4.918 MB / 494.1 MB 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.001934/0.1923, allocations: 1.024 MB / 0.6956 GB, free: 3.867 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.1934, allocations: 389.2 kB / 0.696 GB, free: 3.465 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1934, allocations: 4.125 kB / 0.696 GB, free: 3.461 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007246/0.1941, allocations: 127.9 kB / 0.6961 GB, free: 3.336 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.1945, allocations: 24.58 kB / 0.6961 GB, free: 3.312 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.1977, allocations: 2.44 MB / 0.6985 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.198, allocations: 0.7406 MB / 0.6992 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.784e-05/0.1981, allocations: 21.06 kB / 0.6992 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.984e-05/0.1981, allocations: 19.44 kB / 0.6993 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of SimCode: time 4.61e-07/0.1981, allocations: 0 / 0.6993 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01478/0.2129, allocations: 4.584 MB / 0.7037 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.2131, allocations: 212.3 kB / 0.7039 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/1.86, allocations: 0 / 0.7039 GB, free: 11.23 MB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)