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.00877/0.00877, allocations: 99.27 kB / 15.73 MB, free: 6.012 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.001973/0.001973, allocations: 196.9 kB / 16.68 MB, free: 5.93 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.483/1.483, 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.8539/0.8539, allocations: 132.2 MB / 422.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 68.89 kB / 0.5808 GB, free: 24.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.18, allocations: 80.21 MB / 0.6592 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.003851/0.1839, allocations: 1.473 MB / 0.6606 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.185, allocations: 427.3 kB / 0.661 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.774e-05/0.1851, allocations: 0 / 0.661 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.1853, allocations: 11.86 kB / 0.661 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.1854, allocations: 20.23 kB / 0.661 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008138/0.1862, allocations: 251.6 kB / 0.6613 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.1866, allocations: 311.5 kB / 0.6616 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.649e-05/0.1867, allocations: 4 kB / 0.6616 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003074/0.187, allocations: 203.6 kB / 0.6618 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.1873, allocations: 112.1 kB / 0.6619 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.204e-05/0.1873, allocations: 16 kB / 0.6619 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.063e-05/0.1874, allocations: 20 kB / 0.6619 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.1876, allocations: 75.78 kB / 0.662 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.1877, allocations: 127.3 kB / 0.6621 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000364/0.1881, allocations: 279.2 kB / 0.6624 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1881, allocations: 0 / 0.6624 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.703e-06/0.1881, allocations: 0 / 0.6624 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.73e-06/0.1881, allocations: 0 / 0.6624 GB, free: 7.477 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.001332/0.1894, allocations: 0.7115 MB / 0.6631 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.1895, allocations: 12.03 kB / 0.6631 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.507e-05/0.1896, allocations: 38.75 kB / 0.6631 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.731e-05/0.1897, allocations: 32.8 kB / 0.6631 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.19, allocations: 271.7 kB / 0.6634 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.19, allocations: 12.12 kB / 0.6634 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.001e-05/0.1901, allocations: 23.98 kB / 0.6634 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.1904, allocations: 145.5 kB / 0.6636 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1904, allocations: 0 / 0.6636 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.1905, allocations: 0 / 0.6636 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1905, allocations: 4 kB / 0.6636 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/0.1906, allocations: 47.97 kB / 0.6636 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004485/0.1911, allocations: 309.4 kB / 0.6639 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.1914, allocations: 138.6 kB / 0.664 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.1916, allocations: 52.84 kB / 0.6641 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.1916, allocations: 0 / 0.6641 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005001/0.1921, allocations: 225.4 kB / 0.6643 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.412e-06/0.1921, allocations: 0 / 0.6643 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006276/0.1928, allocations: 271.4 kB / 0.6646 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.1928, allocations: 63.39 kB / 0.6646 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.1932, allocations: 290.9 kB / 0.6649 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.373e-05/0.1932, allocations: 41.69 kB / 0.6649 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.162e-05/0.1933, allocations: 89.14 kB / 0.665 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.054e-05/0.1934, allocations: 43.69 kB / 0.6651 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001924/0.1936, allocations: 109.8 kB / 0.6652 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001964/0.1938, allocations: 318.8 kB / 0.6655 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.1941, allocations: 96.17 kB / 0.6656 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/0.1944, allocations: 150.3 kB / 0.6657 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004496/0.1949, allocations: 248 kB / 0.666 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1949, allocations: 0 / 0.666 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009124/0.1958, allocations: 416.6 kB / 0.6664 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.1959, allocations: 75.39 kB / 0.6664 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.196, allocations: 3.984 kB / 0.6664 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.813e-05/0.196, allocations: 4 kB / 0.6664 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.1962, allocations: 32.09 kB / 0.6665 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.1963, allocations: 7.984 kB / 0.6665 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005322/0.1968, allocations: 55.91 kB / 0.6665 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.629e-05/0.1969, allocations: 51.98 kB / 0.6666 GB, free: 2.816 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.0003574/0.1973, allocations: 178.5 kB / 0.6667 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/0.1974, allocations: 31.75 kB / 0.6668 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.733e-05/0.1975, allocations: 34.25 kB / 0.6668 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.1975, allocations: 4 kB / 0.6668 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1975, allocations: 0 / 0.6668 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.1975, allocations: 0 / 0.6668 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.1986, allocations: 0.5567 MB / 0.6674 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.1986, allocations: 7.938 kB / 0.6674 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.196e-05/0.1987, allocations: 11.98 kB / 0.6674 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1987, allocations: 0 / 0.6674 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.1987, allocations: 11.98 kB / 0.6674 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1987, allocations: 4 kB / 0.6674 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1987, allocations: 0 / 0.6674 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005787/0.1993, allocations: 329.1 kB / 0.6677 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.1995, allocations: 152.9 kB / 0.6678 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.722e-05/0.1996, allocations: 11.98 kB / 0.6679 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.1998, allocations: 7.984 kB / 0.6679 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.603e-05/0.1999, allocations: 15.98 kB / 0.6679 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.2, allocations: 31.98 kB / 0.6679 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002566/0.2002, allocations: 213.9 kB / 0.6681 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2002, allocations: 0 / 0.6681 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003329/0.2006, allocations: 52 kB / 0.6682 GB, free: 1.09 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.0008448/0.2014, allocations: 0.865 MB / 0.669 GB, free: 200 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005994/0.202, allocations: 346.6 kB / 0.6693 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.2021, allocations: 0 / 0.6693 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001696/0.2022, allocations: 75.91 kB / 0.6694 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.2026, allocations: 28.45 kB / 0.6694 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003935/0.2066, allocations: 2.406 MB / 0.6718 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005345/0.2071, allocations: 0.7435 MB / 0.6725 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000147/0.2073, allocations: 37.42 kB / 0.6726 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.2074, allocations: 43.41 kB / 0.6726 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/0.2075, allocations: 0 / 0.6726 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.2345, allocations: 5.298 MB / 0.6778 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.305/8.54, allocations: 4 kB / 0.6778 GB, free: 7.172 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)