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.007179/0.007179, allocations: 100.7 kB / 15.73 MB, free: 6.438 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.001655/0.001655, allocations: 194.9 kB / 16.68 MB, free: 6.355 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9819/0.9819, allocations: 135.1 MB / 425.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 59.91 kB / 0.5856 GB, free: 3.426 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.477/0.4783, allocations: 80.91 MB / 0.6646 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002206/0.4805, allocations: 1.479 MB / 0.666 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008716/0.4814, allocations: 431.8 kB / 0.6665 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.023e-05/0.4815, allocations: 1.156 kB / 0.6665 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.4816, allocations: 3.938 kB / 0.6665 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.4817, allocations: 24.41 kB / 0.6665 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006918/0.4824, allocations: 242.5 kB / 0.6667 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003821/0.4828, allocations: 316.2 kB / 0.667 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.791e-05/0.4829, allocations: 8.203 kB / 0.667 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.4831, allocations: 192 kB / 0.6672 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.4834, allocations: 111.7 kB / 0.6673 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.934e-05/0.4834, allocations: 21.44 kB / 0.6673 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.957e-05/0.4835, allocations: 18.31 kB / 0.6674 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.4836, allocations: 77.88 kB / 0.6674 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.4838, allocations: 123.2 kB / 0.6675 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.4841, allocations: 273.7 kB / 0.6678 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4841, allocations: 1.25 kB / 0.6678 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.924e-06/0.4841, allocations: 0 / 0.6678 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.227e-06/0.4841, allocations: 0 / 0.6678 GB, free: 5.254 MB / 0.4981 GB 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.001204/0.4853, allocations: 0.709 MB / 0.6685 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4854, allocations: 8.656 kB / 0.6685 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.4855, allocations: 31.56 kB / 0.6685 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.4858, allocations: 263.6 kB / 0.6688 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.4858, allocations: 7.469 kB / 0.6688 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.404e-05/0.4859, allocations: 25.61 kB / 0.6688 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002812/0.4862, allocations: 149.3 kB / 0.669 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.4862, allocations: 4 kB / 0.669 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.4862, allocations: 1.344 kB / 0.669 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4862, allocations: 1.438 kB / 0.669 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.4864, allocations: 49.73 kB / 0.669 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003047/0.4867, allocations: 315.8 kB / 0.6693 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.487, allocations: 129.3 kB / 0.6694 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.4871, allocations: 63.7 kB / 0.6695 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.4871, allocations: 1.219 kB / 0.6695 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004172/0.4876, allocations: 221.6 kB / 0.6697 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/0.4876, allocations: 1.469 kB / 0.6697 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005672/0.4881, allocations: 267.1 kB / 0.67 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.4882, allocations: 67.47 kB / 0.67 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.4884, allocations: 286.9 kB / 0.6703 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.68e-05/0.4885, allocations: 36.36 kB / 0.6703 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.002e-05/0.4886, allocations: 93.94 kB / 0.6704 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.4886, allocations: 47.08 kB / 0.6705 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.4888, allocations: 108.5 kB / 0.6706 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.829e-05/0.4888, allocations: 325.7 kB / 0.6709 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.489, allocations: 90.3 kB / 0.671 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.4893, allocations: 151.1 kB / 0.6711 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/0.4896, allocations: 244.4 kB / 0.6714 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4896, allocations: 0 / 0.6714 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006614/0.4903, allocations: 410.3 kB / 0.6717 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.315e-05/0.4903, allocations: 75.94 kB / 0.6718 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4903, allocations: 1.469 kB / 0.6718 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.4904, allocations: 3.969 kB / 0.6718 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.4906, allocations: 28.33 kB / 0.6719 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.4906, allocations: 10.28 kB / 0.6719 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005441/0.4911, allocations: 55.14 kB / 0.6719 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-05/0.4912, allocations: 58.73 kB / 0.672 GB, free: 1.965 MB / 0.4981 GB 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.0001694/0.4914, allocations: 179.2 kB / 0.6721 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.641e-05/0.4914, allocations: 31.41 kB / 0.6722 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.727e-05/0.4915, allocations: 27.91 kB / 0.6722 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4915, allocations: 2.281 kB / 0.6722 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4915, allocations: 3.984 kB / 0.6722 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.4915, allocations: 1.062 kB / 0.6722 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000713/0.4923, allocations: 0.5557 MB / 0.6727 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4923, allocations: 5.344 kB / 0.6728 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.596e-05/0.4923, allocations: 5.438 kB / 0.6728 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.4923, allocations: 5.234 kB / 0.6728 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.4924, allocations: 18.39 kB / 0.6728 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.4924, allocations: 1.344 kB / 0.6728 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4924, allocations: 0 / 0.6728 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003885/0.4928, allocations: 318.2 kB / 0.6731 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.4929, allocations: 154.5 kB / 0.6732 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.989e-05/0.493, allocations: 20.36 kB / 0.6733 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.4932, allocations: 9.594 kB / 0.6733 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.717e-05/0.4933, allocations: 21.73 kB / 0.6733 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.006e-05/0.4933, allocations: 30.08 kB / 0.6733 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001649/0.4935, allocations: 210.3 kB / 0.6735 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.4935, allocations: 0 / 0.6735 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003275/0.4938, allocations: 46.62 kB / 0.6736 GB, free: 0.7539 MB / 0.4981 GB 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.0001279/0.494, allocations: 121.7 kB / 0.6737 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005137/0.4945, allocations: 349.7 kB / 0.674 GB, free: 424 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4945, allocations: 0 / 0.674 GB, free: 424 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001697/0.4947, allocations: 72 kB / 0.6741 GB, free: 396 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.495, allocations: 25.75 kB / 0.6741 GB, free: 376 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006342/0.4957, allocations: 390.3 kB / 0.6745 GB, free: 96 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.496, allocations: 0.7478 MB / 0.6752 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001195/0.4961, allocations: 35 kB / 0.6752 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.4962, allocations: 36.41 kB / 0.6753 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of SimCode: time 4.41e-07/0.4962, allocations: 0 / 0.6753 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of Templates: time 0.007831/0.5041, allocations: 4.099 MB / 0.6793 GB, free: 13.28 MB / 0.5137 GB 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)