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.001088/0.001088, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00113/0.00113, allocations: 189.8 kB / 16.13 MB, free: 6.66 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.395/1.395, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002174/0.002175, allocations: 277.2 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9188/0.9188, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 90.98 kB / 0.5946 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1897/0.1914, allocations: 86.98 MB / 0.6795 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002822/0.1943, allocations: 1.538 MB / 0.681 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009788/0.1953, allocations: 445.9 kB / 0.6815 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.962e-05/0.1953, allocations: 0 / 0.6815 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.1955, allocations: 11.92 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.1956, allocations: 16.3 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006419/0.1962, allocations: 234.6 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003024/0.1966, allocations: 295.9 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.742e-05/0.1966, allocations: 12.27 kB / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002916/0.1969, allocations: 218.3 kB / 0.6822 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002128/0.1971, allocations: 128.5 kB / 0.6823 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.4e-05/0.1972, allocations: 11.98 kB / 0.6823 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.962e-05/0.1973, allocations: 16.66 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.1974, allocations: 79.7 kB / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.1976, allocations: 124 kB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.1979, allocations: 295 kB / 0.6828 GB, free: 13.73 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.198, allocations: 1.312 kB / 0.6828 GB, free: 13.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.198, allocations: 0 / 0.6828 GB, free: 13.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.198, allocations: 0 / 0.6828 GB, free: 13.73 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.001143/0.1991, allocations: 0.7429 MB / 0.6836 GB, free: 12.9 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.1992, allocations: 8.031 kB / 0.6836 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.986e-05/0.1992, allocations: 42.55 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.558e-05/0.1993, allocations: 35.62 kB / 0.6836 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.1997, allocations: 258.3 kB / 0.6839 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/0.1997, allocations: 12 kB / 0.6839 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.1998, allocations: 19.98 kB / 0.6839 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000982/0.2008, allocations: 205.4 kB / 0.6841 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.2008, allocations: 0 / 0.6841 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.2008, allocations: 0 / 0.6841 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2008, allocations: 4 kB / 0.6841 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007646/0.2016, allocations: 95.91 kB / 0.6842 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003449/0.202, allocations: 321.3 kB / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.203, allocations: 174.4 kB / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007444/0.2038, allocations: 104.8 kB / 0.6848 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.2038, allocations: 8 kB / 0.6848 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009702/0.2048, allocations: 211.4 kB / 0.685 GB, free: 11.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 3.647e-06/0.2048, allocations: 7.984 kB / 0.685 GB, free: 11.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002507/0.2073, allocations: 450.8 kB / 0.6854 GB, free: 10.85 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.2074, allocations: 59.41 kB / 0.6855 GB, free: 10.78 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.2076, allocations: 295 kB / 0.6858 GB, free: 10.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.972e-05/0.2077, allocations: 37.7 kB / 0.6858 GB, free: 10.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.688e-05/0.2078, allocations: 89.05 kB / 0.6859 GB, free: 10.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.2078, allocations: 43.53 kB / 0.6859 GB, free: 10.31 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.208, allocations: 93.48 kB / 0.686 GB, free: 10.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2081, allocations: 326.8 kB / 0.6863 GB, free: 9.883 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.2083, allocations: 83.88 kB / 0.6864 GB, free: 9.801 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/0.2085, allocations: 139.8 kB / 0.6866 GB, free: 9.645 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/0.2089, allocations: 246.9 kB / 0.6868 GB, free: 9.371 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2089, allocations: 0 / 0.6868 GB, free: 9.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006472/0.2095, allocations: 392.6 kB / 0.6872 GB, free: 8.969 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.714e-05/0.2096, allocations: 75.38 kB / 0.6872 GB, free: 8.883 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2096, allocations: 7.938 kB / 0.6872 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.2096, allocations: 0 / 0.6872 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.2098, allocations: 27.92 kB / 0.6873 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.813e-05/0.2098, allocations: 12.12 kB / 0.6873 GB, free: 8.836 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/0.2103, allocations: 59.73 kB / 0.6873 GB, free: 8.777 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.541e-05/0.2104, allocations: 39.98 kB / 0.6874 GB, free: 8.738 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.0001838/0.2106, allocations: 170.4 kB / 0.6875 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.078e-05/0.2106, allocations: 27.66 kB / 0.6876 GB, free: 8.539 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.996e-05/0.2107, allocations: 30.3 kB / 0.6876 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.2107, allocations: 4 kB / 0.6876 GB, free: 8.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2107, allocations: 0 / 0.6876 GB, free: 8.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.2107, allocations: 0 / 0.6876 GB, free: 8.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.2128, allocations: 0.6894 MB / 0.6883 GB, free: 7.754 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.2128, allocations: 3.984 kB / 0.6883 GB, free: 7.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.768e-05/0.2129, allocations: 8 kB / 0.6883 GB, free: 7.742 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2129, allocations: 4 kB / 0.6883 GB, free: 7.738 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/0.2129, allocations: 15.97 kB / 0.6883 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2129, allocations: 0 / 0.6883 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.213, allocations: 0 / 0.6883 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.2146, allocations: 449.7 kB / 0.6887 GB, free: 7.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.2148, allocations: 168.7 kB / 0.6889 GB, free: 7.086 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.481e-05/0.2149, allocations: 8 kB / 0.6889 GB, free: 7.078 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004598/0.2153, allocations: 35.97 kB / 0.6889 GB, free: 7.043 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.404e-05/0.2154, allocations: 11.98 kB / 0.6889 GB, free: 7.031 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.506e-05/0.2154, allocations: 39.97 kB / 0.689 GB, free: 6.992 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001955/0.2156, allocations: 209.9 kB / 0.6892 GB, free: 6.793 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2156, allocations: 4 kB / 0.6892 GB, free: 6.789 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000344/0.216, allocations: 48 kB / 0.6892 GB, free: 6.742 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.00198/0.218, allocations: 0.9947 MB / 0.6902 GB, free: 5.719 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.2191, allocations: 384.6 kB / 0.6906 GB, free: 5.32 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2191, allocations: 0 / 0.6906 GB, free: 5.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000715/0.2198, allocations: 107.9 kB / 0.6907 GB, free: 5.215 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.2202, allocations: 30.47 kB / 0.6907 GB, free: 5.188 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004075/0.2243, allocations: 2.43 MB / 0.6931 GB, free: 2.629 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/0.2248, allocations: 0.7367 MB / 0.6938 GB, free: 1.867 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.402e-05/0.2249, allocations: 21.06 kB / 0.6938 GB, free: 1.848 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.014e-05/0.225, allocations: 27.42 kB / 0.6938 GB, free: 1.82 MB / 494.1 MB Notification: Performance of SimCode: time 8.81e-07/0.225, allocations: 3.938 kB / 0.6938 GB, free: 1.816 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.2437, allocations: 4.66 MB / 0.6984 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.2439, allocations: 207.6 kB / 0.6986 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.065, allocations: 3.938 kB / 0.6986 GB, free: 13 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)