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.001504/0.001503, allocations: 114.9 kB / 16.37 MB, free: 5.539 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.001697/0.001697, allocations: 189.4 kB / 17.3 MB, free: 5.18 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.438/1.438, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8149/0.8149, allocations: 135.1 MB / 426.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.91 kB / 0.5067 GB, free: 7.684 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3934, allocations: 80.91 MB / 0.5858 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002254/0.3956, allocations: 1.482 MB / 0.5872 GB, free: 24.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000859/0.3965, allocations: 416.3 kB / 0.5876 GB, free: 24.14 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.24e-05/0.3966, allocations: 0 / 0.5876 GB, free: 24.14 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.3967, allocations: 12.58 kB / 0.5876 GB, free: 24.13 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.3968, allocations: 24.53 kB / 0.5876 GB, free: 24.11 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.3976, allocations: 238.6 kB / 0.5879 GB, free: 23.95 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.398, allocations: 323.6 kB / 0.5882 GB, free: 23.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.368e-05/0.3981, allocations: 23.7 kB / 0.5882 GB, free: 23.75 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003008/0.3984, allocations: 186.5 kB / 0.5884 GB, free: 23.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002885/0.3987, allocations: 108.6 kB / 0.5885 GB, free: 23.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.081e-05/0.3988, allocations: 18.22 kB / 0.5885 GB, free: 23.6 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.291e-05/0.3989, allocations: 18.62 kB / 0.5885 GB, free: 23.6 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.399, allocations: 84.14 kB / 0.5886 GB, free: 23.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.3992, allocations: 121.2 kB / 0.5887 GB, free: 23.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003084/0.3995, allocations: 284.7 kB / 0.589 GB, free: 23.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3996, allocations: 0 / 0.589 GB, free: 23.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3996, allocations: 4.594 kB / 0.589 GB, free: 23.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3996, allocations: 0 / 0.589 GB, free: 23.23 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.001113/0.4007, allocations: 0.698 MB / 0.5897 GB, free: 22.46 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.4007, allocations: 13.11 kB / 0.5897 GB, free: 22.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.276e-05/0.4008, allocations: 32.64 kB / 0.5897 GB, free: 22.42 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.4012, allocations: 256.2 kB / 0.59 GB, free: 22.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.4012, allocations: 17.67 kB / 0.59 GB, free: 22.11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.467e-05/0.4013, allocations: 19.94 kB / 0.59 GB, free: 22.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.4015, allocations: 141.5 kB / 0.5901 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4016, allocations: 1.844 kB / 0.5901 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.4016, allocations: 8 kB / 0.5901 GB, free: 21.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.4016, allocations: 0 / 0.5901 GB, free: 21.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.4017, allocations: 51.91 kB / 0.5902 GB, free: 21.89 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002912/0.402, allocations: 314.1 kB / 0.5905 GB, free: 21.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.4023, allocations: 132.4 kB / 0.5906 GB, free: 21.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.4024, allocations: 56.83 kB / 0.5907 GB, free: 21.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.4025, allocations: 9.219 kB / 0.5907 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004215/0.4029, allocations: 208.9 kB / 0.5909 GB, free: 21.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.4029, allocations: 0.5 kB / 0.5909 GB, free: 21.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005095/0.4034, allocations: 273.1 kB / 0.5911 GB, free: 20.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.4035, allocations: 68.78 kB / 0.5912 GB, free: 20.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.4037, allocations: 287 kB / 0.5915 GB, free: 20.49 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.4037, allocations: 37.69 kB / 0.5915 GB, free: 20.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.25e-05/0.4038, allocations: 94.8 kB / 0.5916 GB, free: 20.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.726e-05/0.4038, allocations: 43.44 kB / 0.5916 GB, free: 20.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.4039, allocations: 105.7 kB / 0.5917 GB, free: 20.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.095e-05/0.404, allocations: 324.9 kB / 0.592 GB, free: 19.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.4042, allocations: 88.19 kB / 0.5921 GB, free: 19.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.4044, allocations: 148.7 kB / 0.5923 GB, free: 19.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.4047, allocations: 251.5 kB / 0.5925 GB, free: 19.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.4047, allocations: 0 / 0.5925 GB, free: 19.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005568/0.4052, allocations: 410.9 kB / 0.5929 GB, free: 18.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.78e-05/0.4053, allocations: 73.73 kB / 0.593 GB, free: 18.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4053, allocations: 4 kB / 0.593 GB, free: 18.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.4053, allocations: 1.812 kB / 0.593 GB, free: 18.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.4055, allocations: 35.91 kB / 0.593 GB, free: 18.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.4055, allocations: 0 / 0.593 GB, free: 18.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004375/0.406, allocations: 59.98 kB / 0.5931 GB, free: 18.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.011e-05/0.406, allocations: 51.98 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.0001607/0.4062, allocations: 178.5 kB / 0.5933 GB, free: 18.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.582e-05/0.4062, allocations: 31.64 kB / 0.5933 GB, free: 18.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.284e-05/0.4063, allocations: 34.25 kB / 0.5934 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.4063, allocations: 0 / 0.5934 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4063, allocations: 3.938 kB / 0.5934 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.4063, allocations: 0.875 kB / 0.5934 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007467/0.4071, allocations: 0.5645 MB / 0.5939 GB, free: 17.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.4071, allocations: 0.5 kB / 0.5939 GB, free: 17.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.413e-05/0.4071, allocations: 8.922 kB / 0.5939 GB, free: 17.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.798e-06/0.4072, allocations: 4 kB / 0.5939 GB, free: 17.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.836e-05/0.4072, allocations: 13.11 kB / 0.5939 GB, free: 17.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.4072, allocations: 0 / 0.5939 GB, free: 17.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4072, allocations: 4 kB / 0.5939 GB, free: 17.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003493/0.4076, allocations: 325.4 kB / 0.5943 GB, free: 17.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.4077, allocations: 156.6 kB / 0.5944 GB, free: 17.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.4078, allocations: 8 kB / 0.5944 GB, free: 17.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.408, allocations: 11.98 kB / 0.5944 GB, free: 17.28 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.353e-05/0.4081, allocations: 17.39 kB / 0.5944 GB, free: 17.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.969e-05/0.4081, allocations: 31.97 kB / 0.5945 GB, free: 17.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001432/0.4083, allocations: 205.9 kB / 0.5947 GB, free: 17.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4083, allocations: 1.375 kB / 0.5947 GB, free: 17.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000298/0.4086, allocations: 51.98 kB / 0.5947 GB, free: 16.98 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.0001326/0.4087, allocations: 113.7 kB / 0.5948 GB, free: 16.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004998/0.4092, allocations: 346.5 kB / 0.5952 GB, free: 16.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4092, allocations: 0.6875 kB / 0.5952 GB, free: 16.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.4094, allocations: 83.88 kB / 0.5952 GB, free: 16.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.4097, allocations: 24.19 kB / 0.5953 GB, free: 16.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005814/0.4103, allocations: 378.6 kB / 0.5956 GB, free: 16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001685/0.4105, allocations: 0.7396 MB / 0.5963 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.4106, allocations: 40.2 kB / 0.5964 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.4107, allocations: 37.36 kB / 0.5964 GB, free: 15.17 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4107, allocations: 1.25 kB / 0.5964 GB, free: 15.17 MB / 446.1 MB Notification: Performance of Templates: time 0.006413/0.4171, allocations: 4.096 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 gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)