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: translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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: 107.7 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.001818/0.001818, 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.353/1.353, allocations: 222.9 MB / 240.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7949/0.7949, allocations: 135.1 MB / 425.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.89 kB / 0.5055 GB, free: 8.688 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3578, allocations: 80.91 MB / 0.5845 GB, free: 25.18 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002108/0.3599, allocations: 1.534 MB / 0.586 GB, free: 23.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006872/0.3606, allocations: 419.5 kB / 0.5864 GB, free: 23.66 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.111e-05/0.3607, allocations: 0 / 0.5864 GB, free: 23.66 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 8.391e-05/0.3608, allocations: 3.938 kB / 0.5864 GB, free: 23.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.294e-05/0.3609, allocations: 24.31 kB / 0.5864 GB, free: 23.64 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005089/0.3614, allocations: 231.7 kB / 0.5866 GB, free: 23.48 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002657/0.3617, allocations: 311.5 kB / 0.5869 GB, free: 23.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.3617, allocations: 8.812 kB / 0.587 GB, free: 23.32 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.362, allocations: 235.4 kB / 0.5872 GB, free: 23.21 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.3621, allocations: 122.3 kB / 0.5873 GB, free: 23.14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.069e-05/0.3622, allocations: 22.94 kB / 0.5873 GB, free: 23.14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.952e-05/0.3623, allocations: 19.97 kB / 0.5873 GB, free: 23.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.977e-05/0.3623, allocations: 77.06 kB / 0.5874 GB, free: 23.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.3625, allocations: 127.8 kB / 0.5875 GB, free: 23.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.3626, allocations: 211.5 kB / 0.5877 GB, free: 22.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3626, allocations: 1.5 kB / 0.5877 GB, free: 22.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3626, allocations: 0 / 0.5877 GB, free: 22.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3627, allocations: 0 / 0.5877 GB, free: 22.88 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.000963/0.3636, allocations: 0.7046 MB / 0.5884 GB, free: 22.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.3637, allocations: 11.11 kB / 0.5884 GB, free: 22.22 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.788e-05/0.3637, allocations: 30.28 kB / 0.5885 GB, free: 22.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.364, allocations: 258.7 kB / 0.5887 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.364, allocations: 15.64 kB / 0.5887 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.636e-05/0.3641, allocations: 15.25 kB / 0.5887 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.3643, allocations: 148.8 kB / 0.5889 GB, free: 21.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.3644, allocations: 5.531 kB / 0.5889 GB, free: 21.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.3644, allocations: 4.938 kB / 0.5889 GB, free: 21.83 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3644, allocations: 2.906 kB / 0.5889 GB, free: 21.83 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.3645, allocations: 45.69 kB / 0.5889 GB, free: 21.81 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002455/0.3648, allocations: 320.8 kB / 0.5892 GB, free: 21.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002823/0.3651, allocations: 126.9 kB / 0.5894 GB, free: 21.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.3652, allocations: 62.77 kB / 0.5894 GB, free: 21.39 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.3652, allocations: 7.75 kB / 0.5894 GB, free: 21.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003937/0.3656, allocations: 216.7 kB / 0.5896 GB, free: 21.26 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.573e-06/0.3656, allocations: 0 / 0.5896 GB, free: 21.26 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0004973/0.3661, allocations: 274.3 kB / 0.5899 GB, free: 21.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.432e-05/0.3662, allocations: 67.31 kB / 0.59 GB, free: 20.94 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.3663, allocations: 286.9 kB / 0.5902 GB, free: 20.65 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.3664, allocations: 41.69 kB / 0.5903 GB, free: 20.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.3665, allocations: 93.8 kB / 0.5904 GB, free: 20.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.666e-05/0.3665, allocations: 43.45 kB / 0.5904 GB, free: 20.47 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.3666, allocations: 111.2 kB / 0.5905 GB, free: 20.35 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.081e-05/0.3667, allocations: 322.8 kB / 0.5908 GB, free: 20.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.3669, allocations: 96.95 kB / 0.5909 GB, free: 19.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.3671, allocations: 143.6 kB / 0.591 GB, free: 19.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.3673, allocations: 248.2 kB / 0.5913 GB, free: 19.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3674, allocations: 0 / 0.5913 GB, free: 19.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005651/0.3679, allocations: 417.9 kB / 0.5917 GB, free: 19.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.368, allocations: 71.38 kB / 0.5918 GB, free: 19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.368, allocations: 6.156 kB / 0.5918 GB, free: 18.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.368, allocations: 4 kB / 0.5918 GB, free: 18.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.3682, allocations: 27.92 kB / 0.5918 GB, free: 18.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.3682, allocations: 4 kB / 0.5918 GB, free: 18.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/0.3687, allocations: 62.12 kB / 0.5918 GB, free: 18.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.945e-05/0.3688, allocations: 51.98 kB / 0.5919 GB, free: 18.85 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.0001381/0.3689, allocations: 178.5 kB / 0.5921 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.369, allocations: 25.12 kB / 0.5921 GB, free: 18.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/0.369, allocations: 30.25 kB / 0.5921 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.369, allocations: 0 / 0.5921 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.369, allocations: 8.859 kB / 0.5921 GB, free: 18.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.369, allocations: 0 / 0.5921 GB, free: 18.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005963/0.3696, allocations: 0.5605 MB / 0.5927 GB, free: 17.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3697, allocations: 4 kB / 0.5927 GB, free: 17.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.165e-05/0.3697, allocations: 12.55 kB / 0.5927 GB, free: 17.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3697, allocations: 5.125 kB / 0.5927 GB, free: 17.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.3697, allocations: 15.98 kB / 0.5927 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3697, allocations: 3.938 kB / 0.5927 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3698, allocations: 1.75 kB / 0.5927 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003133/0.3701, allocations: 319 kB / 0.593 GB, free: 17.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.3702, allocations: 157.3 kB / 0.5932 GB, free: 17.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.127e-05/0.3703, allocations: 11.98 kB / 0.5932 GB, free: 17.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.3705, allocations: 23.36 kB / 0.5932 GB, free: 17.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.3705, allocations: 11.98 kB / 0.5932 GB, free: 17.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.3706, allocations: 31.98 kB / 0.5932 GB, free: 17.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001191/0.3707, allocations: 209.9 kB / 0.5934 GB, free: 17.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3707, allocations: 0 / 0.5934 GB, free: 17.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002899/0.371, allocations: 44 kB / 0.5935 GB, free: 17.13 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 8.806e-05/0.3711, allocations: 124.4 kB / 0.5936 GB, free: 17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.3716, allocations: 342.6 kB / 0.5939 GB, free: 16.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3716, allocations: 0 / 0.5939 GB, free: 16.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.3717, allocations: 70.16 kB / 0.594 GB, free: 16.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.372, allocations: 34.61 kB / 0.594 GB, free: 16.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005615/0.3726, allocations: 497.4 kB / 0.5945 GB, free: 16.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.3727, allocations: 0.744 MB / 0.5952 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.3729, allocations: 41.42 kB / 0.5953 GB, free: 15.23 MB / 446.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3729, allocations: 0.75 kB / 0.5953 GB, free: 15.23 MB / 446.1 MB Notification: Performance of Templates: time 0.003826/0.3767, allocations: 3.018 MB / 0.5982 GB, free: 12.27 MB / 446.1 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (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 & ./IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)