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.00509/0.00509, allocations: 98.14 kB / 15.73 MB, free: 6.059 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.001119/0.001119, allocations: 199.8 kB / 16.68 MB, free: 5.977 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8182/0.8182, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 62.23 kB / 0.5808 GB, free: 1.137 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1795, allocations: 80.22 MB / 0.6592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002616/0.1821, allocations: 1.465 MB / 0.6606 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.1832, allocations: 432.1 kB / 0.661 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.843e-05/0.1833, allocations: 0 / 0.661 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1834, allocations: 7.875 kB / 0.661 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.1835, allocations: 24.22 kB / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007717/0.1843, allocations: 242.6 kB / 0.6613 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003742/0.1847, allocations: 323.5 kB / 0.6616 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.661e-05/0.1847, allocations: 12 kB / 0.6616 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003288/0.1851, allocations: 195.6 kB / 0.6618 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.1853, allocations: 108.1 kB / 0.6619 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.463e-05/0.1854, allocations: 16 kB / 0.6619 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.294e-05/0.1855, allocations: 20 kB / 0.6619 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.1856, allocations: 79.72 kB / 0.662 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.1857, allocations: 119.4 kB / 0.6621 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003203/0.1861, allocations: 278.6 kB / 0.6624 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1861, allocations: 0 / 0.6624 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.1861, allocations: 4 kB / 0.6624 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.1861, allocations: 0 / 0.6624 GB, free: 10.76 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.001231/0.1873, allocations: 0.7002 MB / 0.6631 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1874, allocations: 8.031 kB / 0.6631 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.987e-05/0.1874, allocations: 38.75 kB / 0.6631 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.568e-05/0.1875, allocations: 32.64 kB / 0.6631 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.1879, allocations: 259.5 kB / 0.6634 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.1879, allocations: 20.11 kB / 0.6634 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-05/0.188, allocations: 24 kB / 0.6634 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003209/0.1883, allocations: 141.5 kB / 0.6636 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.1883, allocations: 0 / 0.6636 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.1884, allocations: 4 kB / 0.6636 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1884, allocations: 0 / 0.6636 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.1885, allocations: 47.97 kB / 0.6636 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003627/0.1889, allocations: 313.3 kB / 0.6639 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.1892, allocations: 138.7 kB / 0.664 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.1893, allocations: 61.08 kB / 0.6641 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.1894, allocations: 4 kB / 0.6641 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004756/0.1898, allocations: 219.6 kB / 0.6643 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 3.397e-06/0.1899, allocations: 3.984 kB / 0.6643 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.000604/0.1905, allocations: 271.8 kB / 0.6646 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.1905, allocations: 59.41 kB / 0.6646 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.1908, allocations: 286.9 kB / 0.6649 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.189e-05/0.1909, allocations: 45.69 kB / 0.6649 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.233e-05/0.191, allocations: 93.08 kB / 0.665 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.85e-05/0.191, allocations: 43.59 kB / 0.6651 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.1912, allocations: 105.6 kB / 0.6652 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1913, allocations: 322.8 kB / 0.6655 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.1915, allocations: 96.12 kB / 0.6656 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.1918, allocations: 146.3 kB / 0.6657 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.1921, allocations: 242.6 kB / 0.6659 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.1921, allocations: 4 kB / 0.666 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007013/0.1928, allocations: 419.5 kB / 0.6664 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.291e-05/0.1929, allocations: 71.39 kB / 0.6664 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1929, allocations: 4 kB / 0.6664 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.193, allocations: 4 kB / 0.6664 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.1931, allocations: 31.91 kB / 0.6665 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.1932, allocations: 4 kB / 0.6665 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.1936, allocations: 63.98 kB / 0.6665 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.67e-05/0.1937, allocations: 47.98 kB / 0.6666 GB, free: 6.121 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.0001926/0.1939, allocations: 170.4 kB / 0.6667 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.406e-05/0.194, allocations: 27.66 kB / 0.6668 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.168e-05/0.194, allocations: 34.25 kB / 0.6668 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.194, allocations: 0 / 0.6668 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.1941, allocations: 4 kB / 0.6668 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.1941, allocations: 0 / 0.6668 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000914/0.195, allocations: 0.5683 MB / 0.6673 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.195, allocations: 0 / 0.6673 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.778e-05/0.195, allocations: 11.98 kB / 0.6674 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1951, allocations: 0 / 0.6674 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.1951, allocations: 15.98 kB / 0.6674 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1951, allocations: 0 / 0.6674 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1951, allocations: 0 / 0.6674 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00042/0.1955, allocations: 329.2 kB / 0.6677 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.1957, allocations: 148.7 kB / 0.6678 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.1958, allocations: 8 kB / 0.6678 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.196, allocations: 15.98 kB / 0.6679 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.196, allocations: 11.98 kB / 0.6679 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.601e-05/0.1961, allocations: 39.91 kB / 0.6679 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001849/0.1963, allocations: 205.9 kB / 0.6681 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1963, allocations: 0 / 0.6681 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003201/0.1966, allocations: 47.98 kB / 0.6681 GB, free: 4.414 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.0007234/0.1973, allocations: 0.8751 MB / 0.669 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005368/0.1979, allocations: 345.2 kB / 0.6693 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1979, allocations: 3.938 kB / 0.6693 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.1981, allocations: 72.27 kB / 0.6694 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.1984, allocations: 24.88 kB / 0.6694 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.2014, allocations: 2.382 MB / 0.6718 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.2017, allocations: 0.7435 MB / 0.6725 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001211/0.2018, allocations: 41.41 kB / 0.6725 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.202, allocations: 47.42 kB / 0.6726 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of SimCode: time 2.61e-07/0.202, allocations: 0 / 0.6726 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02505/0.227, allocations: 5.3 MB / 0.6777 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.454/7.681, allocations: 6.688 kB / 0.6777 GB, free: 10.52 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)