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.001633/0.001633, allocations: 107.6 kB / 15.99 MB, free: 5.91 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.001917/0.001917, allocations: 192.5 kB / 16.91 MB, free: 5.758 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.296/1.296, allocations: 222.9 MB / 240.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7292/0.7292, allocations: 132.2 MB / 422.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 59.91 kB / 0.5019 GB, free: 12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3541, allocations: 80.19 MB / 0.5802 GB, free: 27.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002184/0.3563, allocations: 1.536 MB / 0.5817 GB, free: 26.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007265/0.3571, allocations: 420 kB / 0.5821 GB, free: 25.73 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.864e-05/0.3571, allocations: 0 / 0.5821 GB, free: 25.73 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.577e-05/0.3572, allocations: 8.969 kB / 0.5821 GB, free: 25.72 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.557e-05/0.3573, allocations: 28.06 kB / 0.5821 GB, free: 25.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.3579, allocations: 223.9 kB / 0.5824 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.3582, allocations: 315.2 kB / 0.5827 GB, free: 25.38 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.597e-05/0.3583, allocations: 12.89 kB / 0.5827 GB, free: 25.38 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.3585, allocations: 229.5 kB / 0.5829 GB, free: 25.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.3587, allocations: 124.3 kB / 0.583 GB, free: 25.2 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.471e-05/0.3588, allocations: 21.88 kB / 0.583 GB, free: 25.2 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.054e-05/0.3589, allocations: 20.19 kB / 0.583 GB, free: 25.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.398e-05/0.359, allocations: 77 kB / 0.5831 GB, free: 25.15 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.3591, allocations: 127.8 kB / 0.5832 GB, free: 25.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001701/0.3593, allocations: 211.3 kB / 0.5834 GB, free: 24.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3593, allocations: 0 / 0.5834 GB, free: 24.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3593, allocations: 4 kB / 0.5834 GB, free: 24.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.3593, allocations: 0 / 0.5834 GB, free: 24.94 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.001003/0.3603, allocations: 0.7043 MB / 0.5841 GB, free: 24.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3603, allocations: 9.188 kB / 0.5841 GB, free: 24.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.7e-05/0.3604, allocations: 34.5 kB / 0.5842 GB, free: 24.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.3607, allocations: 258.7 kB / 0.5844 GB, free: 24.01 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.3607, allocations: 10.88 kB / 0.5844 GB, free: 24 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.633e-05/0.3608, allocations: 18.73 kB / 0.5844 GB, free: 24 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.361, allocations: 145 kB / 0.5846 GB, free: 23.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.361, allocations: 2.281 kB / 0.5846 GB, free: 23.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.3611, allocations: 5.156 kB / 0.5846 GB, free: 23.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3611, allocations: 2.656 kB / 0.5846 GB, free: 23.89 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001236/0.3612, allocations: 46.03 kB / 0.5846 GB, free: 23.88 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000253/0.3615, allocations: 315.2 kB / 0.5849 GB, free: 23.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.3617, allocations: 132.5 kB / 0.5851 GB, free: 23.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3618, allocations: 63.23 kB / 0.5851 GB, free: 23.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.3619, allocations: 13.31 kB / 0.5851 GB, free: 23.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004249/0.3623, allocations: 213.1 kB / 0.5853 GB, free: 23.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.3623, allocations: 0 / 0.5853 GB, free: 23.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005455/0.3629, allocations: 277.9 kB / 0.5856 GB, free: 23.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.3629, allocations: 60.62 kB / 0.5857 GB, free: 23.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.3631, allocations: 288.3 kB / 0.5859 GB, free: 22.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.602e-05/0.3632, allocations: 45.16 kB / 0.586 GB, free: 22.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.871e-05/0.3632, allocations: 85.58 kB / 0.5861 GB, free: 22.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.3633, allocations: 51.03 kB / 0.5861 GB, free: 22.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.3634, allocations: 106.9 kB / 0.5862 GB, free: 22.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.467e-05/0.3635, allocations: 321.4 kB / 0.5865 GB, free: 22.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.3637, allocations: 95.08 kB / 0.5866 GB, free: 22.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.3639, allocations: 148.7 kB / 0.5868 GB, free: 22.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.3642, allocations: 246.4 kB / 0.587 GB, free: 22.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3642, allocations: 0 / 0.587 GB, free: 22.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006009/0.3648, allocations: 419.2 kB / 0.5874 GB, free: 21.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/0.3649, allocations: 77.91 kB / 0.5875 GB, free: 21.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3649, allocations: 1.188 kB / 0.5875 GB, free: 21.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3649, allocations: 4.344 kB / 0.5875 GB, free: 21.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.3651, allocations: 29.3 kB / 0.5875 GB, free: 21.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.3651, allocations: 2.344 kB / 0.5875 GB, free: 21.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004954/0.3656, allocations: 60.83 kB / 0.5876 GB, free: 21.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-05/0.3656, allocations: 54.09 kB / 0.5876 GB, free: 21.68 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.0001393/0.3658, allocations: 180.5 kB / 0.5878 GB, free: 21.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/0.3658, allocations: 27.66 kB / 0.5878 GB, free: 21.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.547e-05/0.3659, allocations: 29.47 kB / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.3659, allocations: 2.969 kB / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.3659, allocations: 0 / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3659, allocations: 3.984 kB / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006185/0.3665, allocations: 0.5605 MB / 0.5884 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3666, allocations: 1.438 kB / 0.5884 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.12e-05/0.3666, allocations: 5.625 kB / 0.5884 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3666, allocations: 2.5 kB / 0.5884 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.3666, allocations: 17.62 kB / 0.5884 GB, free: 21.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3666, allocations: 4.969 kB / 0.5884 GB, free: 21.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3667, allocations: 1.344 kB / 0.5884 GB, free: 21.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.367, allocations: 320.4 kB / 0.5887 GB, free: 20.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.3671, allocations: 159.5 kB / 0.5889 GB, free: 20.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.3672, allocations: 8.188 kB / 0.5889 GB, free: 20.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.3674, allocations: 17.73 kB / 0.5889 GB, free: 20.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.3675, allocations: 16.19 kB / 0.5889 GB, free: 20.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.859e-05/0.3675, allocations: 31.7 kB / 0.589 GB, free: 20.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001404/0.3677, allocations: 209.9 kB / 0.5892 GB, free: 20.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3677, allocations: 0.5938 kB / 0.5892 GB, free: 20.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003039/0.368, allocations: 47.97 kB / 0.5892 GB, free: 20.47 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 0.0001054/0.3681, allocations: 123.3 kB / 0.5893 GB, free: 20.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004893/0.3686, allocations: 345.4 kB / 0.5896 GB, free: 20.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3686, allocations: 2.188 kB / 0.5896 GB, free: 20.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.3687, allocations: 71.94 kB / 0.5897 GB, free: 20.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.3691, allocations: 30.44 kB / 0.5897 GB, free: 20.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000575/0.3697, allocations: 0.4968 MB / 0.5902 GB, free: 19.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001375/0.3698, allocations: 0.7368 MB / 0.5909 GB, free: 18.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.3699, allocations: 46.72 kB / 0.591 GB, free: 18.83 MB / 446.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3699, allocations: 0 / 0.591 GB, free: 18.83 MB / 446.1 MB Notification: Performance of Templates: time 0.003725/0.3737, allocations: 3.001 MB / 0.5939 GB, free: 15.89 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 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)