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.001265/0.001266, allocations: 108 kB / 16.36 MB, free: 6.285 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.001331/0.001331, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.284/1.284, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7595/0.7595, allocations: 135.1 MB / 426.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.89 kB / 0.5067 GB, free: 7.711 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.385, allocations: 80.91 MB / 0.5857 GB, free: 25.65 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.003079/0.3882, allocations: 1.468 MB / 0.5872 GB, free: 24.51 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.3893, allocations: 426.1 kB / 0.5876 GB, free: 24.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.306e-05/0.3893, allocations: 1.031 kB / 0.5876 GB, free: 24.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.3895, allocations: 8.5 kB / 0.5876 GB, free: 24.17 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.3896, allocations: 29 kB / 0.5876 GB, free: 24.15 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008478/0.3905, allocations: 243.9 kB / 0.5879 GB, free: 23.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004649/0.3909, allocations: 315.8 kB / 0.5882 GB, free: 23.81 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.057e-05/0.391, allocations: 21.03 kB / 0.5882 GB, free: 23.8 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003445/0.3914, allocations: 184.3 kB / 0.5884 GB, free: 23.71 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.3917, allocations: 116.2 kB / 0.5885 GB, free: 23.64 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.909e-05/0.3918, allocations: 19.81 kB / 0.5885 GB, free: 23.64 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.15e-05/0.3918, allocations: 17.59 kB / 0.5885 GB, free: 23.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.392, allocations: 78.06 kB / 0.5886 GB, free: 23.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.3922, allocations: 119 kB / 0.5887 GB, free: 23.51 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003226/0.3925, allocations: 289.8 kB / 0.589 GB, free: 23.24 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3925, allocations: 0.7188 kB / 0.589 GB, free: 23.24 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3925, allocations: 0 / 0.589 GB, free: 23.24 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.3925, allocations: 0.625 kB / 0.589 GB, free: 23.24 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.001324/0.3939, allocations: 0.6948 MB / 0.5896 GB, free: 22.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.3939, allocations: 9.109 kB / 0.5897 GB, free: 22.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.394, allocations: 32.66 kB / 0.5897 GB, free: 22.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003432/0.3944, allocations: 267.6 kB / 0.5899 GB, free: 22.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.355e-05/0.3944, allocations: 8.375 kB / 0.5899 GB, free: 22.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.687e-05/0.3945, allocations: 24.75 kB / 0.59 GB, free: 22.1 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.3949, allocations: 145.5 kB / 0.5901 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3949, allocations: 4.516 kB / 0.5901 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.3949, allocations: 1.094 kB / 0.5901 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.3949, allocations: 4 kB / 0.5901 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.3951, allocations: 47.97 kB / 0.5902 GB, free: 21.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003281/0.3955, allocations: 310 kB / 0.5905 GB, free: 21.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.3958, allocations: 132.7 kB / 0.5906 GB, free: 21.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.396, allocations: 56.83 kB / 0.5906 GB, free: 21.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.396, allocations: 5.375 kB / 0.5906 GB, free: 21.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004628/0.3965, allocations: 222.2 kB / 0.5909 GB, free: 21.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 2.164e-06/0.3965, allocations: 0.5625 kB / 0.5909 GB, free: 21.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007396/0.3972, allocations: 268.1 kB / 0.5911 GB, free: 20.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.3973, allocations: 68.61 kB / 0.5912 GB, free: 20.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000288/0.3976, allocations: 286.9 kB / 0.5915 GB, free: 20.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.3977, allocations: 37.7 kB / 0.5915 GB, free: 20.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.935e-05/0.3977, allocations: 90.2 kB / 0.5916 GB, free: 20.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.53e-05/0.3978, allocations: 51.42 kB / 0.5916 GB, free: 20.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.398, allocations: 108.1 kB / 0.5917 GB, free: 20.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.607e-05/0.3981, allocations: 318.8 kB / 0.592 GB, free: 19.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/0.3984, allocations: 92.17 kB / 0.5921 GB, free: 19.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003113/0.3987, allocations: 148.2 kB / 0.5923 GB, free: 19.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.3991, allocations: 244 kB / 0.5925 GB, free: 19.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3991, allocations: 0.5625 kB / 0.5925 GB, free: 19.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000868/0.4, allocations: 410.5 kB / 0.5929 GB, free: 18.94 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.27e-05/0.4, allocations: 83.31 kB / 0.593 GB, free: 18.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.4001, allocations: 4 kB / 0.593 GB, free: 18.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.4001, allocations: 2.844 kB / 0.593 GB, free: 18.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.4003, allocations: 23.98 kB / 0.593 GB, free: 18.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.4003, allocations: 7.938 kB / 0.593 GB, free: 18.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006642/0.401, allocations: 60.3 kB / 0.5931 GB, free: 18.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.501e-05/0.4011, allocations: 59.97 kB / 0.5931 GB, free: 18.7 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.0001887/0.4013, allocations: 171.8 kB / 0.5933 GB, free: 18.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.4014, allocations: 29.5 kB / 0.5933 GB, free: 18.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.199e-05/0.4015, allocations: 30.19 kB / 0.5933 GB, free: 18.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.4015, allocations: 4 kB / 0.5933 GB, free: 18.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.4015, allocations: 0 / 0.5933 GB, free: 18.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4015, allocations: 3.984 kB / 0.5933 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008538/0.4024, allocations: 0.5585 MB / 0.5939 GB, free: 17.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.4024, allocations: 0 / 0.5939 GB, free: 17.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.365e-05/0.4024, allocations: 11.94 kB / 0.5939 GB, free: 17.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.4025, allocations: 0.6875 kB / 0.5939 GB, free: 17.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.389e-05/0.4025, allocations: 15.97 kB / 0.5939 GB, free: 17.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4025, allocations: 2.312 kB / 0.5939 GB, free: 17.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4025, allocations: 0 / 0.5939 GB, free: 17.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004717/0.403, allocations: 321.5 kB / 0.5942 GB, free: 17.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.4032, allocations: 160.6 kB / 0.5944 GB, free: 17.31 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.863e-05/0.4033, allocations: 9.094 kB / 0.5944 GB, free: 17.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002837/0.4036, allocations: 7.984 kB / 0.5944 GB, free: 17.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.781e-05/0.4037, allocations: 21.69 kB / 0.5944 GB, free: 17.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.6e-05/0.4037, allocations: 31.92 kB / 0.5944 GB, free: 17.24 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.4039, allocations: 209.9 kB / 0.5946 GB, free: 17.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.404, allocations: 0 / 0.5946 GB, free: 17.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004578/0.4044, allocations: 49.59 kB / 0.5947 GB, free: 16.99 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.0001368/0.4046, allocations: 124 kB / 0.5948 GB, free: 16.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006352/0.4052, allocations: 347.7 kB / 0.5951 GB, free: 16.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4052, allocations: 4.906 kB / 0.5951 GB, free: 16.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.4054, allocations: 74.3 kB / 0.5952 GB, free: 16.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004692/0.4059, allocations: 26.88 kB / 0.5952 GB, free: 16.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007554/0.4067, allocations: 386 kB / 0.5956 GB, free: 16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.4069, allocations: 0.7401 MB / 0.5963 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.407, allocations: 36.52 kB / 0.5964 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.4072, allocations: 41.78 kB / 0.5964 GB, free: 15.17 MB / 446.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4072, allocations: 0 / 0.5964 GB, free: 15.17 MB / 446.1 MB Notification: Performance of Templates: time 0.00688/0.4141, allocations: 4.085 MB / 0.6004 GB, free: 11.14 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)