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.005853/0.005853, allocations: 100.8 kB / 15.73 MB, free: 5.992 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.00109/0.00109, allocations: 194.9 kB / 16.67 MB, free: 5.93 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8009/0.8009, allocations: 132.2 MB / 422.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.91 kB / 0.5813 GB, free: 7.637 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4854/0.4866, allocations: 80.2 MB / 0.6596 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.00306/0.4897, allocations: 1.478 MB / 0.6611 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001128/0.4909, allocations: 420.7 kB / 0.6615 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.491, allocations: 1.375 kB / 0.6615 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.4912, allocations: 10.22 kB / 0.6615 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.4913, allocations: 26.66 kB / 0.6615 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009188/0.4923, allocations: 244.4 kB / 0.6617 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005847/0.4929, allocations: 318 kB / 0.6621 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.251e-05/0.4929, allocations: 6.656 kB / 0.6621 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004271/0.4934, allocations: 193.6 kB / 0.6622 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003311/0.4937, allocations: 109.8 kB / 0.6623 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.747e-05/0.4938, allocations: 18.19 kB / 0.6624 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.802e-05/0.4939, allocations: 22.62 kB / 0.6624 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.494, allocations: 77.38 kB / 0.6625 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.4942, allocations: 123.4 kB / 0.6626 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003354/0.4945, allocations: 278.1 kB / 0.6628 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.4945, allocations: 4 kB / 0.6628 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.273e-06/0.4945, allocations: 0 / 0.6628 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.743e-05/0.4946, allocations: 0 / 0.6628 GB, free: 8.344 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.00132/0.4959, allocations: 0.694 MB / 0.6635 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.4959, allocations: 12.69 kB / 0.6635 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.4961, allocations: 35.41 kB / 0.6636 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.4963, allocations: 267 kB / 0.6638 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.4964, allocations: 16.28 kB / 0.6638 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/0.4964, allocations: 17.31 kB / 0.6639 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.4967, allocations: 150.8 kB / 0.664 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4968, allocations: 0 / 0.664 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.4968, allocations: 1.531 kB / 0.664 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.4968, allocations: 1.375 kB / 0.664 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.4969, allocations: 50.25 kB / 0.6641 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003222/0.4973, allocations: 315.5 kB / 0.6644 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.4976, allocations: 134.1 kB / 0.6645 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.4977, allocations: 54.61 kB / 0.6645 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.4977, allocations: 1.375 kB / 0.6645 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004393/0.4982, allocations: 226.3 kB / 0.6647 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.4982, allocations: 0 / 0.6647 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005962/0.4988, allocations: 267.6 kB / 0.665 GB, free: 6.578 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.4988, allocations: 64.42 kB / 0.6651 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.4991, allocations: 286.9 kB / 0.6653 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.256e-05/0.4992, allocations: 35.8 kB / 0.6654 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.4992, allocations: 102.2 kB / 0.6655 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.864e-05/0.4993, allocations: 46.69 kB / 0.6655 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.4995, allocations: 107.7 kB / 0.6656 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.4995, allocations: 321.8 kB / 0.6659 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.4998, allocations: 94.48 kB / 0.666 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.5, allocations: 142.1 kB / 0.6662 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/0.5003, allocations: 247.7 kB / 0.6664 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5003, allocations: 0 / 0.6664 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006708/0.501, allocations: 412.1 kB / 0.6668 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.783e-05/0.501, allocations: 80.25 kB / 0.6669 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.5011, allocations: 6.203 kB / 0.6669 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.5011, allocations: 2.531 kB / 0.6669 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.5013, allocations: 25.23 kB / 0.6669 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.5013, allocations: 3 kB / 0.6669 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005213/0.5018, allocations: 63 kB / 0.667 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.347e-05/0.5019, allocations: 54.7 kB / 0.667 GB, free: 5.051 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.0001669/0.5021, allocations: 174.4 kB / 0.6672 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.794e-05/0.5021, allocations: 32.12 kB / 0.6672 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.5022, allocations: 27.78 kB / 0.6672 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.5022, allocations: 2.312 kB / 0.6672 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.5022, allocations: 0 / 0.6672 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.5022, allocations: 13.14 kB / 0.6672 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007096/0.5029, allocations: 0.5583 MB / 0.6678 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.5029, allocations: 0 / 0.6678 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.621e-05/0.503, allocations: 11.16 kB / 0.6678 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.503, allocations: 0 / 0.6678 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.503, allocations: 14.59 kB / 0.6678 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.503, allocations: 1.062 kB / 0.6678 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.503, allocations: 0 / 0.6678 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.5034, allocations: 332.4 kB / 0.6681 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.5036, allocations: 154.2 kB / 0.6683 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.5036, allocations: 9.094 kB / 0.6683 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.5039, allocations: 9.484 kB / 0.6683 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.5039, allocations: 20.44 kB / 0.6683 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.866e-05/0.504, allocations: 27.05 kB / 0.6683 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001628/0.5041, allocations: 210.1 kB / 0.6685 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5041, allocations: 0 / 0.6685 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003356/0.5045, allocations: 51.44 kB / 0.6686 GB, free: 3.848 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.0001268/0.5046, allocations: 115.1 kB / 0.6687 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005043/0.5051, allocations: 349.4 kB / 0.669 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5051, allocations: 0 / 0.669 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.5053, allocations: 72.22 kB / 0.6691 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.5056, allocations: 28.42 kB / 0.6691 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006228/0.5063, allocations: 385.7 kB / 0.6695 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001585/0.5064, allocations: 0.7471 MB / 0.6702 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001133/0.5066, allocations: 39.55 kB / 0.6703 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.5067, allocations: 41.28 kB / 0.6703 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.5067, allocations: 0 / 0.6703 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of Templates: time 0.007291/0.514, allocations: 4.103 MB / 0.6743 GB, free: 388 kB / 0.4981 GB 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)