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.001466/0.001466, allocations: 108.2 kB / 16.37 MB, free: 6.008 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.001293/0.001294, allocations: 193.8 kB / 17.3 MB, free: 5.617 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.35/1.35, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.786/0.786, allocations: 132.2 MB / 423.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002553/0.002553, allocations: 59.91 kB / 0.5032 GB, free: 10.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.4056, allocations: 80.18 MB / 0.5815 GB, free: 27.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002468/0.4081, allocations: 1.466 MB / 0.5829 GB, free: 26.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008193/0.4089, allocations: 431.3 kB / 0.5833 GB, free: 26.07 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.851e-05/0.409, allocations: 0 / 0.5833 GB, free: 26.07 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.242e-05/0.4091, allocations: 11.86 kB / 0.5833 GB, free: 26.06 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.57e-05/0.4092, allocations: 25.59 kB / 0.5834 GB, free: 26.05 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005786/0.4098, allocations: 236.6 kB / 0.5836 GB, free: 25.88 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003103/0.4101, allocations: 312.5 kB / 0.5839 GB, free: 25.71 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.38e-05/0.4101, allocations: 16.56 kB / 0.5839 GB, free: 25.7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.4104, allocations: 195.1 kB / 0.5841 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001947/0.4106, allocations: 118 kB / 0.5842 GB, free: 25.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.319e-05/0.4106, allocations: 17.94 kB / 0.5842 GB, free: 25.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.663e-05/0.4107, allocations: 20.28 kB / 0.5842 GB, free: 25.53 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.811e-05/0.4108, allocations: 77.69 kB / 0.5843 GB, free: 25.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.4109, allocations: 120.3 kB / 0.5844 GB, free: 25.4 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.4112, allocations: 283.2 kB / 0.5847 GB, free: 25.22 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4112, allocations: 0 / 0.5847 GB, free: 25.22 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4112, allocations: 1.438 kB / 0.5847 GB, free: 25.22 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.4112, allocations: 0 / 0.5847 GB, free: 25.22 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.00104/0.4122, allocations: 0.7002 MB / 0.5854 GB, free: 24.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.4123, allocations: 11.81 kB / 0.5854 GB, free: 24.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.364e-05/0.4124, allocations: 31.75 kB / 0.5854 GB, free: 24.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002786/0.4127, allocations: 255.3 kB / 0.5857 GB, free: 24.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.4127, allocations: 18.67 kB / 0.5857 GB, free: 24.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.423e-05/0.4127, allocations: 18.84 kB / 0.5857 GB, free: 24.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/0.413, allocations: 143.8 kB / 0.5858 GB, free: 24.19 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.413, allocations: 1.094 kB / 0.5858 GB, free: 24.19 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.4131, allocations: 9.578 kB / 0.5859 GB, free: 24.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.4131, allocations: 5.391 kB / 0.5859 GB, free: 24.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.4132, allocations: 42.58 kB / 0.5859 GB, free: 24.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002658/0.4135, allocations: 317 kB / 0.5862 GB, free: 23.85 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.4137, allocations: 135.6 kB / 0.5863 GB, free: 23.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.4138, allocations: 59.48 kB / 0.5864 GB, free: 23.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.4139, allocations: 1.656 kB / 0.5864 GB, free: 23.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003579/0.4142, allocations: 221.4 kB / 0.5866 GB, free: 23.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.4142, allocations: 0 / 0.5866 GB, free: 23.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005379/0.4148, allocations: 273 kB / 0.5869 GB, free: 23.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.4148, allocations: 60.34 kB / 0.5869 GB, free: 23.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.4151, allocations: 283.4 kB / 0.5872 GB, free: 23.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.123e-05/0.4151, allocations: 45.75 kB / 0.5872 GB, free: 23.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.232e-05/0.4152, allocations: 89.95 kB / 0.5873 GB, free: 23.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.4152, allocations: 42.08 kB / 0.5874 GB, free: 23.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.4153, allocations: 109.8 kB / 0.5875 GB, free: 22.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.079e-05/0.4154, allocations: 321.8 kB / 0.5878 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.4156, allocations: 98.73 kB / 0.5879 GB, free: 22.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.4158, allocations: 146 kB / 0.588 GB, free: 22.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.4161, allocations: 245.3 kB / 0.5882 GB, free: 22.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.4161, allocations: 0.875 kB / 0.5882 GB, free: 22.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006131/0.4167, allocations: 411 kB / 0.5886 GB, free: 22.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.133e-05/0.4168, allocations: 72.27 kB / 0.5887 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.4168, allocations: 6.188 kB / 0.5887 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.4168, allocations: 8.672 kB / 0.5887 GB, free: 22.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.417, allocations: 28.27 kB / 0.5887 GB, free: 22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.417, allocations: 2.594 kB / 0.5887 GB, free: 22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004619/0.4175, allocations: 53.36 kB / 0.5888 GB, free: 21.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.805e-05/0.4176, allocations: 53.8 kB / 0.5888 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.0001504/0.4178, allocations: 179.8 kB / 0.589 GB, free: 21.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.143e-05/0.4178, allocations: 35.16 kB / 0.5891 GB, free: 21.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.199e-05/0.4179, allocations: 31.25 kB / 0.5891 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.4179, allocations: 2.094 kB / 0.5891 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4179, allocations: 1.5 kB / 0.5891 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.4179, allocations: 0 / 0.5891 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007181/0.4186, allocations: 0.5614 MB / 0.5896 GB, free: 21.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4186, allocations: 1.094 kB / 0.5896 GB, free: 21.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.18e-05/0.4187, allocations: 10.44 kB / 0.5896 GB, free: 21.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4187, allocations: 0.625 kB / 0.5896 GB, free: 21.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.4187, allocations: 10.55 kB / 0.5897 GB, free: 21.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4187, allocations: 1.906 kB / 0.5897 GB, free: 21.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4187, allocations: 3.984 kB / 0.5897 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003695/0.4191, allocations: 328 kB / 0.59 GB, free: 21.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.4193, allocations: 162 kB / 0.5901 GB, free: 20.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.4193, allocations: 9.875 kB / 0.5901 GB, free: 20.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.4195, allocations: 15.97 kB / 0.5902 GB, free: 20.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.4196, allocations: 15.92 kB / 0.5902 GB, free: 20.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.4196, allocations: 31.97 kB / 0.5902 GB, free: 20.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000131/0.4198, allocations: 210.8 kB / 0.5904 GB, free: 20.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4198, allocations: 0 / 0.5904 GB, free: 20.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.4201, allocations: 53.8 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.3e-05/0.4202, allocations: 112.9 kB / 0.5906 GB, free: 20.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000429/0.4206, allocations: 346.7 kB / 0.5909 GB, free: 20.13 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4206, allocations: 0 / 0.5909 GB, free: 20.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.4207, allocations: 77.64 kB / 0.591 GB, free: 20.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.4211, allocations: 20.88 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.0005236/0.4216, allocations: 378.1 kB / 0.5913 GB, free: 19.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/0.4218, allocations: 0.7434 MB / 0.5921 GB, free: 18.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.4219, allocations: 37.08 kB / 0.5921 GB, free: 18.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.666e-05/0.422, allocations: 37.39 kB / 0.5921 GB, free: 18.81 MB / 446.1 MB Notification: Performance of SimCode: time 2.01e-07/0.422, allocations: 0 / 0.5921 GB, free: 18.81 MB / 446.1 MB Notification: Performance of Templates: time 0.006067/0.428, allocations: 4.105 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 gbode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)