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.001383/0.001383, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001409/0.001409, allocations: 194.8 kB / 16.14 MB, free: 6.66 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.153/1.153, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.061/1.061, allocations: 135.1 MB / 425.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 68.08 kB / 0.5048 GB, free: 5.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1784, allocations: 80.93 MB / 0.5838 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.00335/0.1818, allocations: 1.528 MB / 0.5853 GB, free: 3.355 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.183, allocations: 443.3 kB / 0.5857 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.534e-05/0.1831, allocations: 4 kB / 0.5857 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.1832, allocations: 7.938 kB / 0.5857 GB, free: 2.906 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.1834, allocations: 24.28 kB / 0.5858 GB, free: 2.883 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007851/0.1842, allocations: 222.3 kB / 0.586 GB, free: 2.672 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003779/0.1846, allocations: 295.8 kB / 0.5862 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.883e-05/0.1846, allocations: 4 kB / 0.5862 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003709/0.185, allocations: 210.3 kB / 0.5865 GB, free: 2.176 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.1853, allocations: 119.6 kB / 0.5866 GB, free: 2.059 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.406e-05/0.1854, allocations: 11.94 kB / 0.5866 GB, free: 2.047 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.684e-05/0.1855, allocations: 12 kB / 0.5866 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.1856, allocations: 79.77 kB / 0.5867 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.1859, allocations: 119.4 kB / 0.5868 GB, free: 1.84 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.1863, allocations: 279.3 kB / 0.587 GB, free: 1.566 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1863, allocations: 0 / 0.587 GB, free: 1.566 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1863, allocations: 0 / 0.587 GB, free: 1.566 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.1863, allocations: 0 / 0.587 GB, free: 1.566 MB / 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.001602/0.1879, allocations: 0.7036 MB / 0.5877 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.188, allocations: 16.03 kB / 0.5877 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.026e-05/0.1881, allocations: 38.55 kB / 0.5878 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.1882, allocations: 31.72 kB / 0.5878 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.1886, allocations: 258.3 kB / 0.5881 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.573e-05/0.1886, allocations: 12 kB / 0.5881 GB, free: 400 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-05/0.1887, allocations: 12 kB / 0.5881 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003494/0.189, allocations: 157.4 kB / 0.5882 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.1891, allocations: 0 / 0.5882 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.876e-05/0.1891, allocations: 7.938 kB / 0.5882 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.1891, allocations: 0 / 0.5882 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.1893, allocations: 47.97 kB / 0.5883 GB, free: 168 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004423/0.1897, allocations: 317.3 kB / 0.5886 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.19, allocations: 126.7 kB / 0.5887 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.1902, allocations: 56.83 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/0.1902, allocations: 4 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005111/0.1907, allocations: 220.1 kB / 0.589 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.683e-06/0.1907, allocations: 0 / 0.589 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006926/0.1914, allocations: 271.9 kB / 0.5892 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.1915, allocations: 71.3 kB / 0.5893 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002822/0.1918, allocations: 286.9 kB / 0.5896 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.936e-05/0.1918, allocations: 41.64 kB / 0.5896 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.1919, allocations: 97.12 kB / 0.5897 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.26e-05/0.192, allocations: 39.5 kB / 0.5897 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.1921, allocations: 105.7 kB / 0.5898 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1923, allocations: 322.8 kB / 0.5902 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002199/0.1925, allocations: 96.19 kB / 0.5902 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.1927, allocations: 154.4 kB / 0.5904 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003554/0.1931, allocations: 242.8 kB / 0.5906 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.1931, allocations: 3.938 kB / 0.5906 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007687/0.1939, allocations: 420.5 kB / 0.591 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.019e-05/0.194, allocations: 71.39 kB / 0.5911 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.194, allocations: 0 / 0.5911 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.194, allocations: 16.06 kB / 0.5911 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.1942, allocations: 31.91 kB / 0.5911 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1943, allocations: 4 kB / 0.5911 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/0.1948, allocations: 59.8 kB / 0.5912 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-05/0.1949, allocations: 47.98 kB / 0.5913 GB, free: 12.91 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.0002807/0.1952, allocations: 181.7 kB / 0.5914 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.978e-05/0.1953, allocations: 23.72 kB / 0.5914 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.809e-05/0.1953, allocations: 30.19 kB / 0.5915 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.1954, allocations: 4 kB / 0.5915 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1954, allocations: 0 / 0.5915 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1954, allocations: 0 / 0.5915 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009991/0.1964, allocations: 0.5605 MB / 0.592 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1964, allocations: 0 / 0.592 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.843e-05/0.1964, allocations: 11.98 kB / 0.592 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1965, allocations: 4 kB / 0.592 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.1965, allocations: 15.98 kB / 0.5921 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1965, allocations: 3.938 kB / 0.5921 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1965, allocations: 0 / 0.5921 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004443/0.197, allocations: 329 kB / 0.5924 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.1971, allocations: 152.6 kB / 0.5925 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.719e-05/0.1972, allocations: 8 kB / 0.5925 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.1974, allocations: 19.98 kB / 0.5925 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/0.1975, allocations: 15.98 kB / 0.5926 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.346e-05/0.1976, allocations: 35.97 kB / 0.5926 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001926/0.1978, allocations: 205.9 kB / 0.5928 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1978, allocations: 0 / 0.5928 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000328/0.1981, allocations: 47.98 kB / 0.5928 GB, free: 11.19 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.0008157/0.1989, allocations: 0.873 MB / 0.5937 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006306/0.1996, allocations: 342.5 kB / 0.594 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1996, allocations: 0 / 0.594 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.1997, allocations: 70.41 kB / 0.5941 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.2001, allocations: 28.88 kB / 0.5941 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.2035, allocations: 2.455 MB / 0.5965 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.2039, allocations: 0.7438 MB / 0.5972 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001595/0.2041, allocations: 41.59 kB / 0.5973 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.2042, allocations: 47.36 kB / 0.5973 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of SimCode: time 3.7e-07/0.2042, allocations: 0 / 0.5973 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.2211, allocations: 5.096 MB / 0.6023 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.2213, allocations: 182.7 kB / 0.6025 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.128, allocations: 0 / 0.6025 GB, free: 1.176 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/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)