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.001293/0.001293, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001359/0.001359, allocations: 177.3 kB / 15.94 MB, free: 224 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.085/2.085, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.23/1.23, allocations: 135.2 MB / 426.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004383, allocations: 8 kB / 0.5069 GB, free: 5.215 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1915, allocations: 82.31 MB / 0.5873 GB, free: 3.082 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002189/0.1937, allocations: 1.171 MB / 0.5884 GB, free: 1.902 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.1949, allocations: 385.3 kB / 0.5888 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.02e-05/0.195, allocations: 4 kB / 0.5888 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.437e-05/0.1951, allocations: 3.984 kB / 0.5888 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.1952, allocations: 19.92 kB / 0.5888 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009343/0.1962, allocations: 210.8 kB / 0.589 GB, free: 1.297 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003235/0.1965, allocations: 151.8 kB / 0.5892 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.675e-05/0.1966, allocations: 8 kB / 0.5892 GB, free: 1.141 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003845/0.197, allocations: 163.6 kB / 0.5893 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.1973, allocations: 127.7 kB / 0.5894 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.286e-05/0.1974, allocations: 8 kB / 0.5895 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.725e-05/0.1975, allocations: 12 kB / 0.5895 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1977, allocations: 75.78 kB / 0.5895 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.1978, allocations: 65.58 kB / 0.5896 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003147/0.1981, allocations: 207.8 kB / 0.5898 GB, free: 500 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.1981, allocations: 0 / 0.5898 GB, free: 500 kB / 494.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1982, allocations: 0 / 0.5898 GB, free: 500 kB / 494.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1982, allocations: 0 / 0.5898 GB, free: 500 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.001467/0.1996, allocations: 0.6141 MB / 0.5904 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1997, allocations: 12.03 kB / 0.5904 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.869e-05/0.1998, allocations: 38.55 kB / 0.5904 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.2, allocations: 31.72 kB / 0.5905 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.2004, allocations: 254.5 kB / 0.5907 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.2004, allocations: 11.94 kB / 0.5907 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.174e-05/0.2005, allocations: 23.92 kB / 0.5908 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.2008, allocations: 149.5 kB / 0.5909 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.2008, allocations: 4 kB / 0.5909 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.2009, allocations: 3.984 kB / 0.5909 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.2009, allocations: 4 kB / 0.5909 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.201, allocations: 43.97 kB / 0.5909 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003436/0.2014, allocations: 313.3 kB / 0.5912 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.2016, allocations: 126.6 kB / 0.5914 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.2017, allocations: 11.98 kB / 0.5914 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004388/0.2021, allocations: 216.1 kB / 0.5916 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 2.083e-06/0.2021, allocations: 0 / 0.5916 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005812/0.2027, allocations: 271.5 kB / 0.5918 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.2028, allocations: 55.41 kB / 0.5919 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.2031, allocations: 294.8 kB / 0.5922 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.2031, allocations: 37.7 kB / 0.5922 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.459e-05/0.2032, allocations: 89.14 kB / 0.5923 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.281e-05/0.2033, allocations: 43.5 kB / 0.5923 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.571e-05/0.2033, allocations: 8 kB / 0.5923 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2034, allocations: 326.8 kB / 0.5927 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.2036, allocations: 96.17 kB / 0.5928 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.2039, allocations: 154.3 kB / 0.5929 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.2041, allocations: 153.1 kB / 0.593 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2041, allocations: 0 / 0.593 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000665/0.2048, allocations: 416 kB / 0.5934 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.408e-05/0.2049, allocations: 71.39 kB / 0.5935 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2049, allocations: 3.938 kB / 0.5935 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.2049, allocations: 4 kB / 0.5935 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.2051, allocations: 27.91 kB / 0.5935 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.2051, allocations: 4 kB / 0.5935 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005416/0.2057, allocations: 71.98 kB / 0.5936 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.816e-05/0.2057, allocations: 55.98 kB / 0.5937 GB, free: 12.21 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.0001801/0.2059, allocations: 177.7 kB / 0.5938 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.394e-05/0.206, allocations: 23.72 kB / 0.5939 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.575e-05/0.206, allocations: 34.25 kB / 0.5939 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.2061, allocations: 0 / 0.5939 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2061, allocations: 0 / 0.5939 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2061, allocations: 0 / 0.5939 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008145/0.2069, allocations: 0.5645 MB / 0.5944 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2069, allocations: 8 kB / 0.5945 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.486e-05/0.207, allocations: 4 kB / 0.5945 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.207, allocations: 7.938 kB / 0.5945 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.207, allocations: 15.97 kB / 0.5945 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.207, allocations: 3.938 kB / 0.5945 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.207, allocations: 0 / 0.5945 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003948/0.2074, allocations: 320.9 kB / 0.5948 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.2076, allocations: 156.7 kB / 0.5949 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.681e-05/0.2077, allocations: 11.98 kB / 0.5949 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.2079, allocations: 15.98 kB / 0.595 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.44e-05/0.208, allocations: 19.97 kB / 0.595 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.208, allocations: 27.98 kB / 0.595 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001789/0.2082, allocations: 209.9 kB / 0.5952 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2082, allocations: 0 / 0.5952 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000332/0.2085, allocations: 48 kB / 0.5953 GB, free: 10.49 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.0006708/0.2092, allocations: 0.8714 MB / 0.5961 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005347/0.2098, allocations: 344.9 kB / 0.5964 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2098, allocations: 0 / 0.5964 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.2099, allocations: 75.89 kB / 0.5965 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.2102, allocations: 16.88 kB / 0.5965 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.2114, allocations: 1.599 MB / 0.5981 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.2117, allocations: 0.7491 MB / 0.5988 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000144/0.2119, allocations: 41.42 kB / 0.5989 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.212, allocations: 47.41 kB / 0.5989 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of SimCode: time 2.81e-07/0.212, allocations: 0 / 0.5989 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.106/1.318, allocations: 4.96 MB / 0.6037 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003069/1.318, allocations: 165.4 kB / 0.6039 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.975/4.293, allocations: 7.922 kB / 0.6039 GB, free: 1.543 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: