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.0008052/0.0008053, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.005981/0.005981, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.404/1.404, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8313/0.8313, allocations: 132.4 MB / 423.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.000352, allocations: 8 kB / 0.504 GB, free: 3.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4677/0.4681, allocations: 81.58 MB / 0.5837 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001477/0.4696, allocations: 1.196 MB / 0.5848 GB, free: 3.164 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009494/0.4706, allocations: 446.1 kB / 0.5853 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.279e-05/0.4706, allocations: 0 / 0.5853 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.339e-05/0.4707, allocations: 7.016 kB / 0.5853 GB, free: 2.871 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.4708, allocations: 22.44 kB / 0.5853 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006281/0.4715, allocations: 226.3 kB / 0.5855 GB, free: 2.746 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003108/0.4718, allocations: 285.3 kB / 0.5858 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.154e-05/0.4718, allocations: 13.02 kB / 0.5858 GB, free: 2.645 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003167/0.4722, allocations: 209.3 kB / 0.586 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.4724, allocations: 120.8 kB / 0.5861 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.481e-05/0.4724, allocations: 9.156 kB / 0.5861 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.792e-05/0.4725, allocations: 14.47 kB / 0.5861 GB, free: 2.551 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.4726, allocations: 74.81 kB / 0.5862 GB, free: 2.527 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.4728, allocations: 144.4 kB / 0.5863 GB, free: 2.434 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.4731, allocations: 281.6 kB / 0.5866 GB, free: 2.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.4732, allocations: 1.125 kB / 0.5866 GB, free: 2.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4732, allocations: 0 / 0.5866 GB, free: 2.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.738e-06/0.4732, allocations: 0 / 0.5866 GB, free: 2.34 MB / 430.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.001026/0.4742, allocations: 0.6192 MB / 0.5872 GB, free: 1.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.4742, allocations: 9.25 kB / 0.5872 GB, free: 1.754 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.584e-05/0.4743, allocations: 31.56 kB / 0.5872 GB, free: 1.742 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.4746, allocations: 260.2 kB / 0.5875 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.563e-05/0.4747, allocations: 13.25 kB / 0.5875 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.427e-05/0.4747, allocations: 16.7 kB / 0.5875 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.4751, allocations: 144.3 kB / 0.5877 GB, free: 1.441 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.4751, allocations: 7.938 kB / 0.5877 GB, free: 1.434 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/0.4751, allocations: 2.906 kB / 0.5877 GB, free: 1.434 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.4751, allocations: 1.438 kB / 0.5877 GB, free: 1.434 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001431/0.4753, allocations: 49.89 kB / 0.5877 GB, free: 1.418 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.4756, allocations: 312.2 kB / 0.588 GB, free: 1.176 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.476, allocations: 127.3 kB / 0.5881 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.4761, allocations: 61.77 kB / 0.5882 GB, free: 1.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.4761, allocations: 7.594 kB / 0.5882 GB, free: 1.086 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004898/0.4766, allocations: 225.3 kB / 0.5884 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of pre-optimization done (n=18): time 1.983e-06/0.4766, allocations: 0 / 0.5884 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006351/0.4773, allocations: 268.1 kB / 0.5887 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.4773, allocations: 62.14 kB / 0.5887 GB, free: 0.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.4777, allocations: 292.4 kB / 0.589 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.789e-05/0.4777, allocations: 41.58 kB / 0.5891 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.605e-05/0.4778, allocations: 87.09 kB / 0.5891 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.507e-05/0.4779, allocations: 47.02 kB / 0.5892 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.157e-05/0.4779, allocations: 34.75 kB / 0.5892 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.775e-05/0.478, allocations: 326 kB / 0.5895 GB, free: 176 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.4783, allocations: 94.98 kB / 0.5896 GB, free: 144 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002656/0.4785, allocations: 144.5 kB / 0.5898 GB, free: 56 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004113/0.479, allocations: 240.5 kB / 0.59 GB, free: 15.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.479, allocations: 0 / 0.59 GB, free: 15.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008275/0.4798, allocations: 418.1 kB / 0.5904 GB, free: 15.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.283e-05/0.4799, allocations: 81.36 kB / 0.5905 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.4799, allocations: 5.969 kB / 0.5905 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.4799, allocations: 6.562 kB / 0.5905 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001989/0.4801, allocations: 31.2 kB / 0.5905 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.4802, allocations: 3.641 kB / 0.5905 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005788/0.4807, allocations: 72.97 kB / 0.5906 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.4809, allocations: 50.03 kB / 0.5906 GB, free: 15.58 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.0002366/0.4811, allocations: 174.1 kB / 0.5908 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.938e-05/0.4812, allocations: 27.61 kB / 0.5908 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.463e-05/0.4812, allocations: 32.78 kB / 0.5908 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.4813, allocations: 10.11 kB / 0.5909 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.4813, allocations: 0 / 0.5909 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4813, allocations: 6.438 kB / 0.5909 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009509/0.4822, allocations: 0.5549 MB / 0.5914 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4822, allocations: 0 / 0.5914 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.731e-05/0.4823, allocations: 8.344 kB / 0.5914 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.4823, allocations: 1.375 kB / 0.5914 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/0.4824, allocations: 15.95 kB / 0.5914 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4824, allocations: 0.9062 kB / 0.5914 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.4824, allocations: 3.984 kB / 0.5914 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004953/0.4829, allocations: 329.7 kB / 0.5917 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001971/0.4831, allocations: 159.7 kB / 0.5919 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.651e-05/0.4831, allocations: 9 kB / 0.5919 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.4834, allocations: 14.7 kB / 0.5919 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.092e-05/0.4835, allocations: 14.33 kB / 0.5919 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.4835, allocations: 28.28 kB / 0.592 GB, free: 14.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.4838, allocations: 212.8 kB / 0.5922 GB, free: 14.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4838, allocations: 4 kB / 0.5922 GB, free: 14.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003859/0.4842, allocations: 48.03 kB / 0.5922 GB, free: 14.55 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.0001907/0.4844, allocations: 108.8 kB / 0.5923 GB, free: 14.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006983/0.4851, allocations: 341.3 kB / 0.5926 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4851, allocations: 0 / 0.5926 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.4853, allocations: 84.06 kB / 0.5927 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004089/0.4857, allocations: 28.34 kB / 0.5927 GB, free: 14.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007473/0.4865, allocations: 458.9 kB / 0.5932 GB, free: 13.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.4868, allocations: 0.7456 MB / 0.5939 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.487, allocations: 43.59 kB / 0.594 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.4871, allocations: 37.45 kB / 0.594 GB, free: 13.17 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4871, allocations: 0 / 0.594 GB, free: 13.17 MB / 446.1 MB Notification: Performance of Templates: time 0.008751/0.4959, allocations: 4.011 MB / 0.5979 GB, free: 11.81 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)