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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8674/0.8674, allocations: 143.3 MB / 158.3 MB, free: 5.824 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 187 kB / 191.5 MB, free: 5.758 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 223.2 MB / 447.7 MB, free: 4.832 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008627/0.0008623, allocations: 96.31 kB / 0.5187 GB, free: 1.188 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001891/0.001891, allocations: 273.7 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004254/0.0004256, allocations: 13.44 kB / 0.6929 GB, free: 59.64 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.204/0.2045, allocations: 82.79 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5989/0.8035, allocations: 110.5 MB / 0.8817 GB, free: 31.71 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.8038, allocations: 68.31 kB / 0.8818 GB, free: 31.71 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01338/0.8172, allocations: 4.485 MB / 0.8861 GB, free: 31.19 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8172, allocations: 0 / 0.8861 GB, free: 31.19 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.455e-05/0.8173, allocations: 3.031 kB / 0.8861 GB, free: 31.19 MB / 0.5417 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.0009006/0.8182, allocations: 0.6298 MB / 0.8868 GB, free: 30.62 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.8182, allocations: 8.938 kB / 0.8868 GB, free: 30.62 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.204e-05/0.8183, allocations: 36.89 kB / 0.8868 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.925e-05/0.8184, allocations: 30.88 kB / 0.8868 GB, free: 30.57 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.8187, allocations: 252.2 kB / 0.8871 GB, free: 30.36 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.8188, allocations: 18.27 kB / 0.8871 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.643e-05/0.8188, allocations: 16.16 kB / 0.8871 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003206/0.8192, allocations: 148.8 kB / 0.8872 GB, free: 30.31 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.8192, allocations: 0 / 0.8872 GB, free: 30.31 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.8192, allocations: 1.031 kB / 0.8872 GB, free: 30.31 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.8192, allocations: 3.031 kB / 0.8872 GB, free: 30.31 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00013/0.8193, allocations: 50.02 kB / 0.8873 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003849/0.8197, allocations: 331.4 kB / 0.8876 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.82, allocations: 128.8 kB / 0.8877 GB, free: 30.08 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.82, allocations: 8.547 kB / 0.8877 GB, free: 30.08 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004331/0.8205, allocations: 216.6 kB / 0.888 GB, free: 30.02 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 2.404e-06/0.8205, allocations: 4 kB / 0.888 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0005721/0.8211, allocations: 266.7 kB / 0.8882 GB, free: 29.96 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.8211, allocations: 60.97 kB / 0.8883 GB, free: 29.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.8214, allocations: 260.6 kB / 0.8885 GB, free: 29.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.8214, allocations: 39.52 kB / 0.8886 GB, free: 29.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.8215, allocations: 93.91 kB / 0.8886 GB, free: 29.69 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.201e-05/0.8216, allocations: 41.48 kB / 0.8887 GB, free: 29.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/0.8216, allocations: 8.672 kB / 0.8887 GB, free: 29.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.28e-05/0.8217, allocations: 321 kB / 0.889 GB, free: 29.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.822, allocations: 112.6 kB / 0.8891 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.8222, allocations: 157.7 kB / 0.8893 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.8225, allocations: 155 kB / 0.8894 GB, free: 29.21 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.8225, allocations: 1.438 kB / 0.8894 GB, free: 29.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000769/0.8233, allocations: 427.6 kB / 0.8898 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.928e-05/0.8234, allocations: 77.22 kB / 0.8899 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.8234, allocations: 2.594 kB / 0.8899 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.8234, allocations: 3.438 kB / 0.8899 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.8236, allocations: 27.58 kB / 0.8899 GB, free: 29.03 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.8236, allocations: 0.8906 kB / 0.8899 GB, free: 29.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003777/0.824, allocations: 53.83 kB / 0.89 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.357e-05/0.8241, allocations: 57.12 kB / 0.89 GB, free: 29.02 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.8242, allocations: 175.4 kB / 0.8902 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.73e-05/0.8243, allocations: 27.33 kB / 0.8902 GB, free: 28.88 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.924e-05/0.8244, allocations: 35.84 kB / 0.8903 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.8244, allocations: 2.781 kB / 0.8903 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.8244, allocations: 0 / 0.8903 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.8244, allocations: 1.547 kB / 0.8903 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007706/0.8252, allocations: 0.5589 MB / 0.8908 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8252, allocations: 2.719 kB / 0.8908 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.164e-05/0.8252, allocations: 7.469 kB / 0.8908 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.8252, allocations: 0.5625 kB / 0.8908 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.8253, allocations: 10.25 kB / 0.8908 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.8253, allocations: 7.344 kB / 0.8908 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.8253, allocations: 0 / 0.8908 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000361/0.8256, allocations: 317.8 kB / 0.8911 GB, free: 28.41 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.8258, allocations: 166.3 kB / 0.8913 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/0.8259, allocations: 14.3 kB / 0.8913 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.8261, allocations: 8.109 kB / 0.8913 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.8261, allocations: 18.44 kB / 0.8913 GB, free: 28.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.8262, allocations: 38.36 kB / 0.8914 GB, free: 28.28 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001731/0.8264, allocations: 204.3 kB / 0.8916 GB, free: 28.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8264, allocations: 0 / 0.8916 GB, free: 28.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003526/0.8267, allocations: 56.38 kB / 0.8916 GB, free: 28.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$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.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001565/0.8283, allocations: 0.876 MB / 0.8925 GB, free: 43.51 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0006518/0.829, allocations: 352.1 kB / 0.8928 GB, free: 43.38 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.829, allocations: 0 / 0.8928 GB, free: 43.38 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.8291, allocations: 76.48 kB / 0.8929 GB, free: 43.37 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.8294, allocations: 19.89 kB / 0.8929 GB, free: 43.36 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.8308, allocations: 1.602 MB / 0.8945 GB, free: 41.95 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.8312, allocations: 0.7499 MB / 0.8952 GB, free: 41.25 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00014/0.8313, allocations: 35.16 kB / 0.8952 GB, free: 41.23 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.8315, allocations: 47.94 kB / 0.8953 GB, free: 41.22 MB / 0.5573 GB Notification: Performance of SimCode: time 1.433e-06/0.8315, allocations: 0 / 0.8953 GB, free: 41.22 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.8528, allocations: 5.404 MB / 0.9006 GB, free: 40.59 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.853, allocations: 197.4 kB / 0.9007 GB, free: 40.34 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.681/2.534, allocations: 0 / 0.9007 GB, free: 40.34 MB / 0.5573 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/linux/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)