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: translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 111.4 kB / 16.37 MB, free: 5.539 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.001171/0.001171, allocations: 192.8 kB / 17.31 MB, free: 5.18 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8198/0.8198, allocations: 132.2 MB / 423.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.89 kB / 0.5032 GB, free: 10.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4101/0.4114, allocations: 80.18 MB / 0.5815 GB, free: 27.56 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002215/0.4137, allocations: 1.47 MB / 0.5829 GB, free: 26.42 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007416/0.4144, allocations: 426.4 kB / 0.5833 GB, free: 26.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.176e-05/0.4145, allocations: 1.125 kB / 0.5833 GB, free: 26.09 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 7.981e-05/0.4146, allocations: 11.88 kB / 0.5833 GB, free: 26.08 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.312e-05/0.4147, allocations: 20.27 kB / 0.5834 GB, free: 26.07 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00055/0.4152, allocations: 241.4 kB / 0.5836 GB, free: 25.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002858/0.4155, allocations: 312.3 kB / 0.5839 GB, free: 25.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.421e-05/0.4156, allocations: 21.11 kB / 0.5839 GB, free: 25.71 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002119/0.4158, allocations: 198.4 kB / 0.5841 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001797/0.416, allocations: 109 kB / 0.5842 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.416, allocations: 18.69 kB / 0.5842 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.664e-05/0.4161, allocations: 17.25 kB / 0.5842 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.113e-05/0.4162, allocations: 83.53 kB / 0.5843 GB, free: 25.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.4163, allocations: 121.1 kB / 0.5844 GB, free: 25.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.4165, allocations: 281.9 kB / 0.5847 GB, free: 25.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4166, allocations: 1.438 kB / 0.5847 GB, free: 25.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4166, allocations: 1.438 kB / 0.5847 GB, free: 25.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.4166, allocations: 0 / 0.5847 GB, free: 25.23 MB / 446.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.0009636/0.4175, allocations: 0.6961 MB / 0.5854 GB, free: 24.58 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.4176, allocations: 9.719 kB / 0.5854 GB, free: 24.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.725e-05/0.4177, allocations: 30.88 kB / 0.5854 GB, free: 24.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.418, allocations: 266.6 kB / 0.5857 GB, free: 24.31 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.418, allocations: 14.22 kB / 0.5857 GB, free: 24.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.633e-05/0.418, allocations: 18.5 kB / 0.5857 GB, free: 24.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.4183, allocations: 144.8 kB / 0.5858 GB, free: 24.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.4183, allocations: 5 kB / 0.5859 GB, free: 24.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.4183, allocations: 5.016 kB / 0.5859 GB, free: 24.19 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.4184, allocations: 1.625 kB / 0.5859 GB, free: 24.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.4185, allocations: 53.84 kB / 0.5859 GB, free: 24.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002398/0.4187, allocations: 305.8 kB / 0.5862 GB, free: 23.87 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.419, allocations: 134.6 kB / 0.5863 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.4191, allocations: 61.48 kB / 0.5864 GB, free: 23.76 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.4191, allocations: 1.062 kB / 0.5864 GB, free: 23.76 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003363/0.4195, allocations: 218.6 kB / 0.5866 GB, free: 23.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.4195, allocations: 1.062 kB / 0.5866 GB, free: 23.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005061/0.42, allocations: 270 kB / 0.5869 GB, free: 23.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.42, allocations: 68.19 kB / 0.5869 GB, free: 23.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002102/0.4202, allocations: 287.6 kB / 0.5872 GB, free: 23.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.4203, allocations: 40.8 kB / 0.5872 GB, free: 23.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.125e-05/0.4203, allocations: 87.58 kB / 0.5873 GB, free: 23.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.4204, allocations: 47.16 kB / 0.5874 GB, free: 23.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.4205, allocations: 103.8 kB / 0.5875 GB, free: 23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.856e-05/0.4206, allocations: 322.5 kB / 0.5878 GB, free: 22.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.4208, allocations: 94.39 kB / 0.5879 GB, free: 22.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.421, allocations: 145.1 kB / 0.588 GB, free: 22.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/0.4212, allocations: 251.6 kB / 0.5882 GB, free: 22.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4212, allocations: 0 / 0.5882 GB, free: 22.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005924/0.4218, allocations: 416.7 kB / 0.5886 GB, free: 22.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.685e-05/0.4219, allocations: 80.19 kB / 0.5887 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.4219, allocations: 2.469 kB / 0.5887 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.4219, allocations: 2.875 kB / 0.5887 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.4221, allocations: 23.92 kB / 0.5887 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.4221, allocations: 3.906 kB / 0.5887 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004371/0.4225, allocations: 57.89 kB / 0.5888 GB, free: 22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.44e-05/0.4226, allocations: 62.45 kB / 0.5889 GB, free: 21.98 MB / 446.1 MB 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.0001459/0.4228, allocations: 175.4 kB / 0.589 GB, free: 21.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.08e-05/0.4228, allocations: 32.56 kB / 0.5891 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.257e-05/0.4229, allocations: 31.62 kB / 0.5891 GB, free: 21.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4229, allocations: 4 kB / 0.5891 GB, free: 21.78 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4229, allocations: 0 / 0.5891 GB, free: 21.78 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4229, allocations: 3.984 kB / 0.5891 GB, free: 21.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006989/0.4236, allocations: 0.5591 MB / 0.5896 GB, free: 21.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4236, allocations: 1.094 kB / 0.5896 GB, free: 21.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.281e-05/0.4237, allocations: 10.88 kB / 0.5896 GB, free: 21.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.4237, allocations: 1.125 kB / 0.5897 GB, free: 21.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.4237, allocations: 13.97 kB / 0.5897 GB, free: 21.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4237, allocations: 2.438 kB / 0.5897 GB, free: 21.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.4237, allocations: 1.125 kB / 0.5897 GB, free: 21.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.4241, allocations: 331.6 kB / 0.59 GB, free: 21.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.4243, allocations: 161.7 kB / 0.5901 GB, free: 20.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.4243, allocations: 8 kB / 0.5901 GB, free: 20.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.4245, allocations: 7.984 kB / 0.5902 GB, free: 20.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.72e-05/0.4246, allocations: 19.97 kB / 0.5902 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.4246, allocations: 27.98 kB / 0.5902 GB, free: 20.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001273/0.4248, allocations: 209.9 kB / 0.5904 GB, free: 20.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4248, allocations: 0.5938 kB / 0.5904 GB, free: 20.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.4251, allocations: 52.62 kB / 0.5905 GB, free: 20.61 MB / 446.1 MB 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 9.748e-05/0.4252, allocations: 114.8 kB / 0.5906 GB, free: 20.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004277/0.4256, allocations: 348.7 kB / 0.5909 GB, free: 20.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4256, allocations: 0 / 0.5909 GB, free: 20.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.4257, allocations: 71.91 kB / 0.591 GB, free: 20.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.4261, allocations: 28.05 kB / 0.591 GB, free: 20.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005039/0.4266, allocations: 381.2 kB / 0.5914 GB, free: 19.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.4267, allocations: 0.7396 MB / 0.5921 GB, free: 18.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.896e-05/0.4268, allocations: 40.08 kB / 0.5921 GB, free: 18.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.285e-05/0.4269, allocations: 38.97 kB / 0.5921 GB, free: 18.8 MB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4269, allocations: 4 kB / 0.5922 GB, free: 18.8 MB / 446.1 MB Notification: Performance of Templates: time 0.006057/0.433, allocations: 4.095 MB / 0.5962 GB, free: 14.79 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (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 & ./IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)