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.008085/0.008085, allocations: 97.62 kB / 15.73 MB, free: 6.055 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.001365/0.001365, allocations: 198.4 kB / 16.68 MB, free: 5.961 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8373/0.8373, allocations: 135.1 MB / 425.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002663/0.002663, allocations: 64.89 kB / 0.5851 GB, free: 22.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2064, allocations: 80.92 MB / 0.6641 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.003129/0.2096, allocations: 1.483 MB / 0.6656 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.2107, allocations: 415.4 kB / 0.666 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.477e-05/0.2108, allocations: 4 kB / 0.666 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.2109, allocations: 11.86 kB / 0.666 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.211, allocations: 24.23 kB / 0.666 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008047/0.2118, allocations: 239.5 kB / 0.6662 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004105/0.2123, allocations: 319.5 kB / 0.6665 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.355e-05/0.2123, allocations: 11.98 kB / 0.6665 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.2126, allocations: 195.6 kB / 0.6667 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002637/0.2129, allocations: 104.1 kB / 0.6668 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.294e-05/0.213, allocations: 16 kB / 0.6668 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.893e-05/0.213, allocations: 20 kB / 0.6669 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.2132, allocations: 83.7 kB / 0.6669 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.2134, allocations: 119.4 kB / 0.6671 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004302/0.2138, allocations: 283.2 kB / 0.6673 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.207e-06/0.2138, allocations: 7.938 kB / 0.6673 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.876e-06/0.2138, allocations: 4 kB / 0.6673 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.155e-05/0.2138, allocations: 0 / 0.6673 GB, free: 3.031 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.001564/0.2154, allocations: 0.696 MB / 0.668 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/0.2155, allocations: 13.11 kB / 0.668 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.34e-05/0.2156, allocations: 42.67 kB / 0.6681 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.2157, allocations: 36.75 kB / 0.6681 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.2162, allocations: 263.8 kB / 0.6684 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.2162, allocations: 8.125 kB / 0.6684 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-05/0.2163, allocations: 27.98 kB / 0.6684 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004215/0.2168, allocations: 149.1 kB / 0.6685 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.2168, allocations: 0 / 0.6685 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.2168, allocations: 0 / 0.6685 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.2169, allocations: 4 kB / 0.6685 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.2171, allocations: 51.91 kB / 0.6686 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004745/0.2175, allocations: 313.4 kB / 0.6689 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003708/0.2179, allocations: 126.7 kB / 0.669 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001767/0.2181, allocations: 64.83 kB / 0.6691 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.2182, allocations: 0 / 0.6691 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005931/0.2188, allocations: 223.7 kB / 0.6693 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.873e-06/0.2188, allocations: 0 / 0.6693 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0008013/0.2196, allocations: 271 kB / 0.6695 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/0.2197, allocations: 63.39 kB / 0.6696 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000433/0.2201, allocations: 290.9 kB / 0.6699 GB, free: 208 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.305e-05/0.2202, allocations: 37.7 kB / 0.6699 GB, free: 164 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.2203, allocations: 93.12 kB / 0.67 GB, free: 68 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.496e-05/0.2204, allocations: 51.67 kB / 0.6701 GB, free: 16 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002575/0.2207, allocations: 105.8 kB / 0.6702 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2208, allocations: 326.8 kB / 0.6705 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.2211, allocations: 92.17 kB / 0.6706 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.2214, allocations: 148.7 kB / 0.6707 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.2217, allocations: 242.9 kB / 0.6709 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2217, allocations: 0 / 0.6709 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00066/0.2224, allocations: 408.7 kB / 0.6713 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.809e-05/0.2225, allocations: 75.38 kB / 0.6714 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.2225, allocations: 0 / 0.6714 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.2225, allocations: 4 kB / 0.6714 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.2227, allocations: 27.92 kB / 0.6714 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.2227, allocations: 7.984 kB / 0.6714 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005043/0.2232, allocations: 60.09 kB / 0.6715 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.175e-05/0.2233, allocations: 47.98 kB / 0.6715 GB, free: 14.4 MB / 0.5137 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.0001937/0.2235, allocations: 185.6 kB / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.956e-05/0.2236, allocations: 31.75 kB / 0.6717 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.402e-05/0.2236, allocations: 26.25 kB / 0.6718 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.2236, allocations: 4 kB / 0.6718 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.2236, allocations: 3.984 kB / 0.6718 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.2236, allocations: 0 / 0.6718 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000861/0.2245, allocations: 0.5661 MB / 0.6723 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2245, allocations: 0 / 0.6723 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.48e-05/0.2246, allocations: 8 kB / 0.6723 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.2246, allocations: 3.984 kB / 0.6723 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.2246, allocations: 15.98 kB / 0.6724 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2246, allocations: 0 / 0.6724 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.2246, allocations: 4 kB / 0.6724 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004368/0.2251, allocations: 335 kB / 0.6727 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.2253, allocations: 148.9 kB / 0.6728 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.846e-05/0.2253, allocations: 15.98 kB / 0.6728 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.2256, allocations: 8 kB / 0.6728 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/0.2256, allocations: 15.97 kB / 0.6729 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.875e-05/0.2257, allocations: 31.98 kB / 0.6729 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000194/0.2259, allocations: 209.9 kB / 0.6731 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2259, allocations: 0 / 0.6731 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003335/0.2262, allocations: 48 kB / 0.6731 GB, free: 12.66 MB / 0.5137 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.0007271/0.227, allocations: 0.8758 MB / 0.674 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005634/0.2275, allocations: 344.9 kB / 0.6743 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2275, allocations: 0 / 0.6743 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.2277, allocations: 72.34 kB / 0.6744 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.2281, allocations: 28.86 kB / 0.6744 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/0.2311, allocations: 2.398 MB / 0.6768 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.2315, allocations: 0.7435 MB / 0.6775 GB, free: 8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001314/0.2317, allocations: 33.42 kB / 0.6775 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.2318, allocations: 47.41 kB / 0.6776 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of SimCode: time 7.71e-07/0.2318, allocations: 192 / 0.6776 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02335/0.2552, allocations: 5.306 MB / 0.6827 GB, free: 2.699 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.168, allocations: 3.125 kB / 0.6827 GB, free: 2.699 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)