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.007631/0.007631, allocations: 103.2 kB / 15.73 MB, free: 5.957 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.001653/0.001653, allocations: 191.4 kB / 16.67 MB, free: 5.887 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8562/0.8562, allocations: 132.2 MB / 422.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 62.12 kB / 0.5813 GB, free: 23.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1951, allocations: 80.22 MB / 0.6596 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002602/0.1977, allocations: 1.471 MB / 0.6611 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001011/0.1987, allocations: 423.3 kB / 0.6615 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.393e-05/0.1988, allocations: 0 / 0.6615 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.1989, allocations: 3.938 kB / 0.6615 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.199, allocations: 32.22 kB / 0.6615 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.1998, allocations: 252.4 kB / 0.6618 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003436/0.2001, allocations: 311.5 kB / 0.662 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.575e-05/0.2002, allocations: 8 kB / 0.6621 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.2004, allocations: 191.7 kB / 0.6622 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.2007, allocations: 112 kB / 0.6623 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.497e-05/0.2007, allocations: 20 kB / 0.6624 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.583e-05/0.2008, allocations: 23.94 kB / 0.6624 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.2009, allocations: 79.72 kB / 0.6625 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.2011, allocations: 127.4 kB / 0.6626 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.2014, allocations: 275.1 kB / 0.6628 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2014, allocations: 0 / 0.6628 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2014, allocations: 0 / 0.6628 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.2014, allocations: 4 kB / 0.6629 GB, free: 7.023 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.001179/0.2026, allocations: 0.696 MB / 0.6635 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.2026, allocations: 16.03 kB / 0.6635 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.91e-05/0.2027, allocations: 28.66 kB / 0.6636 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003105/0.203, allocations: 263.5 kB / 0.6638 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.2031, allocations: 12.38 kB / 0.6638 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.2031, allocations: 23.92 kB / 0.6639 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002855/0.2034, allocations: 148.7 kB / 0.664 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.2034, allocations: 0 / 0.664 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.2035, allocations: 4 kB / 0.664 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.2035, allocations: 0 / 0.664 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001423/0.2036, allocations: 47.97 kB / 0.6641 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003227/0.2039, allocations: 309.4 kB / 0.6643 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.2042, allocations: 142.7 kB / 0.6645 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.2044, allocations: 52.84 kB / 0.6645 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.213e-05/0.2044, allocations: 7.984 kB / 0.6645 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004316/0.2049, allocations: 225 kB / 0.6648 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.2049, allocations: 0 / 0.6648 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005687/0.2055, allocations: 275.3 kB / 0.665 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.2055, allocations: 55.41 kB / 0.6651 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.2058, allocations: 294.9 kB / 0.6654 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.2058, allocations: 41.69 kB / 0.6654 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.658e-05/0.2059, allocations: 89.14 kB / 0.6655 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.206, allocations: 39.59 kB / 0.6655 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.2061, allocations: 105.6 kB / 0.6656 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.2063, allocations: 322.8 kB / 0.6659 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.2065, allocations: 96.11 kB / 0.666 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.2067, allocations: 150.3 kB / 0.6662 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.2071, allocations: 244.1 kB / 0.6664 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.2071, allocations: 0 / 0.6664 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006399/0.2077, allocations: 408.6 kB / 0.6668 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.025e-05/0.2078, allocations: 75.39 kB / 0.6669 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.505e-06/0.2078, allocations: 4 kB / 0.6669 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.2078, allocations: 7.938 kB / 0.6669 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.208, allocations: 28.09 kB / 0.6669 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.208, allocations: 8 kB / 0.6669 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004533/0.2085, allocations: 59.73 kB / 0.667 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.217e-05/0.2086, allocations: 55.98 kB / 0.667 GB, free: 2.43 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.0001763/0.2087, allocations: 165.8 kB / 0.6672 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.089e-05/0.2088, allocations: 27.66 kB / 0.6672 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.893e-05/0.2089, allocations: 42.25 kB / 0.6672 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2089, allocations: 0 / 0.6672 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2089, allocations: 0 / 0.6672 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.2089, allocations: 7.938 kB / 0.6672 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007603/0.2097, allocations: 0.5566 MB / 0.6678 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2097, allocations: 0 / 0.6678 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.944e-05/0.2097, allocations: 19.92 kB / 0.6678 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2097, allocations: 0 / 0.6678 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/0.2098, allocations: 7.984 kB / 0.6678 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.2098, allocations: 4 kB / 0.6678 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2098, allocations: 4 kB / 0.6678 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004171/0.2102, allocations: 320.9 kB / 0.6681 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.2104, allocations: 152.8 kB / 0.6683 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.2104, allocations: 11.98 kB / 0.6683 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.2106, allocations: 11.98 kB / 0.6683 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.12e-05/0.2107, allocations: 15.98 kB / 0.6683 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.2107, allocations: 27.98 kB / 0.6683 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000176/0.2109, allocations: 213.9 kB / 0.6685 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2109, allocations: 0 / 0.6685 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002924/0.2112, allocations: 48 kB / 0.6686 GB, free: 0.7188 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.0001323/0.2114, allocations: 114.2 kB / 0.6687 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005306/0.2119, allocations: 350.4 kB / 0.669 GB, free: 232 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2119, allocations: 0 / 0.669 GB, free: 232 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.2121, allocations: 74.06 kB / 0.6691 GB, free: 160 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.2124, allocations: 36.83 kB / 0.6691 GB, free: 120 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006562/0.2131, allocations: 371.6 kB / 0.6695 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.2134, allocations: 0.7435 MB / 0.6702 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001144/0.2135, allocations: 37.42 kB / 0.6703 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.2136, allocations: 35.42 kB / 0.6703 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of SimCode: time 1.91e-07/0.2136, allocations: 0 / 0.6703 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of Templates: time 0.007246/0.2209, allocations: 4.12 MB / 0.6743 GB, free: 10.81 MB / 0.5137 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)