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.0012/0.0012, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.977/0.977, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 56.03 kB / 0.5054 GB, free: 5.258 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1942, allocations: 80.94 MB / 0.5845 GB, free: 4.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.003691/0.198, allocations: 1.467 MB / 0.5859 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.1991, allocations: 420.6 kB / 0.5863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.772e-05/0.1992, allocations: 0 / 0.5863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.1994, allocations: 7.875 kB / 0.5863 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.1995, allocations: 32.22 kB / 0.5863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009043/0.2004, allocations: 238.5 kB / 0.5866 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005189/0.201, allocations: 323.5 kB / 0.5869 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.965e-05/0.201, allocations: 4 kB / 0.5869 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003376/0.2014, allocations: 191.7 kB / 0.5871 GB, free: 1.816 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.2016, allocations: 104.1 kB / 0.5872 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.658e-05/0.2017, allocations: 16 kB / 0.5872 GB, free: 1.699 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.504e-05/0.2018, allocations: 20 kB / 0.5872 GB, free: 1.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.202, allocations: 79.78 kB / 0.5873 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001766/0.2021, allocations: 127.4 kB / 0.5874 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.2025, allocations: 283.3 kB / 0.5877 GB, free: 1.199 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2025, allocations: 0 / 0.5877 GB, free: 1.199 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2025, allocations: 0 / 0.5877 GB, free: 1.199 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.2025, allocations: 0 / 0.5877 GB, free: 1.199 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.001283/0.2038, allocations: 0.696 MB / 0.5883 GB, free: 440 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.2039, allocations: 12.03 kB / 0.5884 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.442e-05/0.2039, allocations: 42.73 kB / 0.5884 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.717e-05/0.204, allocations: 36.59 kB / 0.5884 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003361/0.2044, allocations: 263.6 kB / 0.5887 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.2044, allocations: 12.12 kB / 0.5887 GB, free: 24 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-05/0.2045, allocations: 16 kB / 0.5887 GB, free: 8 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.2048, allocations: 145.5 kB / 0.5888 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2048, allocations: 0 / 0.5888 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.2049, allocations: 7.984 kB / 0.5889 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.2049, allocations: 0 / 0.5889 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.205, allocations: 47.97 kB / 0.5889 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000388/0.2054, allocations: 313.3 kB / 0.5892 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.2057, allocations: 130.6 kB / 0.5893 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.2059, allocations: 60.77 kB / 0.5894 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.2059, allocations: 4 kB / 0.5894 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005466/0.2065, allocations: 222.8 kB / 0.5896 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.914e-06/0.2065, allocations: 4 kB / 0.5896 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006151/0.2071, allocations: 265.2 kB / 0.5899 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.2072, allocations: 67.3 kB / 0.5899 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.2075, allocations: 290.9 kB / 0.5902 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.2075, allocations: 33.7 kB / 0.5902 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.581e-05/0.2076, allocations: 97.12 kB / 0.5903 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.2077, allocations: 39.5 kB / 0.5904 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.2079, allocations: 105.7 kB / 0.5905 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.208, allocations: 322.8 kB / 0.5908 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.2082, allocations: 96.17 kB / 0.5909 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.2085, allocations: 155.7 kB / 0.591 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003356/0.2088, allocations: 247.1 kB / 0.5912 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.2088, allocations: 3.938 kB / 0.5912 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007261/0.2095, allocations: 426 kB / 0.5917 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.457e-05/0.2096, allocations: 71.39 kB / 0.5917 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2097, allocations: 0 / 0.5917 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/0.2097, allocations: 7.984 kB / 0.5917 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.2099, allocations: 32.09 kB / 0.5918 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.2099, allocations: 7.938 kB / 0.5918 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005437/0.2105, allocations: 59.8 kB / 0.5918 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.001e-05/0.2105, allocations: 51.98 kB / 0.5919 GB, free: 12.55 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.0002428/0.2108, allocations: 173.7 kB / 0.592 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.849e-05/0.2109, allocations: 31.66 kB / 0.5921 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.893e-05/0.2109, allocations: 30.25 kB / 0.5921 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2109, allocations: 4 kB / 0.5921 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.211, allocations: 0 / 0.5921 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.211, allocations: 0 / 0.5921 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000907/0.2119, allocations: 0.5588 MB / 0.5926 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.2119, allocations: 0 / 0.5926 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.06e-05/0.212, allocations: 15.92 kB / 0.5927 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.212, allocations: 0 / 0.5927 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.212, allocations: 15.98 kB / 0.5927 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.212, allocations: 0 / 0.5927 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.212, allocations: 0 / 0.5927 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004671/0.2125, allocations: 323 kB / 0.593 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.2127, allocations: 156.6 kB / 0.5931 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.088e-05/0.2127, allocations: 8 kB / 0.5931 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.213, allocations: 19.92 kB / 0.5932 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/0.213, allocations: 15.98 kB / 0.5932 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.2131, allocations: 31.98 kB / 0.5932 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002017/0.2133, allocations: 209.9 kB / 0.5934 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2133, allocations: 3.938 kB / 0.5934 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003353/0.2136, allocations: 55.98 kB / 0.5935 GB, free: 10.83 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.0007586/0.2144, allocations: 0.8603 MB / 0.5943 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005998/0.215, allocations: 368.7 kB / 0.5947 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.215, allocations: 0 / 0.5947 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.2152, allocations: 67.97 kB / 0.5947 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.2155, allocations: 24.81 kB / 0.5947 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003308/0.2189, allocations: 2.379 MB / 0.5971 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.2193, allocations: 0.7434 MB / 0.5978 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001653/0.2195, allocations: 41.41 kB / 0.5978 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.2197, allocations: 47.42 kB / 0.5979 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of SimCode: time 9.51e-07/0.2197, allocations: 0 / 0.5979 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.2451, allocations: 5.274 MB / 0.603 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/8.034, allocations: 9.219 kB / 0.603 GB, free: 0.9141 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)