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: "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_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.0009669/0.0009694, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0008991/0.0008991, allocations: 188.7 kB / 16.25 MB, free: 6.633 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.511/1.511, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.957/0.957, allocations: 135.1 MB / 425.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 64.83 kB / 0.505 GB, free: 5.574 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2116, allocations: 80.93 MB / 0.584 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.003691/0.2153, allocations: 1.518 MB / 0.5855 GB, free: 3.285 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.2165, allocations: 436.3 kB / 0.5859 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.889e-05/0.2166, allocations: 0 / 0.5859 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.2168, allocations: 3.938 kB / 0.5859 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.2169, allocations: 24.22 kB / 0.5859 GB, free: 2.828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008313/0.2177, allocations: 228.2 kB / 0.5861 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004521/0.2182, allocations: 307.9 kB / 0.5864 GB, free: 2.309 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.921e-05/0.2182, allocations: 8 kB / 0.5864 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004632/0.2187, allocations: 238.2 kB / 0.5867 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003082/0.219, allocations: 127.6 kB / 0.5868 GB, free: 1.945 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.882e-05/0.2191, allocations: 20 kB / 0.5868 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.191e-05/0.2192, allocations: 16 kB / 0.5868 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.2193, allocations: 83.77 kB / 0.5869 GB, free: 1.828 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.2195, allocations: 123.4 kB / 0.587 GB, free: 1.707 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.2199, allocations: 295.3 kB / 0.5873 GB, free: 1.418 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2199, allocations: 0 / 0.5873 GB, free: 1.418 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2199, allocations: 0 / 0.5873 GB, free: 1.418 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.2199, allocations: 0 / 0.5873 GB, free: 1.418 MB / 494.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.00136/0.2213, allocations: 0.7036 MB / 0.588 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.2214, allocations: 8.031 kB / 0.588 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.642e-05/0.2214, allocations: 38.56 kB / 0.588 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.2216, allocations: 35.7 kB / 0.5881 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.2219, allocations: 250.4 kB / 0.5883 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.2219, allocations: 15.92 kB / 0.5883 GB, free: 256 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.997e-05/0.222, allocations: 16 kB / 0.5883 GB, free: 240 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.2223, allocations: 149.5 kB / 0.5885 GB, free: 84 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2223, allocations: 4 kB / 0.5885 GB, free: 80 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.789e-05/0.2224, allocations: 7.922 kB / 0.5885 GB, free: 72 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.2224, allocations: 4 kB / 0.5885 GB, free: 68 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.2225, allocations: 47.98 kB / 0.5885 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004463/0.223, allocations: 313.3 kB / 0.5888 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.2233, allocations: 134.6 kB / 0.589 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.2235, allocations: 60.83 kB / 0.589 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.2235, allocations: 0 / 0.589 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005328/0.2241, allocations: 228 kB / 0.5892 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 3.797e-06/0.2241, allocations: 3.984 kB / 0.5892 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006542/0.2247, allocations: 267.4 kB / 0.5895 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.2248, allocations: 63.31 kB / 0.5895 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.2251, allocations: 290.9 kB / 0.5898 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.379e-05/0.2252, allocations: 41.7 kB / 0.5899 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.545e-05/0.2253, allocations: 89.14 kB / 0.5899 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.868e-05/0.2253, allocations: 43.5 kB / 0.59 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.2255, allocations: 105.7 kB / 0.5901 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.2257, allocations: 326.8 kB / 0.5904 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002369/0.2259, allocations: 92.17 kB / 0.5905 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002578/0.2262, allocations: 158.3 kB / 0.5906 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003731/0.2266, allocations: 242.4 kB / 0.5909 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.2266, allocations: 7.938 kB / 0.5909 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007535/0.2274, allocations: 417.5 kB / 0.5913 GB, free: 13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.862e-05/0.2274, allocations: 71.39 kB / 0.5913 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.2275, allocations: 4 kB / 0.5914 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.2275, allocations: 3.938 kB / 0.5914 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.2277, allocations: 31.97 kB / 0.5914 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.2277, allocations: 3.938 kB / 0.5914 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005368/0.2282, allocations: 59.8 kB / 0.5914 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.751e-05/0.2283, allocations: 56.02 kB / 0.5915 GB, free: 12.76 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.0002079/0.2285, allocations: 169.8 kB / 0.5917 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.859e-05/0.2286, allocations: 27.7 kB / 0.5917 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.772e-05/0.2287, allocations: 34.19 kB / 0.5917 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.2287, allocations: 0 / 0.5917 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.2287, allocations: 0 / 0.5917 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.2287, allocations: 0 / 0.5917 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008685/0.2296, allocations: 0.5645 MB / 0.5923 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2296, allocations: 0 / 0.5923 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.868e-05/0.2296, allocations: 15.92 kB / 0.5923 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.2296, allocations: 4 kB / 0.5923 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.2297, allocations: 11.98 kB / 0.5923 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.2297, allocations: 7.938 kB / 0.5923 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2297, allocations: 0 / 0.5923 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004461/0.2302, allocations: 317 kB / 0.5926 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001779/0.2303, allocations: 156.6 kB / 0.5928 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.118e-05/0.2304, allocations: 15.98 kB / 0.5928 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.2306, allocations: 15.98 kB / 0.5928 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.257e-05/0.2307, allocations: 11.98 kB / 0.5928 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.169e-05/0.2308, allocations: 27.98 kB / 0.5928 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001933/0.231, allocations: 209.9 kB / 0.593 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.231, allocations: 0 / 0.593 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003373/0.2313, allocations: 48 kB / 0.5931 GB, free: 11.05 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.0008078/0.2321, allocations: 0.8728 MB / 0.5939 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006108/0.2328, allocations: 350.5 kB / 0.5943 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.2328, allocations: 0 / 0.5943 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.2329, allocations: 74.56 kB / 0.5943 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.2333, allocations: 25.19 kB / 0.5944 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/0.2366, allocations: 2.462 MB / 0.5968 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.237, allocations: 0.7473 MB / 0.5975 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001541/0.2371, allocations: 45.41 kB / 0.5975 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.2373, allocations: 43.42 kB / 0.5976 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.2373, allocations: 0 / 0.5976 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01875/0.2561, allocations: 5.244 MB / 0.6027 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/0.2563, allocations: 192.6 kB / 0.6029 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.016/2.272, allocations: 0 / 0.6029 GB, free: 0.8789 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)