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.005213/0.005213, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001177/0.001178, allocations: 186.8 kB / 16.67 MB, free: 5.973 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9466/0.9466, allocations: 135.1 MB / 425.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001448, allocations: 55.91 kB / 0.5856 GB, free: 3.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.507/0.5085, allocations: 80.92 MB / 0.6646 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002588/0.5111, allocations: 1.476 MB / 0.6661 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009175/0.512, allocations: 423.6 kB / 0.6665 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.658e-05/0.5121, allocations: 5.469 kB / 0.6665 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.5123, allocations: 7.922 kB / 0.6665 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.5124, allocations: 19.92 kB / 0.6665 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007695/0.5132, allocations: 236.3 kB / 0.6667 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003704/0.5136, allocations: 323.4 kB / 0.667 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.283e-05/0.5136, allocations: 4.5 kB / 0.667 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003189/0.5139, allocations: 191 kB / 0.6672 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002516/0.5142, allocations: 112.5 kB / 0.6673 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.02e-05/0.5143, allocations: 18.53 kB / 0.6673 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.318e-05/0.5143, allocations: 17.19 kB / 0.6674 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.5144, allocations: 86.17 kB / 0.6674 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.5146, allocations: 119.7 kB / 0.6675 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000298/0.5149, allocations: 281.9 kB / 0.6678 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.5149, allocations: 0 / 0.6678 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5149, allocations: 3.938 kB / 0.6678 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.779e-05/0.5149, allocations: 0 / 0.6678 GB, free: 5.27 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.001187/0.5161, allocations: 0.7018 MB / 0.6685 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.5162, allocations: 9.062 kB / 0.6685 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.5163, allocations: 35.05 kB / 0.6685 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/0.5166, allocations: 255.2 kB / 0.6688 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.5166, allocations: 15.08 kB / 0.6688 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.264e-05/0.5167, allocations: 23.06 kB / 0.6688 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/0.517, allocations: 144 kB / 0.669 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.517, allocations: 1.562 kB / 0.669 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/0.517, allocations: 8 kB / 0.669 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.517, allocations: 5.297 kB / 0.669 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.5172, allocations: 47.75 kB / 0.669 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000299/0.5175, allocations: 316.3 kB / 0.6693 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.5178, allocations: 133.5 kB / 0.6695 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.5179, allocations: 55.12 kB / 0.6695 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.5179, allocations: 9.453 kB / 0.6695 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003984/0.5183, allocations: 209.7 kB / 0.6697 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.964e-06/0.5183, allocations: 5.469 kB / 0.6697 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.000578/0.5189, allocations: 276 kB / 0.67 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.519, allocations: 60.62 kB / 0.67 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.5192, allocations: 286.1 kB / 0.6703 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.339e-05/0.5193, allocations: 40.31 kB / 0.6704 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.731e-05/0.5193, allocations: 90.8 kB / 0.6704 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.408e-05/0.5194, allocations: 49.81 kB / 0.6705 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.5195, allocations: 104.5 kB / 0.6706 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.731e-05/0.5196, allocations: 325.4 kB / 0.6709 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.5198, allocations: 95.36 kB / 0.671 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.52, allocations: 146.9 kB / 0.6711 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000281/0.5203, allocations: 248.4 kB / 0.6714 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.5203, allocations: 0 / 0.6714 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006542/0.521, allocations: 404.9 kB / 0.6717 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.136e-05/0.5211, allocations: 76.14 kB / 0.6718 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.5211, allocations: 1.156 kB / 0.6718 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.5211, allocations: 3.312 kB / 0.6718 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.5213, allocations: 36.47 kB / 0.6719 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.5213, allocations: 3.188 kB / 0.6719 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004803/0.5218, allocations: 55.36 kB / 0.6719 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.249e-05/0.5219, allocations: 49.83 kB / 0.672 GB, free: 2 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.0001519/0.522, allocations: 178.6 kB / 0.6721 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.536e-05/0.5221, allocations: 31.97 kB / 0.6722 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.71e-05/0.5221, allocations: 35.78 kB / 0.6722 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.5221, allocations: 6.531 kB / 0.6722 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5222, allocations: 0 / 0.6722 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.5222, allocations: 1.312 kB / 0.6722 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007049/0.5229, allocations: 0.5546 MB / 0.6727 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.5229, allocations: 0 / 0.6727 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.971e-05/0.5229, allocations: 13.8 kB / 0.6728 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.5229, allocations: 1.125 kB / 0.6728 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/0.523, allocations: 14.83 kB / 0.6728 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.523, allocations: 0 / 0.6728 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.523, allocations: 5.062 kB / 0.6728 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.5234, allocations: 321.3 kB / 0.6731 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.5235, allocations: 155.8 kB / 0.6732 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.606e-05/0.5236, allocations: 8.125 kB / 0.6732 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.5238, allocations: 17.39 kB / 0.6733 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.5239, allocations: 16.94 kB / 0.6733 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/0.524, allocations: 30.67 kB / 0.6733 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001792/0.5241, allocations: 209.7 kB / 0.6735 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.71e-07/0.5241, allocations: 1.062 kB / 0.6735 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003483/0.5245, allocations: 46.62 kB / 0.6736 GB, free: 0.7852 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.0001278/0.5246, allocations: 118.2 kB / 0.6737 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005093/0.5252, allocations: 348.6 kB / 0.674 GB, free: 460 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5252, allocations: 0 / 0.674 GB, free: 460 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.5253, allocations: 80.52 kB / 0.6741 GB, free: 424 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.5256, allocations: 35.39 kB / 0.6741 GB, free: 396 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006092/0.5263, allocations: 386.6 kB / 0.6745 GB, free: 120 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.5266, allocations: 0.7392 MB / 0.6752 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000107/0.5267, allocations: 38.77 kB / 0.6752 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.5268, allocations: 36.73 kB / 0.6753 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of SimCode: time 3.2e-07/0.5268, allocations: 7.875 kB / 0.6753 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of Templates: time 0.008418/0.5352, allocations: 4.099 MB / 0.6793 GB, free: 13.3 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)