Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_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.005149/0.005149, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001174/0.001174, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8113/0.8113, allocations: 132.2 MB / 422.7 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 68.62 kB / 0.5808 GB, free: 24.14 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1812, allocations: 80.21 MB / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.003582/0.1849, allocations: 1.464 MB / 0.6606 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1861, allocations: 427.3 kB / 0.661 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.18e-05/0.1862, allocations: 4 kB / 0.661 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.1864, allocations: 7.875 kB / 0.661 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001499/0.1865, allocations: 28.22 kB / 0.661 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000854/0.1874, allocations: 238.4 kB / 0.6613 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004239/0.1878, allocations: 315.5 kB / 0.6616 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.606e-05/0.1879, allocations: 15.97 kB / 0.6616 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003962/0.1883, allocations: 191.7 kB / 0.6618 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002617/0.1886, allocations: 113 kB / 0.6619 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.602e-05/0.1886, allocations: 16 kB / 0.6619 GB, free: 8 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.19e-05/0.1887, allocations: 20 kB / 0.6619 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.1888, allocations: 79.72 kB / 0.662 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.189, allocations: 123.4 kB / 0.6621 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004322/0.1894, allocations: 275.2 kB / 0.6624 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.026e-06/0.1895, allocations: 4 kB / 0.6624 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.467e-06/0.1895, allocations: 0 / 0.6624 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.852e-05/0.1895, allocations: 0 / 0.6624 GB, free: 7.508 MB / 0.4981 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.001683/0.1912, allocations: 0.7192 MB / 0.6631 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.1913, allocations: 8.031 kB / 0.6631 GB, free: 6.707 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.219e-05/0.1913, allocations: 42.73 kB / 0.6631 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.1915, allocations: 28.8 kB / 0.6631 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.1919, allocations: 267.7 kB / 0.6634 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.192, allocations: 16.11 kB / 0.6634 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.028e-05/0.192, allocations: 20 kB / 0.6634 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000338/0.1924, allocations: 148.6 kB / 0.6636 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1924, allocations: 0 / 0.6636 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.1925, allocations: 7.984 kB / 0.6636 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.1925, allocations: 0 / 0.6636 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.1926, allocations: 47.98 kB / 0.6636 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004034/0.193, allocations: 301.4 kB / 0.6639 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.1934, allocations: 142.5 kB / 0.664 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.1935, allocations: 60.83 kB / 0.6641 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.1935, allocations: 4 kB / 0.6641 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005185/0.1941, allocations: 221.1 kB / 0.6643 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.683e-06/0.1941, allocations: 4 kB / 0.6643 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006253/0.1947, allocations: 267.5 kB / 0.6646 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.1948, allocations: 59.41 kB / 0.6646 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.1951, allocations: 290.9 kB / 0.6649 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.054e-05/0.1952, allocations: 41.69 kB / 0.665 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.1952, allocations: 89.14 kB / 0.665 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.985e-05/0.1953, allocations: 47.67 kB / 0.6651 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.1955, allocations: 105.8 kB / 0.6652 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1956, allocations: 330.8 kB / 0.6655 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.1958, allocations: 92.17 kB / 0.6656 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.1961, allocations: 146.3 kB / 0.6657 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.1965, allocations: 244.1 kB / 0.666 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.1965, allocations: 8 kB / 0.666 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006892/0.1972, allocations: 408.7 kB / 0.6664 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.936e-05/0.1973, allocations: 75.58 kB / 0.6664 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1973, allocations: 0 / 0.6664 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.1973, allocations: 7.984 kB / 0.6664 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.1975, allocations: 27.92 kB / 0.6665 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.1975, allocations: 7.984 kB / 0.6665 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005085/0.198, allocations: 55.91 kB / 0.6665 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.019e-05/0.1981, allocations: 47.98 kB / 0.6666 GB, free: 2.852 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 (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,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000221/0.1984, allocations: 182.5 kB / 0.6667 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.994e-05/0.1984, allocations: 31.75 kB / 0.6668 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.959e-05/0.1985, allocations: 30.25 kB / 0.6668 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1985, allocations: 3.938 kB / 0.6668 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.1985, allocations: 4 kB / 0.6668 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1985, allocations: 0 / 0.6668 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008572/0.1994, allocations: 0.5606 MB / 0.6674 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.1994, allocations: 3.938 kB / 0.6674 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.493e-05/0.1994, allocations: 12 kB / 0.6674 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1995, allocations: 0 / 0.6674 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.783e-05/0.1995, allocations: 15.98 kB / 0.6674 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.1995, allocations: 0 / 0.6674 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.1995, allocations: 3.984 kB / 0.6674 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004181/0.1999, allocations: 325 kB / 0.6677 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.2001, allocations: 148.9 kB / 0.6678 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.672e-05/0.2002, allocations: 8 kB / 0.6678 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.2004, allocations: 19.98 kB / 0.6679 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.64e-05/0.2005, allocations: 11.98 kB / 0.6679 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-05/0.2005, allocations: 35.97 kB / 0.6679 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001819/0.2007, allocations: 209.9 kB / 0.6681 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2007, allocations: 0 / 0.6681 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003051/0.201, allocations: 47.98 kB / 0.6682 GB, free: 1.125 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 (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.0007967/0.2018, allocations: 0.8808 MB / 0.669 GB, free: 220 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006026/0.2025, allocations: 342.6 kB / 0.6693 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2025, allocations: 0 / 0.6693 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.2026, allocations: 74.41 kB / 0.6694 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.203, allocations: 20.88 kB / 0.6694 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.2063, allocations: 2.412 MB / 0.6718 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.2067, allocations: 0.7396 MB / 0.6725 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001379/0.2069, allocations: 41.42 kB / 0.6726 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.207, allocations: 43.42 kB / 0.6726 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of SimCode: time 3.81e-07/0.207, allocations: 0 / 0.6726 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.2296, allocations: 5.297 MB / 0.6778 GB, free: 7.199 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.971/8.2, allocations: 8.031 kB / 0.6778 GB, free: 7.191 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)