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: "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001387/0.001387, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.488/1.488, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8143/0.8143, allocations: 132.2 MB / 422.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 58.91 kB / 0.5012 GB, free: 4.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.525/0.5263, allocations: 80.19 MB / 0.5795 GB, free: 4.434 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.00304/0.5293, allocations: 1.542 MB / 0.581 GB, free: 3.359 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.5305, allocations: 448.9 kB / 0.5814 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.887e-05/0.5305, allocations: 0.5938 kB / 0.5814 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.5307, allocations: 5.812 kB / 0.5814 GB, free: 3.07 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.5308, allocations: 27.39 kB / 0.5815 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007014/0.5315, allocations: 216.2 kB / 0.5817 GB, free: 2.949 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004314/0.5319, allocations: 287.7 kB / 0.5819 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.823e-05/0.532, allocations: 10 kB / 0.5819 GB, free: 2.848 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003811/0.5324, allocations: 208.2 kB / 0.5821 GB, free: 2.797 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002771/0.5327, allocations: 125 kB / 0.5823 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.726e-05/0.5328, allocations: 13.16 kB / 0.5823 GB, free: 2.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.688e-05/0.5329, allocations: 9.938 kB / 0.5823 GB, free: 2.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.533, allocations: 74.61 kB / 0.5824 GB, free: 2.727 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002197/0.5333, allocations: 122.8 kB / 0.5825 GB, free: 2.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004828/0.5337, allocations: 276.9 kB / 0.5827 GB, free: 2.562 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.5338, allocations: 0.7031 kB / 0.5827 GB, free: 2.562 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.5338, allocations: 0 / 0.5827 GB, free: 2.562 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.5338, allocations: 1.281 kB / 0.5827 GB, free: 2.562 MB / 430.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.001444/0.5352, allocations: 0.7021 MB / 0.5834 GB, free: 1.953 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.5353, allocations: 9.5 kB / 0.5834 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.582e-05/0.5354, allocations: 43.45 kB / 0.5835 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.5355, allocations: 30.64 kB / 0.5835 GB, free: 1.895 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.5359, allocations: 265.8 kB / 0.5838 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.5359, allocations: 8.719 kB / 0.5838 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.982e-05/0.536, allocations: 19.27 kB / 0.5838 GB, free: 1.645 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.5364, allocations: 153.6 kB / 0.5839 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.5364, allocations: 0.75 kB / 0.5839 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.5364, allocations: 2.062 kB / 0.5839 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.5364, allocations: 1.656 kB / 0.5839 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001534/0.5366, allocations: 53.47 kB / 0.584 GB, free: 1.562 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003899/0.537, allocations: 316.1 kB / 0.5843 GB, free: 1.316 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.5373, allocations: 124.1 kB / 0.5844 GB, free: 1.262 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.5375, allocations: 57.59 kB / 0.5845 GB, free: 1.238 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.5375, allocations: 2.75 kB / 0.5845 GB, free: 1.238 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005642/0.5381, allocations: 231 kB / 0.5847 GB, free: 1.141 MB / 430.1 MB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/0.5381, allocations: 0 / 0.5847 GB, free: 1.141 MB / 430.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007043/0.5388, allocations: 272.2 kB / 0.5849 GB, free: 1.043 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.5388, allocations: 66.72 kB / 0.585 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003911/0.5392, allocations: 286.9 kB / 0.5853 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/0.5393, allocations: 38.08 kB / 0.5853 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.511e-05/0.5394, allocations: 91.52 kB / 0.5854 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.72e-05/0.5395, allocations: 47.58 kB / 0.5854 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.5397, allocations: 106.3 kB / 0.5856 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.5398, allocations: 322.1 kB / 0.5859 GB, free: 300 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/0.5401, allocations: 91.02 kB / 0.5859 GB, free: 276 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/0.5404, allocations: 152.4 kB / 0.5861 GB, free: 180 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.5409, allocations: 243.8 kB / 0.5863 GB, free: 15.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.5409, allocations: 5.312 kB / 0.5863 GB, free: 15.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009814/0.5419, allocations: 410 kB / 0.5867 GB, free: 15.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.211e-05/0.542, allocations: 76.33 kB / 0.5868 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.542, allocations: 2.562 kB / 0.5868 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.542, allocations: 10.62 kB / 0.5868 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.5423, allocations: 31.81 kB / 0.5868 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.5423, allocations: 2.609 kB / 0.5868 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005872/0.5429, allocations: 56.22 kB / 0.5869 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.543, allocations: 54.72 kB / 0.5869 GB, free: 15.71 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.0002781/0.5433, allocations: 174.3 kB / 0.5871 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.905e-05/0.5434, allocations: 32.16 kB / 0.5871 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.75e-05/0.5434, allocations: 36.41 kB / 0.5872 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.5435, allocations: 2.406 kB / 0.5872 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.5435, allocations: 1.375 kB / 0.5872 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.5435, allocations: 1.312 kB / 0.5872 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.5445, allocations: 0.5594 MB / 0.5877 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.5446, allocations: 4 kB / 0.5877 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.932e-05/0.5446, allocations: 7.656 kB / 0.5877 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.5446, allocations: 1.219 kB / 0.5877 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.5447, allocations: 15.67 kB / 0.5878 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.5447, allocations: 1.375 kB / 0.5878 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5447, allocations: 0.6562 kB / 0.5878 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005296/0.5452, allocations: 325.8 kB / 0.5881 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.5454, allocations: 158.2 kB / 0.5882 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.072e-05/0.5455, allocations: 9.609 kB / 0.5882 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.5458, allocations: 10.22 kB / 0.5882 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-05/0.5459, allocations: 26.09 kB / 0.5883 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.737e-05/0.5459, allocations: 29.17 kB / 0.5883 GB, free: 14.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002641/0.5462, allocations: 208.2 kB / 0.5885 GB, free: 14.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5462, allocations: 0 / 0.5885 GB, free: 14.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003726/0.5466, allocations: 52.56 kB / 0.5885 GB, free: 14.68 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.000937/0.5475, allocations: 0.864 MB / 0.5894 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008085/0.5483, allocations: 343.7 kB / 0.5897 GB, free: 13.76 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5483, allocations: 3.938 kB / 0.5897 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000206/0.5486, allocations: 69.7 kB / 0.5898 GB, free: 13.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.549, allocations: 28.44 kB / 0.5898 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00434/0.5533, allocations: 2.465 MB / 0.5922 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.5538, allocations: 0.745 MB / 0.5929 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.554, allocations: 34.34 kB / 0.593 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.5541, allocations: 55.11 kB / 0.593 GB, free: 11.17 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5541, allocations: 0 / 0.593 GB, free: 11.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.5743, allocations: 5.098 MB / 0.598 GB, free: 9.262 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.5745, allocations: 175 kB / 0.5982 GB, free: 9.012 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/2.35, allocations: 0 / 0.5982 GB, free: 9.012 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)