Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_IDEAS_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.001084/0.001084, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.001267/0.001267, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.2 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.988/0.988, allocations: 135.3 MB / 426.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003587, allocations: 12.72 kB / 0.5071 GB, free: 5.035 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1935, allocations: 82.3 MB / 0.5875 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001773/0.1953, allocations: 1.176 MB / 0.5886 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009091/0.1963, allocations: 404.6 kB / 0.589 GB, free: 1.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.541e-05/0.1963, allocations: 0 / 0.589 GB, free: 1.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.137e-05/0.1964, allocations: 7.922 kB / 0.589 GB, free: 1.312 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.92e-05/0.1965, allocations: 19.92 kB / 0.589 GB, free: 1.293 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006117/0.1971, allocations: 219.1 kB / 0.5892 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003436/0.1975, allocations: 239.5 kB / 0.5895 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.157e-05/0.1976, allocations: 11.98 kB / 0.5895 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003232/0.1979, allocations: 215.6 kB / 0.5897 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.1981, allocations: 135.7 kB / 0.5898 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.886e-05/0.1982, allocations: 12 kB / 0.5898 GB, free: 496 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.365e-05/0.1982, allocations: 8 kB / 0.5898 GB, free: 488 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.1983, allocations: 79.78 kB / 0.5899 GB, free: 408 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.555e-05/0.1984, allocations: 65.58 kB / 0.59 GB, free: 336 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.1986, allocations: 207.8 kB / 0.5902 GB, free: 128 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1986, allocations: 4 kB / 0.5902 GB, free: 124 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1986, allocations: 0 / 0.5902 GB, free: 124 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1986, allocations: 0 / 0.5902 GB, free: 124 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.001008/0.1996, allocations: 0.6141 MB / 0.5908 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.1997, allocations: 12.02 kB / 0.5908 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.389e-05/0.1998, allocations: 38.56 kB / 0.5908 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.564e-05/0.1998, allocations: 35.67 kB / 0.5908 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.2002, allocations: 258.4 kB / 0.5911 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.2002, allocations: 8 kB / 0.5911 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.2003, allocations: 23.98 kB / 0.5911 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.2005, allocations: 149.5 kB / 0.5913 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.2006, allocations: 0 / 0.5913 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.2006, allocations: 0 / 0.5913 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2006, allocations: 0 / 0.5913 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001239/0.2007, allocations: 47.97 kB / 0.5913 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003391/0.2011, allocations: 317.3 kB / 0.5916 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.2014, allocations: 134.6 kB / 0.5917 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.2015, allocations: 56.83 kB / 0.5918 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.2015, allocations: 4 kB / 0.5918 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000428/0.202, allocations: 212.5 kB / 0.592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.593e-06/0.202, allocations: 0 / 0.592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005456/0.2025, allocations: 270.9 kB / 0.5923 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.2026, allocations: 59.41 kB / 0.5923 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.2028, allocations: 290.8 kB / 0.5926 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.658e-05/0.2029, allocations: 45.69 kB / 0.5926 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.796e-05/0.203, allocations: 89.14 kB / 0.5927 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.474e-05/0.203, allocations: 43.5 kB / 0.5928 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.2031, allocations: 4 kB / 0.5928 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2032, allocations: 330.8 kB / 0.5931 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.2035, allocations: 96.11 kB / 0.5932 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.2037, allocations: 154.3 kB / 0.5933 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.2039, allocations: 154 kB / 0.5935 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.204, allocations: 0 / 0.5935 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007395/0.2047, allocations: 419.1 kB / 0.5939 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.855e-05/0.2048, allocations: 71.39 kB / 0.5939 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2048, allocations: 7.938 kB / 0.5939 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.2048, allocations: 0 / 0.5939 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.205, allocations: 31.97 kB / 0.594 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.205, allocations: 3.938 kB / 0.594 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004686/0.2055, allocations: 79.91 kB / 0.5941 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.995e-05/0.2055, allocations: 47.98 kB / 0.5941 GB, free: 11.77 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: 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.0001756/0.2057, allocations: 173.7 kB / 0.5943 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.381e-05/0.2058, allocations: 27.72 kB / 0.5943 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.067e-05/0.2058, allocations: 30.25 kB / 0.5943 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2058, allocations: 4 kB / 0.5943 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.2058, allocations: 4 kB / 0.5943 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2058, allocations: 0 / 0.5943 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007361/0.2066, allocations: 0.5567 MB / 0.5949 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2066, allocations: 0 / 0.5949 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.584e-05/0.2067, allocations: 15.92 kB / 0.5949 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2067, allocations: 0 / 0.5949 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.2067, allocations: 15.98 kB / 0.5949 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.2067, allocations: 4 kB / 0.5949 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2067, allocations: 0 / 0.5949 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.2071, allocations: 328.7 kB / 0.5952 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001945/0.2073, allocations: 152.7 kB / 0.5954 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.117e-05/0.2074, allocations: 8 kB / 0.5954 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.2076, allocations: 15.98 kB / 0.5954 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.349e-05/0.2076, allocations: 15.97 kB / 0.5954 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.925e-05/0.2077, allocations: 31.98 kB / 0.5954 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001807/0.2079, allocations: 209.9 kB / 0.5956 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.342e-06/0.2079, allocations: 0 / 0.5956 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002998/0.2082, allocations: 55.89 kB / 0.5957 GB, free: 10.05 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: 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.0007113/0.2089, allocations: 0.861 MB / 0.5965 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005795/0.2095, allocations: 349.1 kB / 0.5969 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2095, allocations: 0 / 0.5969 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.2097, allocations: 71.91 kB / 0.5969 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.21, allocations: 26.36 kB / 0.597 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.2119, allocations: 1.167 MB / 0.5981 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.2123, allocations: 0.7438 MB / 0.5988 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001399/0.2124, allocations: 37.42 kB / 0.5989 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.2126, allocations: 51.59 kB / 0.5989 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of SimCode: time 2.81e-07/0.2126, allocations: 3.938 kB / 0.5989 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.2369, allocations: 4.995 MB / 0.6038 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002971/0.2373, allocations: 182.6 kB / 0.604 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/2.047, allocations: 0 / 0.604 GB, free: 1.516 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1) Environment - environmentSimulation: