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.0008363/0.0008363, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0008877/0.0008876, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.167/1.167, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.671/0.671, allocations: 132.4 MB / 423.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002636, allocations: 8.562 kB / 0.5034 GB, free: 4.246 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3278, allocations: 81.57 MB / 0.5831 GB, free: 3.961 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001165/0.329, allocations: 1.182 MB / 0.5842 GB, free: 3.098 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007387/0.3297, allocations: 408.5 kB / 0.5846 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.641e-05/0.3298, allocations: 0.8438 kB / 0.5846 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 6.63e-05/0.3298, allocations: 10.56 kB / 0.5846 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 7.731e-05/0.3299, allocations: 17.81 kB / 0.5846 GB, free: 2.824 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004881/0.3304, allocations: 211.7 kB / 0.5848 GB, free: 2.727 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.3307, allocations: 248.2 kB / 0.5851 GB, free: 2.625 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.861e-05/0.3307, allocations: 9.312 kB / 0.5851 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000318/0.3311, allocations: 216.1 kB / 0.5853 GB, free: 2.574 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.3313, allocations: 130.7 kB / 0.5854 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.388e-05/0.3313, allocations: 12.62 kB / 0.5854 GB, free: 2.539 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.112e-05/0.3314, allocations: 9.781 kB / 0.5854 GB, free: 2.539 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.3315, allocations: 81.58 kB / 0.5855 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.45e-05/0.3315, allocations: 69.67 kB / 0.5856 GB, free: 2.465 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.3318, allocations: 202.3 kB / 0.5858 GB, free: 2.418 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.3318, allocations: 0 / 0.5858 GB, free: 2.418 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3318, allocations: 4.734 kB / 0.5858 GB, free: 2.414 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.3318, allocations: 1.438 kB / 0.5858 GB, free: 2.414 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.0007962/0.3326, allocations: 0.6196 MB / 0.5864 GB, free: 1.828 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.3326, allocations: 9.938 kB / 0.5864 GB, free: 1.828 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.642e-05/0.3327, allocations: 34.94 kB / 0.5864 GB, free: 1.812 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.3329, allocations: 252.9 kB / 0.5867 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.333, allocations: 13.81 kB / 0.5867 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.333, allocations: 19.75 kB / 0.5867 GB, free: 1.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.3333, allocations: 144.1 kB / 0.5868 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.3333, allocations: 0.8438 kB / 0.5868 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.3333, allocations: 10.05 kB / 0.5869 GB, free: 1.508 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3333, allocations: 2.125 kB / 0.5869 GB, free: 1.508 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.3335, allocations: 44.17 kB / 0.5869 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002687/0.3337, allocations: 308.6 kB / 0.5872 GB, free: 1.258 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.334, allocations: 127.1 kB / 0.5873 GB, free: 1.199 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3341, allocations: 57.28 kB / 0.5874 GB, free: 1.176 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.3341, allocations: 10.61 kB / 0.5874 GB, free: 1.168 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004011/0.3345, allocations: 216.1 kB / 0.5876 GB, free: 1.082 MB / 430.1 MB Notification: Performance of pre-optimization done (n=18): time 1.333e-06/0.3346, allocations: 4 kB / 0.5876 GB, free: 1.078 MB / 430.1 MB Notification: Performance of matching and sorting (n=18): time 0.0004989/0.3351, allocations: 267.1 kB / 0.5878 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.3351, allocations: 63.08 kB / 0.5879 GB, free: 0.918 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.3353, allocations: 288.8 kB / 0.5882 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.3354, allocations: 37.58 kB / 0.5882 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.267e-05/0.3354, allocations: 90.95 kB / 0.5883 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.154e-05/0.3355, allocations: 47.28 kB / 0.5883 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.3355, allocations: 12.75 kB / 0.5884 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.158e-05/0.3356, allocations: 326.5 kB / 0.5887 GB, free: 280 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.3358, allocations: 97.08 kB / 0.5888 GB, free: 244 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.336, allocations: 144.4 kB / 0.5889 GB, free: 156 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.3362, allocations: 151.1 kB / 0.589 GB, free: 48 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3362, allocations: 5.312 kB / 0.589 GB, free: 44 kB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006682/0.3369, allocations: 416.2 kB / 0.5894 GB, free: 15.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.885e-05/0.3369, allocations: 76.91 kB / 0.5895 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.337, allocations: 0.8125 kB / 0.5895 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.337, allocations: 4.531 kB / 0.5895 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.3371, allocations: 22.41 kB / 0.5895 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3371, allocations: 8.125 kB / 0.5895 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.3376, allocations: 72.97 kB / 0.5896 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.413e-05/0.3377, allocations: 53.97 kB / 0.5897 GB, free: 15.77 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001766/0.3379, allocations: 185.5 kB / 0.5898 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.3379, allocations: 28.36 kB / 0.5899 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.249e-05/0.338, allocations: 27.69 kB / 0.5899 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.338, allocations: 3.219 kB / 0.5899 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.338, allocations: 0.7969 kB / 0.5899 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.338, allocations: 0.7969 kB / 0.5899 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007457/0.3387, allocations: 0.5564 MB / 0.5904 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3387, allocations: 4 kB / 0.5905 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.364e-05/0.3388, allocations: 20.7 kB / 0.5905 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3388, allocations: 0.7812 kB / 0.5905 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.3388, allocations: 11.73 kB / 0.5905 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3388, allocations: 1.375 kB / 0.5905 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3388, allocations: 0 / 0.5905 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003926/0.3392, allocations: 318 kB / 0.5908 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.3394, allocations: 159.6 kB / 0.5909 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.3395, allocations: 8.719 kB / 0.5909 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.3397, allocations: 15.56 kB / 0.591 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.913e-05/0.3397, allocations: 20.2 kB / 0.591 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.3398, allocations: 27.77 kB / 0.591 GB, free: 14.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001936/0.34, allocations: 210.1 kB / 0.5912 GB, free: 14.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.34, allocations: 0 / 0.5912 GB, free: 14.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.3403, allocations: 52.03 kB / 0.5913 GB, free: 14.74 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001153/0.3404, allocations: 113.1 kB / 0.5914 GB, free: 14.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005385/0.3409, allocations: 349.8 kB / 0.5917 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.341, allocations: 0.5312 kB / 0.5917 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.3411, allocations: 70.08 kB / 0.5918 GB, free: 14.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.3414, allocations: 24.56 kB / 0.5918 GB, free: 14.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006675/0.3421, allocations: 442.5 kB / 0.5922 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.3424, allocations: 0.7406 MB / 0.5929 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.3425, allocations: 40.48 kB / 0.593 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.3427, allocations: 32.53 kB / 0.593 GB, free: 13.39 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3427, allocations: 4 kB / 0.593 GB, free: 13.38 MB / 446.1 MB Notification: Performance of Templates: time 0.006999/0.3497, allocations: 3.921 MB / 0.5968 GB, free: 12.14 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)